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 Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Aristeu Rozanski <aris@redhat.com> Signed-off-by: Michal Marek <mmarek@suse.cz>
This commit is contained in:
parent
4062f1a4c0
commit
ef61ca88c5
2 changed files with 10 additions and 11 deletions
|
@ -90,9 +90,9 @@ PHONY += allnoconfig allyesconfig allmodconfig randconfig
|
||||||
allnoconfig allyesconfig allmodconfig randconfig: $(obj)/conf
|
allnoconfig allyesconfig allmodconfig randconfig: $(obj)/conf
|
||||||
$< --$@ $(Kconfig)
|
$< --$@ $(Kconfig)
|
||||||
|
|
||||||
PHONY += nonint_oldconfig loose_nonint_oldconfig defconfig
|
PHONY += nonint_oldconfig oldnoconfig defconfig
|
||||||
|
|
||||||
nonint_oldconfig loose_nonint_oldconfig: $(obj)/conf
|
nonint_oldconfig oldnoconfig: $(obj)/conf
|
||||||
$< --$@ $(Kconfig)
|
$< --$@ $(Kconfig)
|
||||||
|
|
||||||
defconfig: $(obj)/conf
|
defconfig: $(obj)/conf
|
||||||
|
@ -124,8 +124,7 @@ help:
|
||||||
@echo ' allnoconfig - New config where all options are answered with no'
|
@echo ' allnoconfig - New config where all options are answered with no'
|
||||||
@echo ' nonint_oldconfig - Checks the current configuration and fails if an option is '
|
@echo ' nonint_oldconfig - Checks the current configuration and fails if an option is '
|
||||||
@echo ' not set'
|
@echo ' not set'
|
||||||
@echo ' loose_nonint_oldconfig - Same as nonint_oldconfig, but updates the config file with '
|
@echo ' oldnoconfig - Same as silentoldconfig but set new symbols to n (unset)'
|
||||||
@echo ' missing config options as unset'
|
|
||||||
|
|
||||||
# lxdialog stuff
|
# lxdialog stuff
|
||||||
check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh
|
check-lxdialog := $(srctree)/$(src)/lxdialog/check-lxdialog.sh
|
||||||
|
|
|
@ -34,7 +34,7 @@ enum input_mode {
|
||||||
randconfig,
|
randconfig,
|
||||||
defconfig,
|
defconfig,
|
||||||
nonint_oldconfig,
|
nonint_oldconfig,
|
||||||
loose_nonint_oldconfig,
|
oldnoconfig,
|
||||||
} input_mode = oldaskconfig;
|
} input_mode = oldaskconfig;
|
||||||
|
|
||||||
char *defconfig_file;
|
char *defconfig_file;
|
||||||
|
@ -367,7 +367,7 @@ static void conf(struct menu *menu)
|
||||||
case P_MENU:
|
case P_MENU:
|
||||||
if ((input_mode == silentoldconfig ||
|
if ((input_mode == silentoldconfig ||
|
||||||
input_mode == nonint_oldconfig ||
|
input_mode == nonint_oldconfig ||
|
||||||
input_mode == loose_nonint_oldconfig) &&
|
input_mode == oldnoconfig) &&
|
||||||
rootEntry != menu) {
|
rootEntry != menu) {
|
||||||
check_conf(menu);
|
check_conf(menu);
|
||||||
return;
|
return;
|
||||||
|
@ -427,7 +427,7 @@ static void check_conf(struct menu *menu)
|
||||||
if (sym_is_changable(sym) ||
|
if (sym_is_changable(sym) ||
|
||||||
(sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) {
|
(sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) {
|
||||||
if (input_mode == nonint_oldconfig ||
|
if (input_mode == nonint_oldconfig ||
|
||||||
input_mode == loose_nonint_oldconfig) {
|
input_mode == oldnoconfig) {
|
||||||
if (input_mode == nonint_oldconfig &&
|
if (input_mode == nonint_oldconfig &&
|
||||||
sym->name && !sym_is_choice_value(sym)) {
|
sym->name && !sym_is_choice_value(sym)) {
|
||||||
if (!unset_variables)
|
if (!unset_variables)
|
||||||
|
@ -460,7 +460,7 @@ static struct option long_opts[] = {
|
||||||
{"allmodconfig", no_argument, NULL, allmodconfig},
|
{"allmodconfig", no_argument, NULL, allmodconfig},
|
||||||
{"randconfig", no_argument, NULL, randconfig},
|
{"randconfig", no_argument, NULL, randconfig},
|
||||||
{"nonint_oldconfig", no_argument, NULL, nonint_oldconfig},
|
{"nonint_oldconfig", no_argument, NULL, nonint_oldconfig},
|
||||||
{"loose_nonint_oldconfig", no_argument, NULL, loose_nonint_oldconfig},
|
{"oldnoconfig", no_argument, NULL, oldnoconfig},
|
||||||
{NULL, 0, NULL, 0}
|
{NULL, 0, NULL, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -540,7 +540,7 @@ int main(int ac, char **av)
|
||||||
case oldaskconfig:
|
case oldaskconfig:
|
||||||
case oldconfig:
|
case oldconfig:
|
||||||
case nonint_oldconfig:
|
case nonint_oldconfig:
|
||||||
case loose_nonint_oldconfig:
|
case oldnoconfig:
|
||||||
conf_read(NULL);
|
conf_read(NULL);
|
||||||
break;
|
break;
|
||||||
case allnoconfig:
|
case allnoconfig:
|
||||||
|
@ -603,7 +603,7 @@ int main(int ac, char **av)
|
||||||
input_mode = silentoldconfig;
|
input_mode = silentoldconfig;
|
||||||
/* fall through */
|
/* fall through */
|
||||||
case nonint_oldconfig:
|
case nonint_oldconfig:
|
||||||
case loose_nonint_oldconfig:
|
case oldnoconfig:
|
||||||
case silentoldconfig:
|
case silentoldconfig:
|
||||||
/* Update until a loop caused no more changes */
|
/* Update until a loop caused no more changes */
|
||||||
do {
|
do {
|
||||||
|
@ -611,7 +611,7 @@ int main(int ac, char **av)
|
||||||
check_conf(&rootmenu);
|
check_conf(&rootmenu);
|
||||||
} while (conf_cnt &&
|
} while (conf_cnt &&
|
||||||
(input_mode != nonint_oldconfig &&
|
(input_mode != nonint_oldconfig &&
|
||||||
input_mode != loose_nonint_oldconfig));
|
input_mode != oldnoconfig));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue