From 699fd81bf3a67606396035697357c5665dcd68af Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Fri, 26 Oct 2018 22:23:27 +0200 Subject: Support enabling the assignment-to-undef. symbol warning via the environment This makes it possible to enable it for the bundled tools, by setting KCONFIG_WARN_UNDEF_ASSIGN=y. Previously, the code had to be modified to call Kconfig.enable_undef_warnings(). Also rename KCONFIG_STRICT to KCONFIG_WARN_UNDEF, for consistency. Keep supporting KCONFIG_STRICT as an alias for backwards compatibility. --- tests/Kundef | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/Kundef (limited to 'tests/Kundef') diff --git a/tests/Kundef b/tests/Kundef new file mode 100644 index 0000000..fae521a --- /dev/null +++ b/tests/Kundef @@ -0,0 +1,23 @@ +config DEF + bool + +config BOOL + bool "foo" if DEF || !UNDEF_1 + default UNDEF_2 + +config INT + int + range UNDEF_2 8 + default 10 + range 5 15 + +config HEX + hex + range 0x123 0X456 + default 0x200 + +menu "menu" + depends on UNDEF_1 + visible if UNDEF_3 + +endmenu -- cgit v1.2.3