system/nxinit: Add final event

Add the final event option to the Kconfig

Signed-off-by: Alan C. Assis <acassis@gmail.com>
This commit is contained in:
Alan Carvalho de Assis 2026-05-27 10:32:54 -03:00 committed by Alan C. Assis
parent d8ead1a0f3
commit 5341a2fc92
2 changed files with 8 additions and 2 deletions

View file

@ -73,6 +73,13 @@ config SYSTEM_NXINIT_ACTION_MANAGER_EVENT_MAX
...
};
```
config SYSTEM_NXINIT_FINALINIT
bool "Enable NXInit final event"
default n
--help--
Enable support to run the "final" event. Currently only "boot",
and "init" event are enabled by default, where "netinit" and
"final" are optional.
comment "NXInit Service"

View file

@ -198,8 +198,7 @@ int main(int argc, FAR char *argv[])
init_action_add_event(&am, "netinit");
#endif
#ifdef CONFIG_BOARDCTL_FINALINIT
boardctl(BOARDIOC_FINALINIT, 0);
#ifdef CONFIG_SYSTEM_NXINIT_FINALINIT
init_action_add_event(&am, "finalinit");
#endif