History

kconfig: rename loose_nonint_oldconfig => oldnoconfig

Rename target to something that fall more in line with the other kconfig targets. oldnoconfig shall read as: - read the old configuration and set all new options to no

Sam Ravnborg committed 16 years ago

Commit ef61ca81 parent 4062f1a2 files · +10 −11Browse files

Unified · Split

2 files
  1. scripts/kconfig/Makefile +3 −4
  2. scripts/kconfig/conf.c +7 −7
scripts/kconfig/Makefile+3−4
@@ -90,9 +90,9 @@ PHONY += allnoconfig allyesconfig allmodconfig randconfig · 89 unmodified lines
9090 allnoconfig allyesconfig allmodconfig randconfig: $(obj)/conf
9191 $< --$@ $(Kconfig)
9292
93−PHONY += nonint_oldconfig loose_nonint_oldconfig defconfig
93+PHONY += nonint_oldconfig oldnoconfig defconfig
9494
95−nonint_oldconfig loose_nonint_oldconfig: $(obj)/conf
95+nonint_oldconfig oldnoconfig: $(obj)/conf
9696 $< --$@ $(Kconfig)
9797
9898 defconfig: $(obj)/conf
@@ -124,8 +124,7 @@ help: · 25 unmodified lines
124124 @echo ' allnoconfig - New config where all options are answered with no'
125125 @echo ' nonint_oldconfig - Checks the current configuration and fails if an option is '
126126 @echo ' not set'
127− @echo ' loose_nonint_oldconfig - Same as nonint_oldconfig, but updates the config file with '
128− @echo ' missing config options as unset'
127+ @echo ' oldnoconfig - Same as silentoldconfig but set new symbols to n (unset)'
129128
130129 # lxdialog stuff
131130 check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh
scripts/kconfig/conf.c+7−7
@@ -34,7 +34,7 @@ enum input_mode { · 33 unmodified lines
3434 randconfig,
3535 defconfig,
3636 nonint_oldconfig,
37− loose_nonint_oldconfig,
37+ oldnoconfig,
3838 } input_mode = oldaskconfig;
3939
4040 char *defconfig_file;
@@ -367,7 +367,7 @@ static void conf(struct menu *menu) · 326 unmodified lines
367367 case P_MENU:
368368 if ((input_mode == silentoldconfig ||
369369 input_mode == nonint_oldconfig ||
370− input_mode == loose_nonint_oldconfig) &&
370+ input_mode == oldnoconfig) &&
371371 rootEntry != menu) {
372372 check_conf(menu);
373373 return;
@@ -427,7 +427,7 @@ static void check_conf(struct menu *menu) · 53 unmodified lines
427427 if (sym_is_changable(sym) ||
428428 (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) {
429429 if (input_mode == nonint_oldconfig ||
430− input_mode == loose_nonint_oldconfig) {
430+ input_mode == oldnoconfig) {
431431 if (input_mode == nonint_oldconfig &&
432432 sym->name && !sym_is_choice_value(sym)) {
433433 if (!unset_variables)
@@ -460,7 +460,7 @@ static struct option long_opts[] = { · 26 unmodified lines
460460 {"allmodconfig", no_argument, NULL, allmodconfig},
461461 {"randconfig", no_argument, NULL, randconfig},
462462 {"nonint_oldconfig", no_argument, NULL, nonint_oldconfig},
463− {"loose_nonint_oldconfig", no_argument, NULL, loose_nonint_oldconfig},
463+ {"oldnoconfig", no_argument, NULL, oldnoconfig},
464464 {NULL, 0, NULL, 0}
465465 };
466466
@@ -540,7 +540,7 @@ int main(int ac, char **av) · 73 unmodified lines
540540 case oldaskconfig:
541541 case oldconfig:
542542 case nonint_oldconfig:
543− case loose_nonint_oldconfig:
543+ case oldnoconfig:
544544 conf_read(NULL);
545545 break;
546546 case allnoconfig:
@@ -603,7 +603,7 @@ int main(int ac, char **av) · 56 unmodified lines
603603 input_mode = silentoldconfig;
604604 /* fall through */
605605 case nonint_oldconfig:
606− case loose_nonint_oldconfig:
606+ case oldnoconfig:
607607 case silentoldconfig:
608608 /* Update until a loop caused no more changes */
609609 do {
@@ -611,7 +611,7 @@ int main(int ac, char **av) · 1 unmodified line
611611 check_conf(&rootmenu);
612612 } while (conf_cnt &&
613613 (input_mode != nonint_oldconfig &&
614− input_mode != loose_nonint_oldconfig));
614+ input_mode != oldnoconfig));
615615 break;
616616 }
617617