diff mbox series

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

Message ID 20230131152702.249197-3-sjg@chromium.org
State RFC
Delegated to: Tom Rini
Headers show
Series RFC: Migrate to split config | expand

Commit Message

Simon Glass Jan. 31, 2023, 3:26 p.m. UTC
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@chromium.org>
---

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

Patch

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