2013-06-15 20:14:06 +00:00
|
|
|
--- a/kconf/conf.c
|
|
|
|
+++ b/kconf/conf.c
|
2017-02-02 11:02:22 +00:00
|
|
|
@@ -594,40 +594,12 @@ int main(int ac, char **av)
|
2013-06-15 20:14:06 +00:00
|
|
|
case oldconfig:
|
|
|
|
case listnewconfig:
|
|
|
|
case olddefconfig:
|
|
|
|
- conf_read(NULL);
|
|
|
|
- break;
|
|
|
|
case allnoconfig:
|
|
|
|
case allyesconfig:
|
|
|
|
case allmodconfig:
|
|
|
|
case alldefconfig:
|
|
|
|
case randconfig:
|
|
|
|
- name = getenv("KCONFIG_ALLCONFIG");
|
|
|
|
- if (!name)
|
|
|
|
- break;
|
|
|
|
- if ((strcmp(name, "") != 0) && (strcmp(name, "1") != 0)) {
|
|
|
|
- if (conf_read_simple(name, S_DEF_USER)) {
|
|
|
|
- fprintf(stderr,
|
|
|
|
- _("*** Can't read seed configuration \"%s\"!\n"),
|
|
|
|
- name);
|
|
|
|
- exit(1);
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- switch (input_mode) {
|
|
|
|
- case allnoconfig: name = "allno.config"; break;
|
|
|
|
- case allyesconfig: name = "allyes.config"; break;
|
|
|
|
- case allmodconfig: name = "allmod.config"; break;
|
|
|
|
- case alldefconfig: name = "alldef.config"; break;
|
|
|
|
- case randconfig: name = "allrandom.config"; break;
|
|
|
|
- default: break;
|
|
|
|
- }
|
|
|
|
- if (conf_read_simple(name, S_DEF_USER) &&
|
|
|
|
- conf_read_simple("all.config", S_DEF_USER)) {
|
|
|
|
- fprintf(stderr,
|
|
|
|
- _("*** KCONFIG_ALLCONFIG set, but no \"%s\" or \"all.config\" file found\n"),
|
|
|
|
- name);
|
|
|
|
- exit(1);
|
|
|
|
- }
|
|
|
|
+ conf_read(NULL);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
break;
|
2015-11-03 12:00:36 +00:00
|
|
|
--- a/kconf/confdata.c
|
|
|
|
+++ b/kconf/confdata.c
|
2017-02-02 11:02:22 +00:00
|
|
|
@@ -1170,6 +1170,8 @@ bool conf_set_all_new_symbols(enum conf_
|
2015-11-03 12:00:36 +00:00
|
|
|
}
|
|
|
|
bool has_changed = false;
|
|
|
|
|
|
|
|
+ sym_clear_all_valid();
|
|
|
|
+
|
|
|
|
for_all_symbols(i, sym) {
|
|
|
|
if (sym_has_value(sym) || (sym->flags & SYMBOL_VALID))
|
|
|
|
continue;
|
2017-02-02 11:02:22 +00:00
|
|
|
@@ -1213,8 +1215,6 @@ bool conf_set_all_new_symbols(enum conf_
|
2015-11-03 12:00:36 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
- sym_clear_all_valid();
|
|
|
|
-
|
|
|
|
/*
|
|
|
|
* We have different type of choice blocks.
|
|
|
|
* If curr.tri equals to mod then we can select several
|