Add configurable application entry point

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5070 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2012-08-30 20:13:50 +00:00
parent 297f4be2be
commit 435dbaacd8
199 changed files with 401 additions and 34 deletions

View File

@@ -44,7 +44,7 @@
#include "cfgparser.h"
/****************************************************************************
* Definitions
* Pre-processor Definitions
****************************************************************************/
#define DEFCONFIG ".config"
@@ -265,6 +265,12 @@ int main(int argc, char **argv, char **envp)
printf("# undef CONFIG_DEBUG_SPI\n");
printf("# undef CONFIG_DEBUG_STACK\n");
printf("#endif\n\n");
printf("/* User entry point. This is provided as a fall-back to keep compatibility\n");
printf(" * with existing code, for builds which do not define CONFIG_USER_ENTRYPOINT.\n");
printf(" */\n\n");
printf("#ifndef CONFIG_USER_ENTRYPOINT\n");
printf("# define CONFIG_USER_ENTRYPOINT user_start\n");
printf("#endif\n\n");
printf("#endif /* __INCLUDE_NUTTX_CONFIG_H */\n");
fclose(stream);
return 0;