nuttx-apps/system/nxinit
wangjianyu3 0923948d80 system/nxinit: fix event-board timing
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>
2026-08-24 20:11:14 +08:00
..
action.c system/nxinit: fix on-event actions re-running on every trigger 2026-08-15 18:51:45 +08:00
action.h system/nxinit: fix on-event actions re-running on every trigger 2026-08-15 18:51:45 +08:00
builtin.c system/nxinit: fix event-board timing 2026-08-24 20:11:14 +08:00
builtin.h system/nxinit: Add NuttX Init 2026-05-27 17:20:07 -03:00
CMakeLists.txt system/nxinit: Add setprop support for action 2026-08-15 18:51:45 +08:00
import.c system/nxinit: Fix missing check for import argument 2026-06-05 09:43:45 +08:00
import.h system/nxinit: Add NuttX Init 2026-05-27 17:20:07 -03:00
init.c system/nxinit: fix event-board timing 2026-08-24 20:11:14 +08:00
init.h system/nxinit: Add setprop support for action 2026-08-15 18:51:45 +08:00
Kconfig system/nxinit: Add support for action triggers 2026-08-15 18:51:45 +08:00
Make.defs system/nxinit: Add NuttX Init 2026-05-27 17:20:07 -03:00
Makefile system/nxinit: Add setprop support for action 2026-08-15 18:51:45 +08:00
parser.c system/nxinit: fix event-board timing 2026-08-24 20:11:14 +08:00
parser.h system/nxinit: Parse default cpu-specific configs 2026-08-22 17:36:04 +08:00
property.h system/nxinit: Add setprop support for action 2026-08-15 18:51:45 +08:00
property_simple.c system/nxinit: Add setprop support for action 2026-08-15 18:51:45 +08:00
service.c system: nxinit: bound debug argv dump 2026-07-07 09:47:23 +08:00
service.h system/nxinit: Let use a define to define the class max cmds 2026-05-27 17:20:07 -03:00