diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-07-18 03:05:37 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-07-18 03:23:43 +0200 |
| commit | e08b6957ca935fc97eddd1afda933715016b9b11 (patch) | |
| tree | 4f600c0b1f7956b95125b385565f4a68588bad66 /tests | |
| parent | 3bd823958bb2bbe651b89647202a2a1ef6875815 (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/Kstr | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |
