Skip to content

Commit cfa98f2

Browse files
kconfig: do not override symbols already set
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]>
1 parent 61fa0e1 commit cfa98f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/kconfig/confdata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ void conf_set_all_new_symbols(enum conf_def_mode mode)
11091109
int i, cnt;
11101110

11111111
for_all_symbols(i, sym) {
1112-
if (sym_has_value(sym))
1112+
if (sym_has_value(sym) || (sym->flags & SYMBOL_VALID))
11131113
continue;
11141114
switch (sym_get_type(sym)) {
11151115
case S_BOOLEAN:

0 commit comments

Comments
 (0)