From e08b6957ca935fc97eddd1afda933715016b9b11 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Wed, 18 Jul 2018 03:05:37 +0200 Subject: 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. --- tests/Kstr | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'tests') 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 -- cgit v1.2.3