summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-06-10 23:03:09 -0400
committerTom Rini <trini@konsulko.com>2022-07-07 09:29:08 -0400
commitb340199f828e7d57945785b698ff97469972d1ca (patch)
tree117ba774591d068ff037e4a2e6b1bca39d9fc037 /common
parentabba59f1155aa45daf37c59e248164387482a3c4 (diff)
downloadu-boot-b340199f828e7d57945785b698ff97469972d1ca.tar.gz
u-boot-b340199f828e7d57945785b698ff97469972d1ca.tar.bz2
u-boot-b340199f828e7d57945785b698ff97469972d1ca.zip
spl: Ensure all SPL symbols in Kconfig have some SPL dependency
Tighten up symbol dependencies in a number of places. Ensure that a SPL specific option has at least a direct dependency on SPL. In places where it's clear that we depend on something more specific, use that dependency instead. This means in a very small number of places we can drop redundant dependencies. Reported-by: Pali Rohár <pali@kernel.org> Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common')
-rw-r--r--common/Kconfig3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/Kconfig b/common/Kconfig
index f08a8e7493..e7914ca750 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -83,6 +83,7 @@ config LOGLEVEL
config SPL_LOGLEVEL
int
+ depends on SPL
default LOGLEVEL
config TPL_LOGLEVEL
@@ -358,7 +359,7 @@ config LOG_SYSLOG
config SPL_LOG
bool "Enable logging support in SPL"
- depends on LOG
+ depends on LOG && SPL
help
This enables support for logging of status and debug messages. These
can be displayed on the console, recorded in a memory buffer, or