[PATCH v3 56/95] test: Add SPL versions of the TEST_KCONFIG options
Simon Glass
sjg at chromium.org
Mon Feb 13 00:15:59 CET 2023
These are needed since we need a separate value in SPL and Proper.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
test/lib/Kconfig | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/test/lib/Kconfig b/test/lib/Kconfig
index dbb03e4a36f..134cbb85b83 100644
--- a/test/lib/Kconfig
+++ b/test/lib/Kconfig
@@ -18,6 +18,24 @@ config TEST_KCONFIG_VALUE
int "Value associated with the option"
depends on TEST_KCONFIG_ENABLE
help
- This is the value whgch is present if TEST_KCONFIG_ENABLE is enabled.
+ This is the value which is present if TEST_KCONFIG_ENABLE is enabled.
+
+config SPL_TEST_KCONFIG
+ bool "Enable detection of Kconfig macro errors (SPL)"
+ help
+ This is used to test that the IF_ENABLED_INT() macro causes a build error
+ if the value is used when the CONFIG Is not enabled.
+
+config SPL_TEST_KCONFIG_ENABLE
+ bool "Option to enable (SPL)"
+ help
+ This is the option that controls whether the value is present.
+
+config SPL_TEST_KCONFIG_VALUE
+ int "Value associated with the option (SPL"
+ depends on SPL_TEST_KCONFIG_ENABLE
+ help
+ This is the value which is present if SPL_TEST_KCONFIG_ENABLE is
+ enabled.
endif # SANDBOX
--
2.39.1.581.gbfd45094c4-goog
More information about the U-Boot
mailing list