Skip to content

Commit

Permalink
kconfig: do not override symbols already set
Browse files Browse the repository at this point in the history
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" <[email protected]>
  • Loading branch information
yann-morin-1998 committed Apr 24, 2013
1 parent 61fa0e1 commit cfa98f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/kconfig/confdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,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:
Expand Down

0 comments on commit cfa98f2

Please sign in to comment.