kconfig: conf -D just takes default config w/out assuming input_mode is set_default
PATCH 3/4 kconfig: conf -D just takes default config w/out assuming input_mode is set_default
Previously, both -d and -D specified that input_mode was set_default; the only difference was that -D took an argument (setting defconfig_file).
With this change, -d specifies set_default, and -D merely sets defconfig_file. This means that (for example) 'make i386_defconfig' becomes
'conf -d -D $def $(Kconfig)'. The goal here is to enable future targets to specify a default conf file without being forced to set input_mode to set_default.
Signed-off-by Andres Salomon <[email protected]>
--- scripts/kconfig/Makefile | 4 ++-- scripts/kconfig/conf.c | 1 - 2 files changed, 2 insertions(+), 3 deletions(-)
scripts/kconfig/Makefile +2 -2
@@ -66,11 +66,11 @@ ifeq ($(KBUILD_DEFCONFIG),) $< -d $(Kconfig) else @echo "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'" - $(Q)$< -D arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig) + $(Q)$< -d -D arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig) endif %_defconfig: $(obj)/conf - $(Q)$< -D arch/$(SRCARCH)/configs/$@ $(Kconfig) + $(Q)$< -d -D arch/$(SRCARCH)/configs/$@ $(Kconfig) # Help text used by make help help:
scripts/kconfig/conf.c +0 -1
@@ -515,7 +515,6 @@ int main(int ac, char **av) input_mode = set_default;break ;case 'D' : - input_mode = set_default; defconfig_file = optarg;break ;case 'n' :
Signature · 1 line
1.5.5