From 5341a2fc9207963f488d292d8f07383dd015f8c8 Mon Sep 17 00:00:00 2001 From: Alan Carvalho de Assis Date: Wed, 27 May 2026 10:32:54 -0300 Subject: [PATCH] system/nxinit: Add final event Add the final event option to the Kconfig Signed-off-by: Alan C. Assis --- system/nxinit/Kconfig | 7 +++++++ system/nxinit/init.c | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/system/nxinit/Kconfig b/system/nxinit/Kconfig index b701124a3..382984371 100644 --- a/system/nxinit/Kconfig +++ b/system/nxinit/Kconfig @@ -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" diff --git a/system/nxinit/init.c b/system/nxinit/init.c index e7824a419..8a88c63d9 100644 --- a/system/nxinit/init.c +++ b/system/nxinit/init.c @@ -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