From 3f7278baa3099eea13876b69431a3a3b702e7dd4 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Tue, 2 Apr 2013 23:50:10 +0200 Subject: [PATCH] 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 --- backport/Makefile.real | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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 -- 2.30.2