mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-25 15:37:32 +00:00
Move the boot event orchestration into a preset config buffer so the "init" and (optional) "netinit"/"finalinit" events are triggered as a serialized chain rather than queued back-to-back in main(). This fixes the timing between preset event initialization and board initialization. Adapted for the community tree: BOARDIOC_INIT has been removed upstream (replaced by CONFIG_BOARD_LATE_INITIALIZE), so no board_init/board_finalinit builtins are added and no boardctl(BOARDIOC_INIT)/boardctl(BOARDIOC_FINALINIT) calls are reintroduced; board device init is now performed by the kernel before init starts. netinit is not a boardctl call, so it is kept in the serialized event chain like the original: add a "netinit" builtin that calls netinit_bringup(), driven by "on init -> trigger netinit -> on netinit", instead of calling netinit_bringup() directly in main(). finalinit remains a pure event for user-defined services to hook. Assisted-by: GitHubCopilot:claude-opus-4.8 Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com> |
||
|---|---|---|
| .. | ||
| action.c | ||
| action.h | ||
| builtin.c | ||
| builtin.h | ||
| CMakeLists.txt | ||
| import.c | ||
| import.h | ||
| init.c | ||
| init.h | ||
| Kconfig | ||
| Make.defs | ||
| Makefile | ||
| parser.c | ||
| parser.h | ||
| property.h | ||
| property_simple.c | ||
| service.c | ||
| service.h | ||