From: Johannes Berg Date: Tue, 2 Apr 2013 21:50:10 +0000 (+0200) Subject: allow defconfig to work X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3f7278baa3099eea13876b69431a3a3b702e7dd4;p=openwrt%2Fstaging%2Fblogic.git allow defconfig to work This allows shipping a 'defconfig' file in the output and then just "make" works, taking the config from there and setting everything else to the default. Signed-off-by: Johannes Berg --- diff --git a/backport/Makefile.real b/backport/Makefile.real index a2e1677a611b..603861aec6cc 100644 --- a/backport/Makefile.real +++ b/backport/Makefile.real @@ -21,18 +21,20 @@ alldefconfig randconfig: @$(MAKE) -C kconfig conf @./kconfig/conf --$@ Kconfig +.PHONY: defconfig defconfig: @$(MAKE) -C kconfig conf - @./kconfig conf --defconfig defconfig + @./kconfig/conf --defconfig defconfig .config: - @echo "/--------------" - @echo "| Your backport package isn't configured, please configure it" - @echo "| using one of the following options:" - @echo "| make menuconfig" - @echo "| make allyesconfig" - @echo "\--" - @false + @test -f defconfig && (yes '' | $(MAKE) alldefconfig) || ( \ + echo "/--------------" ;\ + echo "| Your backport package isn't configured, please configure it" ;\ + echo "| using one of the following options:" ;\ + echo "| make menuconfig" ;\ + echo "| make allyesconfig" ;\ + echo "\--" ;\ + false ) include/linux/compat_autoconf.h: .config @$(MAKE) oldconfig