diff options
author | Simon Glass <sjg@chromium.org> | 2023-02-22 09:33:57 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-03-02 17:45:58 -0500 |
commit | 3693ee98eac8350a99aec1496c1c3c1bc4d8e747 (patch) | |
tree | 507557960783b230d73667c5ba3d5613bbd8eb05 /common/Kconfig | |
parent | 85c66dc95c2ce85c71fdda85ceb9be88abd5e193 (diff) | |
download | u-boot-3693ee98eac8350a99aec1496c1c3c1bc4d8e747.zip u-boot-3693ee98eac8350a99aec1496c1c3c1bc4d8e747.tar.gz u-boot-3693ee98eac8350a99aec1496c1c3c1bc4d8e747.tar.bz2 |
event: Add Kconfig options for SPL
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>
Diffstat (limited to 'common/Kconfig')
-rw-r--r-- | common/Kconfig | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig index e35fca6..9b79e5d 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -630,6 +630,26 @@ config EVENT_DEBUG events, such as event-type names. This adds to the code size of U-Boot so can be turned off for production builds. +config SPL_EVENT + bool # General-purpose event-handling mechanism in SPL + depends on 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 + bool + depends on SPL_EVENT && EVENT_DYNAMIC + help + Enable this to support adding an event spy at runtime, without adding + it to the EVENT_SPY() linker list. This increases code size slightly + but provides more flexibility for boards and subsystems that need it. + endif # EVENT config ARCH_EARLY_INIT_R |