Add configurable application entry point

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5070 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo
2012-08-30 20:13:50 +00:00
parent 6ab6c46f2f
commit b121fbbb00
254 changed files with 777 additions and 613 deletions
+7 -1
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;