summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-07-18 03:05:37 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-07-18 03:23:43 +0200
commite08b6957ca935fc97eddd1afda933715016b9b11 (patch)
tree4f600c0b1f7956b95125b385565f4a68588bad66 /tests
parent3bd823958bb2bbe651b89647202a2a1ef6875815 (diff)
Add def_int, def_hex, and def_string keywords
Analogous to def_bool and def_tristate, setting the type and adding a default at the same time. This is a Kconfiglib extension. These keywords can be useful in projects that make use of symbols defined in multiple locations, and remove some Kconfig inconsistency.
Diffstat (limited to 'tests')
-rw-r--r--tests/Kstr11
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/Kstr b/tests/Kstr
index e3f4746..25c14db 100644
--- a/tests/Kstr
+++ b/tests/Kstr
@@ -53,18 +53,23 @@ config ONLY_DIRECT_DEPS
depends on DEP2
config STRING
- string
- default "foo"
+ def_string "foo"
default "bar" if DEP
default STRING2
default STRING3 if DEP
config INT
- int
+ def_int 7 if DEP
range 1 2
range FOO BAR
range BAZ QAZ if DEP
+config HEX
+ def_hex 0x123
+ range 0x100 0x200
+ range FOO BAR
+ range BAZ QAZ if DEP
+
config MODULES
bool "MODULES"
option modules