[PATCH 02/32] event: Add Kconfig options for SPL

Simon Glass sjg at chromium.org
Tue Jan 31 16:26:32 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>
---

 common/Kconfig | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/common/Kconfig b/common/Kconfig
index 6d23cdde94e..44aa7d8b1cd 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.456.gfc5497dd1b-goog



More information about the U-Boot mailing list