aboutsummaryrefslogtreecommitdiff
path: root/nuttx/tools
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-06-14 00:47:42 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-06-14 00:47:42 +0000
commita27028feaba8abdee2661f024cbec00cda8c6494 (patch)
tree8884f40bd84695b9de63c6eb5a85d2ce074552d7 /nuttx/tools
parent241c3f86d327886ae5e790875d77f07ed48d98de (diff)
downloadpx4-firmware-a27028feaba8abdee2661f024cbec00cda8c6494.tar.gz
px4-firmware-a27028feaba8abdee2661f024cbec00cda8c6494.tar.bz2
px4-firmware-a27028feaba8abdee2661f024cbec00cda8c6494.zip
NFS just finished a major weight reduction program
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4838 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/tools')
-rw-r--r--nuttx/tools/mkconfig.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/nuttx/tools/mkconfig.c b/nuttx/tools/mkconfig.c
index 5bacb24a6..97e2a9c34 100644
--- a/nuttx/tools/mkconfig.c
+++ b/nuttx/tools/mkconfig.c
@@ -206,15 +206,19 @@ int main(int argc, char **argv, char **envp)
printf("#ifdef CONFIG_DISABLE_MOUNTPOINT\n");
printf("# undef CONFIG_FS_FAT\n");
printf("# undef CONFIG_FS_ROMFS\n");
+ printf("# undef CONFIG_FS_NXFFS\n");
+ printf("# undef CONFIG_APPS_BINDIR\n");
+ printf("# undef CONFIG_NFS\n");
printf("#endif\n\n");
printf("/* Check if any readable and writable filesystem (OR USB storage) is supported */\n\n");
printf("#undef CONFIG_FS_READABLE\n");
printf("#undef CONFIG_FS_WRITABLE\n");
printf("#if defined(CONFIG_FS_FAT) || defined(CONFIG_FS_ROMFS) || defined(CONFIG_USBMSC) || \\\n");
- printf(" defined(CONFIG_FS_NXFFS) || defined(CONFIG_APPS_BINDIR)\n");
+ printf(" defined(CONFIG_FS_NXFFS) || defined(CONFIG_APPS_BINDIR) || defined(CONFIG_NFS)\n");
printf("# define CONFIG_FS_READABLE 1\n");
printf("#endif\n\n");
- printf("#if defined(CONFIG_FS_FAT) || defined(CONFIG_USBMSC) || defined(CONFIG_FS_NXFFS)\n");
+ printf("#if defined(CONFIG_FS_FAT) || defined(CONFIG_USBMSC) || defined(CONFIG_FS_NXFFS) || \\\n");
+ printf(" defined(CONFIG_NFS)\n");
printf("# define CONFIG_FS_WRITABLE 1\n");
printf("#endif\n\n");
printf("/* There can be no network support with no socket descriptors */\n\n");
@@ -234,6 +238,10 @@ int main(int argc, char **argv, char **envp)
printf("# undef CONFIG_NET_UDP\n");
printf("# undef CONFIG_NET_ICMP\n");
printf("#endif\n\n");
+ printf("/* NFS client can only be provided on top of UDP network support */\n\n");
+ printf("#if !defined(CONFIG_NET) || !defined(CONFIG_NET_UDP)\n");
+ printf("# undef CONFIG_NFS\n");
+ printf("#endif\n\n");
printf("/* Verbose debug and sub-system debug only make sense if debug is enabled */\n\n");
printf("#ifndef CONFIG_DEBUG\n");
printf("# undef CONFIG_DEBUG_VERBOSE\n");