aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/conf.c
diff options
context:
space:
mode:
authorRoman Zippel <zippel@linux-m68k.org>2006-06-09 01:12:42 -0400
committerSam Ravnborg <sam@mars.ravnborg.org>2006-06-09 01:31:30 -0400
commit669bfad906522e74ee8d962801552a8c224c0d63 (patch)
tree84b7e85d7d731b7f188c38d83139f9b6d4acaa56 /scripts/kconfig/conf.c
parent0c1822e6991a10da6dc391f0a2e2cf5fb2e31238 (diff)
kconfig: allow loading multiple configurations
Extend conf_read_simple() so it can load multiple configurations. Signed-off-by: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/kconfig/conf.c')
-rw-r--r--scripts/kconfig/conf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index 9334da65f364..ded5ffe184b8 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -573,7 +573,7 @@ int main(int ac, char **av)
573 case set_random: 573 case set_random:
574 name = getenv("KCONFIG_ALLCONFIG"); 574 name = getenv("KCONFIG_ALLCONFIG");
575 if (name && !stat(name, &tmpstat)) { 575 if (name && !stat(name, &tmpstat)) {
576 conf_read_simple(name); 576 conf_read_simple(name, S_DEF_USER);
577 break; 577 break;
578 } 578 }
579 switch (input_mode) { 579 switch (input_mode) {
@@ -584,9 +584,9 @@ int main(int ac, char **av)
584 default: break; 584 default: break;
585 } 585 }
586 if (!stat(name, &tmpstat)) 586 if (!stat(name, &tmpstat))
587 conf_read_simple(name); 587 conf_read_simple(name, S_DEF_USER);
588 else if (!stat("all.config", &tmpstat)) 588 else if (!stat("all.config", &tmpstat))
589 conf_read_simple("all.config"); 589 conf_read_simple("all.config", S_DEF_USER);
590 break; 590 break;
591 default: 591 default:
592 break; 592 break;