From a27028feaba8abdee2661f024cbec00cda8c6494 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 14 Jun 2012 00:47:42 +0000 Subject: 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 --- nuttx/tools/mkconfig.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'nuttx/tools') 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"); -- cgit v1.2.3