[PATCH v5 29/44] test: Add SPL versions of the TEST_KCONFIG options

Simon Glass
2023-02-22T16:42:24Z

These are needed since we need a separate value in SPL and Proper.

Signed-off-by: Simon Glass <sjg@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.2.637.g21b0678d19-goog