|
@@ -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)
|