[RFC PATCH v2 21/56] test: Add SPL versions of the TEST_KCONFIG options

Simon Glass sjg at chromium.org
Sat Feb 4 01:25:44 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.519.gcb327c4b5f-goog



More information about the U-Boot mailing list