From e9474302da86caf5e8241dbb11b1cab125ae186b Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 9 Sep 2024 07:03:27 -0400 Subject: [PATCH] init: enhance kconfig docs for custom hooks Improve docs for custom soc/board hooks. Signed-off-by: Anas Nashif --- kernel/Kconfig.init | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/kernel/Kconfig.init b/kernel/Kconfig.init index 79121a96128..21cb5d9d8f1 100644 --- a/kernel/Kconfig.init +++ b/kernel/Kconfig.init @@ -27,19 +27,31 @@ config SOC_EARLY_INIT_HOOK help Run an early SoC initialization hook. + A custom SoC hook soc_early_init_hook() is executed before the kernel and + devices are initialized + config SOC_LATE_INIT_HOOK bool "Run late SoC hook" help Run a late SoC initialization hook. + A custom SoC hook soc_late_init_hook() is executed after the kernel and + devices are initialized + config BOARD_EARLY_INIT_HOOK bool "Run early board hook" help Run an early board initialization hook. + A custom board hook board_early_init_hook() is executed before the kernel and + devices are initialized + config BOARD_LATE_INIT_HOOK bool "Run late board hook" help Run a late board initialization hook. + A custom board hook board_late_init_hook() is executed after the kernel and + devices are initialized + endmenu