Link in and start the POSIX file system to make the telnet-server example 'ls' command generally work. Typically it will complain about not finding 'cfs-root/.'

This commit is contained in:
oliverschmidt 2007-04-13 23:08:52 +00:00
parent 6e5193f303
commit 8f0753c402
2 changed files with 5 additions and 4 deletions

View file

@ -8,7 +8,7 @@ CONTIKI_TARGET_DIRS = .
CONTIKI_TARGET_MAIN = ${addprefix $(OBJECTDIR)/,contiki-main.o}
CONTIKI_TARGET_SOURCEFILES = contiki-main.c dlloader.c clock.c \
leds.c leds-arch.c
leds.c leds-arch.c cfs-posix.c
ifeq ($(OS),Windows_NT)
CONTIKI_TARGET_SOURCEFILES += wpcap-service.c wpcap.c

View file

@ -29,12 +29,13 @@
*
* This file is part of the Contiki OS
*
* $Id: contiki-main.c,v 1.3 2007/03/26 02:53:54 oliverschmidt Exp $
* $Id: contiki-main.c,v 1.4 2007/04/13 23:08:52 oliverschmidt Exp $
*
*/
#include "contiki.h"
#include "cfs/cfs-posix.h"
#include "net/uip.h"
#ifdef __CYGWIN__
#include "net/wpcap-service.h"
@ -43,9 +44,9 @@
#endif
#ifdef __CYGWIN__
PROCINIT(&etimer_process, &tcpip_process, &wpcap_process);
PROCINIT(&etimer_process, &cfs_posix_process, &tcpip_process, &wpcap_process);
#else
PROCINIT(&etimer_process, &tcpip_process, &tapdev_process);
PROCINIT(&etimer_process, &cfs_posix_process, &tcpip_process, &tapdev_process);
#endif
/*---------------------------------------------------------------------------*/