[PATCH v3 38/95] event: Add Kconfig options for SPL
Simon Glass
sjg at chromium.org
Mon Feb 13 00:15:41 CET 2023
Add options to enable events in SPL. This is mostly so the code can be
excluded from SPL builds.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
common/Kconfig | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/common/Kconfig b/common/Kconfig
index ea9bbd52128..14a40d8b4ea 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -622,6 +622,22 @@ config EVENT
See doc/develop/event.rst for more information.
+config SPL_EVENT
+ bool # General-purpose event-handling mechanism in SPL
+ depends on EVENT && SPL
+ help
+ This adds a framework for general purpose sending and processing of
+ events, to allow interested parties to be alerted when something
+ happens. This is an attempt to stem the flow of weak functions,
+ hooks, functions in board_f.c and board_r.c and the Kconfig options
+ below.
+
+ See doc/develop/event.rst for more information.
+
+config SPL_EVENT_DYNAMIC
+ def_bool n # Support event registration at runtime (SPL)
+ depends on SPL_EVENT
+
if EVENT
config EVENT_DYNAMIC
--
2.39.1.581.gbfd45094c4-goog
More information about the U-Boot
mailing list