mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 01:51:39 +00:00
kconfig: replace 'oldnoconfig' with 'olddefconfig', and keep the old name as an alias
As 67d34a6a39
said, 'oldnoconfig' doesn't
set new symbols to 'n', but instead sets it to their default values.
So, this patch replaces 'oldnoconfig' with 'olddefconfig', stop making
people confused, and keep the old name 'oldnoconfig' as an alias,
because people already are dependent on its behavior with the
counter-intuitive name.
Signed-off-by: Adam Lee <adam8157@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
This commit is contained in:
parent
95ac9b3b58
commit
fb16d8912d
3 changed files with 32 additions and 20 deletions
|
@ -1871,10 +1871,10 @@ sub make_oldconfig {
|
|||
apply_min_config;
|
||||
}
|
||||
|
||||
if (!run_command "$make oldnoconfig") {
|
||||
# Perhaps oldnoconfig doesn't exist in this version of the kernel
|
||||
if (!run_command "$make olddefconfig") {
|
||||
# Perhaps olddefconfig doesn't exist in this version of the kernel
|
||||
# try a yes '' | oldconfig
|
||||
doprint "oldnoconfig failed, trying yes '' | make oldconfig\n";
|
||||
doprint "olddefconfig failed, trying yes '' | make oldconfig\n";
|
||||
run_command "yes '' | $make oldconfig" or
|
||||
dodie "failed make config oldconfig";
|
||||
}
|
||||
|
@ -1927,7 +1927,7 @@ sub build {
|
|||
|
||||
# old config can ask questions
|
||||
if ($type eq "oldconfig") {
|
||||
$type = "oldnoconfig";
|
||||
$type = "olddefconfig";
|
||||
|
||||
# allow for empty configs
|
||||
run_command "touch $output_config";
|
||||
|
@ -1957,7 +1957,7 @@ sub build {
|
|||
load_force_config($minconfig);
|
||||
}
|
||||
|
||||
if ($type ne "oldnoconfig") {
|
||||
if ($type ne "olddefconfig") {
|
||||
run_command "$make $type" or
|
||||
dodie "failed make config";
|
||||
}
|
||||
|
@ -2456,8 +2456,7 @@ my %config_set;
|
|||
|
||||
# config_off holds the set of configs that the bad config had disabled.
|
||||
# We need to record them and set them in the .config when running
|
||||
# oldnoconfig, because oldnoconfig does not turn off new symbols, but
|
||||
# instead just keeps the defaults.
|
||||
# olddefconfig, because olddefconfig keeps the defaults.
|
||||
my %config_off;
|
||||
|
||||
# config_off_tmp holds a set of configs to turn off for now
|
||||
|
@ -3248,7 +3247,7 @@ sub test_this_config {
|
|||
}
|
||||
|
||||
# Remove this config from the list of configs
|
||||
# do a make oldnoconfig and then read the resulting
|
||||
# do a make olddefconfig and then read the resulting
|
||||
# .config to make sure it is missing the config that
|
||||
# we had before
|
||||
my %configs = %min_configs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue