Remove CONFIG_DEFCONFIG
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 11 Aug 2010 17:06:05 +0000 (19:06 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 1 Sep 2010 10:26:22 +0000 (12:26 +0200)
There's no need to have a .defconfig, when you run make menuconfig,
make xconfig or anything else for the first time, it will just start
with the default configuration anyway. This is what the kernel does.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Makefile

index d37d81f64c66f42d8009dcc2091347c58b03e06f..e3cebe2b63966d777917e0ebe4dc42de24a00348 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,6 @@
 # absolute path
 TOPDIR:=$(shell pwd)
 CONFIG_CONFIG_IN=Config.in
-CONFIG_DEFCONFIG=.defconfig
 CONFIG=package/config
 DATE:=$(shell date +%Y%m%d)
 
@@ -465,9 +464,6 @@ export HOSTCFLAGS
 $(BUILD_DIR)/buildroot-config/%onf:
        mkdir -p $(@D)/lxdialog
        $(MAKE) CC="$(HOSTCC)" obj=$(@D) -C $(CONFIG) $(@F)
-       -@if [ ! -f $(CONFIG_DIR)/.config ]; then \
-               cp $(CONFIG_DEFCONFIG) $(CONFIG_DIR)/.config; \
-       fi
 
 xconfig: $(BUILD_DIR)/buildroot-config/qconf
        @mkdir -p $(BUILD_DIR)/buildroot-config
@@ -513,7 +509,6 @@ randconfig: $(BUILD_DIR)/buildroot-config/conf
                BUILDROOT_CONFIG=$(CONFIG_DIR)/.config $< -r $(CONFIG_CONFIG_IN)
 
 allyesconfig: $(BUILD_DIR)/buildroot-config/conf
-       cat $(CONFIG_DEFCONFIG) > $(CONFIG_DIR)/.config
        @mkdir -p $(BUILD_DIR)/buildroot-config
        @KCONFIG_AUTOCONFIG=$(BUILD_DIR)/buildroot-config/auto.conf \
                KCONFIG_AUTOHEADER=$(BUILD_DIR)/buildroot-config/autoconf.h \