kconfig: do not override symbols already set
authorYann E. MORIN <yann.morin.1998@free.fr>
Wed, 24 Apr 2013 20:00:04 +0000 (22:00 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Fri, 31 May 2013 15:55:20 +0000 (17:55 +0200)
For randconfig, if a list of required symbols is specified with
KCONFIG_ALLCONFIG, such symbols do not "have a value" as per
sym_has_value(), but have the "valid" flag set.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
config/confdata.c

index 423ac0661bb8494a7c13d77644fe5bec540abe48..089b7177ddb69c3500097eaa4e109a3978fbba94 100644 (file)
@@ -1172,7 +1172,7 @@ void conf_set_all_new_symbols(enum conf_def_mode mode)
        int i, cnt;
 
        for_all_symbols(i, sym) {
-               if (sym_has_value(sym))
+               if (sym_has_value(sym) || (sym->flags & SYMBOL_VALID))
                        continue;
                switch (sym_get_type(sym)) {
                case S_BOOLEAN: