diff mbox series

[v3,35/95] efi: Add a Kconfig for SPL_EFI_LOADER et al

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

Commit Message

Simon Glass Feb. 12, 2023, 11:15 p.m. UTC
This and EFI_DEVICE_PATH_TO_TEXT are implicitly used in the source and
seem useful, so add them.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

Changes in v3:
- Move SPL_EFI_LOADER patch to this series

 lib/efi_loader/Kconfig | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig
index c56904afc2e..d4e5b65dd30 100644
--- a/lib/efi_loader/Kconfig
+++ b/lib/efi_loader/Kconfig
@@ -32,6 +32,10 @@  config EFI_LOADER
 
 if EFI_LOADER
 
+config SPL_EFI_LOADER
+	def_bool n  # Support running UEFI applications (SPL)
+	depends on SPL
+
 config CMD_BOOTEFI_BOOTMGR
 	bool "UEFI Boot Manager"
 	default y
@@ -233,6 +237,10 @@  config EFI_DEVICE_PATH_TO_TEXT
 	  The device path to text protocol converts device nodes and paths to
 	  human readable strings.
 
+config SPL_EFI_DEVICE_PATH_TO_TEXT
+	def_bool n  # Device path to text protocol (SPL)
+	depends on SPL
+
 config EFI_DEVICE_PATH_UTIL
 	bool "Device path utilities protocol"
 	default y