Skip to content
Snippets Groups Projects
Commit 97c5421c authored by Gregory Nutt's avatar Gregory Nutt
Browse files

tools/mkconfig.c: Purely cosmetic update.

parent 9946969c
No related branches found
No related tags found
No related merge requests found
......@@ -112,7 +112,7 @@ int main(int argc, char **argv, char **envp)
printf("/* NXFLAT requires PIC support in the TCBs. */\n\n");
printf("#if defined(CONFIG_NXFLAT)\n");
printf("# undef CONFIG_PIC\n");
printf("# undef CONFIG_PIC\n");
printf("# define CONFIG_PIC 1\n");
printf("#endif\n\n");
......@@ -139,6 +139,21 @@ int main(int argc, char **argv, char **envp)
printf("# define CONFIG_NFILE_DESCRIPTORS 0\n");
printf("#endif\n\n");
printf("/* If no file descriptors are configured, then make certain no streams\n");
printf(" * are configured either.\n");
printf(" */\n\n");
printf("#if CONFIG_NFILE_DESCRIPTORS == 0\n");
printf("# undef CONFIG_NFILE_STREAMS\n");
printf("# define CONFIG_NFILE_STREAMS 0\n");
printf("#endif\n\n");
printf("/* The correct way to disable stream support is to set the number of\n");
printf(" * streamd to zero.\n");
printf(" */\n\n");
printf("#ifndef CONFIG_NFILE_STREAMS\n");
printf("# define CONFIG_NFILE_STREAMS 0\n");
printf("#endif\n\n");
printf("/* If a console is selected, then make sure that there are resources for\n");
printf(" * three file descriptors and, if any streams are selected, also for three\n");
printf(" * file streams.\n");
......@@ -164,14 +179,6 @@ int main(int argc, char **argv, char **envp)
printf("# undef CONFIG_RAMLOG_CONSOLE\n");
printf("#endif\n\n");
printf("/* If no file descriptors are configured, then make certain no\n");
printf(" * streams are configured either.\n");
printf(" */\n\n");
printf("#if CONFIG_NFILE_DESCRIPTORS == 0\n");
printf("# undef CONFIG_NFILE_STREAMS\n");
printf("# define CONFIG_NFILE_STREAMS 0\n");
printf("#endif\n\n");
printf("/* If no file streams are configured, then make certain that buffered I/O\n");
printf(" * support is disabled\n");
printf(" */\n\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment