mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Straighten out conditional compilation
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1896 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -220,6 +220,19 @@ int main(int argc, char **argv, char **envp)
|
||||
printf("#if defined(__NXFLAT__) && !defined(CONFIG_NXFLAT)\n");
|
||||
printf("# error \"NXFLAT support not enabled in this configuration\"\n");
|
||||
printf("#endif\n\n");
|
||||
printf("/* NXFLAT requires PIC support in the TCBs. */\n\n");
|
||||
printf("#if defined(CONFIG_NXFLAT)\n");
|
||||
printf("# undef CONFIG_PIC\n");
|
||||
printf("# define CONFIG_PIC 1\n");
|
||||
printf("#endif\n\n");
|
||||
printf("/* Binary format support is disabled if no binary formats are\n");
|
||||
printf(" * configured (at present, NXFLAT is the only supported binary.\n");
|
||||
printf(" * format).\n");
|
||||
printf(" */\n\n");
|
||||
printf("#if !defined(CONFIG_NXFLAT)\n");
|
||||
printf("# undef CONFIG_BINFMT_DISABLE\n");
|
||||
printf("# define CONFIG_BINFMT_DISABLE 1\n");
|
||||
printf("#endif\n\n");
|
||||
printf("/* The correct way to disable RR scheduling is to set the\n");
|
||||
printf(" * timeslice to zero.\n");
|
||||
printf(" */\n\n");
|
||||
|
||||
Reference in New Issue
Block a user