mirror of
https://github.com/apache/nuttx.git
synced 2025-12-09 03:33:51 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user