appdl: do not reference NFS if networking is not configured for appdl.
authorPavel Pisa <pisa@cmp.felk.cvut.cz>
Thu, 19 May 2016 11:57:48 +0000 (13:57 +0200)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Thu, 19 May 2016 11:57:48 +0000 (13:57 +0200)
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
rtems-omk-template/appdl/init.c
rtems-omk-template/appdl/system.h

index 488ede5..465b314 100644 (file)
@@ -15,9 +15,9 @@
 
 #define CONFIGURE_INIT
 #include <system_def.h>
+#include "appl_config.h"
 #include "system.h"
 #include "app_def.h"
-#include "appl_config.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <dlfcn.h>
@@ -54,7 +54,9 @@
 #define CONFIGURE_SHELL_COMMANDS_ALL
 #define CONFIGURE_SHELL_COMMANDS_ALL_NETWORKING
 #define CONFIGURE_SHELL_MOUNT_MSDOS
+#ifdef CONFIG_OC_APP_APPDL_NET
 #define CONFIGURE_SHELL_MOUNT_NFS
+#endif
 
 #include <rtems/shellconfig.h>
 
index b05e202..68989a8 100644 (file)
@@ -58,7 +58,9 @@ rtems_task Init(
 /*#define CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM*/
 #define CONFIGURE_FILESYSTEM_TFTPFS
 #define CONFIGURE_FILESYSTEM_FTPFS
+#ifdef CONFIG_OC_APP_APPDL_NET
 #define CONFIGURE_FILESYSTEM_NFS
+#endif
 #define CONFIGURE_FILESYSTEM_DOSFS
 
 #define CONFIGURE_MICROSECONDS_PER_TICK 1000