summaryrefslogtreecommitdiffstats
path: root/kernel/scripts/kconfig/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/scripts/kconfig/Makefile')
-rw-r--r--kernel/scripts/kconfig/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/scripts/kconfig/Makefile b/kernel/scripts/kconfig/Makefile
index d79cba4ce..ebced77de 100644
--- a/kernel/scripts/kconfig/Makefile
+++ b/kernel/scripts/kconfig/Makefile
@@ -96,13 +96,15 @@ savedefconfig: $(obj)/conf
defconfig: $(obj)/conf
ifeq ($(KBUILD_DEFCONFIG),)
$< $(silent) --defconfig $(Kconfig)
-else ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),)
+else
+ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG)),)
@$(kecho) "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
$(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)
else
@$(kecho) "*** Default configuration is based on target '$(KBUILD_DEFCONFIG)'"
$(Q)$(MAKE) -f $(srctree)/Makefile $(KBUILD_DEFCONFIG)
endif
+endif
%_defconfig: $(obj)/conf
$(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig)