summaryrefslogtreecommitdiff
path: root/nuttx/tools
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-09-02 21:58:35 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-09-02 21:58:35 +0000
commit9a272c38fb40781171f7b4d054430f2c0be730c0 (patch)
tree892d21bc1008301a5f07a8634cf5cb227f563dc6 /nuttx/tools
parent8e6fadad87d3220628d412fee845ad0b0cfb697f (diff)
downloadpx4-nuttx-9a272c38fb40781171f7b4d054430f2c0be730c0.tar.gz
px4-nuttx-9a272c38fb40781171f7b4d054430f2c0be730c0.tar.bz2
px4-nuttx-9a272c38fb40781171f7b4d054430f2c0be730c0.zip
Implements basic TCP connection logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@326 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/tools')
-rw-r--r--nuttx/tools/mkconfig.c23
1 files changed, 18 insertions, 5 deletions
diff --git a/nuttx/tools/mkconfig.c b/nuttx/tools/mkconfig.c
index 20611ff1e..ccd8a077a 100644
--- a/nuttx/tools/mkconfig.c
+++ b/nuttx/tools/mkconfig.c
@@ -235,19 +235,32 @@ int main(int argc, char **argv, char **envp)
printf("#ifndef CONFIG_MM_REGIONS\n");
printf("# define CONFIG_MM_REGIONS 1\n");
printf("#endif\n\n");
- printf("/* If no file streams are configured, then make certain that\n");
- printf(" * buffered I/O support is disabled.\n");
+ printf("/* If no file streams are configured, then make certain that buffered I/O\n");
+ printf(" * support is disabled\n");
printf(" */\n\n");
printf("#if CONFIG_NFILE_STREAMS == 0\n");
printf("# undef CONFIG_STDIO_BUFFER_SIZE\n");
printf("# define CONFIG_STDIO_BUFFER_SIZE 0\n");
printf("#endif\n\n");
- printf("/* If mountpoint support in not included, then no filesystem can\n");
- printf(" * be supported.\n");
- printf(" */\n\n");
+ printf("/* If mountpoint support in not included, then no filesystem can be supported */\n\n");
printf("#ifdef CONFIG_DISABLE_MOUNTPOINT\n");
printf("# undef CONFIG_FS_FAT\n");
printf("#endif\n\n");
+ printf("/* There can be no network support with no socket descriptors */\n\n");
+ printf("#if CONFIG_NSOCKET_DESCRIPTORS <= 0\n");
+ printf("# undef CONFIG_NET\n");
+ printf("#endif\n\n");
+ printf("/* Conversely, if there is no network support, there is no need for\n");
+ printf(" * socket descriptors\n");
+ printf(" */\n\n");
+ printf("#ifndef CONFIG_NET\n");
+ printf("# undef CONFIG_NSOCKET_DESCRIPTORS\n");
+ printf("# define CONFIG_NSOCKET_DESCRIPTORS 0\n");
+ printf("#endif\n\n");
+ printf("/* UDP support can only be provided on top of basic network support */\n\n");
+ printf("#ifndef CONFIG_NET\n");
+ printf("# undef CONFIG_NET_UDP\n");
+ printf("#endif\n\n");
printf("/* Verbose debug only makes sense if debug is enabled */\n\n");
printf("#ifndef CONFIG_DEBUG\n");
printf("# undef CONFIG_DEBUG_VERBOSE\n");