diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2013-04-24 16:00:04 -0400 |
---|---|---|
committer | Yann E. MORIN <yann.morin.1998@free.fr> | 2013-04-24 18:15:58 -0400 |
commit | cfa98f2e0ae956feca935573e977d7661a9561b9 (patch) | |
tree | 1ca3c231afa2ba0c0e147af129dd7c96fd4c5fd3 /scripts/kconfig/confdata.c | |
parent | 61fa0e17f99b60b851d4480605b7d905d3172f0c (diff) |
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" <yann.morin.1998@free.fr>
Diffstat (limited to 'scripts/kconfig/confdata.c')
-rw-r--r-- | scripts/kconfig/confdata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index 306cbc1bac04..2e35d4b2bbfd 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c | |||
@@ -1109,7 +1109,7 @@ void conf_set_all_new_symbols(enum conf_def_mode mode) | |||
1109 | int i, cnt; | 1109 | int i, cnt; |
1110 | 1110 | ||
1111 | for_all_symbols(i, sym) { | 1111 | for_all_symbols(i, sym) { |
1112 | if (sym_has_value(sym)) | 1112 | if (sym_has_value(sym) || (sym->flags & SYMBOL_VALID)) |
1113 | continue; | 1113 | continue; |
1114 | switch (sym_get_type(sym)) { | 1114 | switch (sym_get_type(sym)) { |
1115 | case S_BOOLEAN: | 1115 | case S_BOOLEAN: |