summaryrefslogtreecommitdiff
path: root/tests/Kundef
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-10-26 22:23:27 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-10-26 23:34:18 +0200
commit699fd81bf3a67606396035697357c5665dcd68af (patch)
tree4ce312054fc229ad6809e7266218085729cb02c5 /tests/Kundef
parent94ef638d61476bda162c16462238687733a77d78 (diff)
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.
Diffstat (limited to 'tests/Kundef')
-rw-r--r--tests/Kundef23
1 files changed, 23 insertions, 0 deletions
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