[PATCH 06/11] Kconfig: Add missing depends on xPL to xPL_ symbols
Jonas Karlman
jonas at kwiboo.se
Thu Jul 9 00:05:32 CEST 2026
xPL_<name> symbols should typically depend on the associated xPL symbol.
Add missing depends on xPL to xPL_<name> symbols to avoid the xPL_<name>
symbols being available when the associated xPL symbol is disabled.
Signed-off-by: Jonas Karlman <jonas at kwiboo.se>
---
common/Kconfig | 2 ++
lib/Kconfig | 7 ++++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/common/Kconfig b/common/Kconfig
index 345be4b8ca14..ab0557c3666b 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -138,6 +138,7 @@ config SILENT_CONSOLE
config SPL_SILENT_CONSOLE
bool "Use a silent console in SPL"
+ depends on SPL
default y if SILENT_CONSOLE && !SANDBOX
help
This selects a silent console in SPL. When enabled it drops some
@@ -149,6 +150,7 @@ config SPL_SILENT_CONSOLE
config TPL_SILENT_CONSOLE
bool "Use a silent console in TPL"
+ depends on TPL
default y if SILENT_CONSOLE && !SANDBOX
help
This selects a silent console in TPL. When enabled it drops some
diff --git a/lib/Kconfig b/lib/Kconfig
index 9e0f0ad7d068..72b53d7d5490 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -960,6 +960,7 @@ config TPL_LZMA
config VPL_LZMA
bool "Enable LZMA decompression support for VPL build"
+ depends on VPL
default y if LZMA
help
This enables support for LZMA compression algorithm for VPL boot.
@@ -972,23 +973,27 @@ config SPL_LZO
config SPL_GZIP
bool "Enable gzip decompression support for SPL build"
+ depends on SPL
select SPL_ZLIB
help
This enables support for the GZIP compression algorithm for SPL boot.
config TPL_GZIP
- bool "Enable gzip decompression support for SPL build"
+ bool "Enable gzip decompression support for TPL build"
+ depends on TPL
select TPL_ZLIB
help
This enables support for the GZIP compression algorithm for TPL
config SPL_ZLIB
bool
+ depends on SPL
help
This enables compression lib for SPL boot.
config TPL_ZLIB
bool
+ depends on TPL
help
This enables compression lib for TPL
--
2.54.0
More information about the U-Boot
mailing list