commit b920809672e07fd0c183e306a0ad2377444e6ca5
Author: p4u <pau@dabax.net>
Date:   Mon Oct 17 00:14:31 2011 +0200

    Splited copy_configs function from checkout to do it before update process

diff --git a/Makefile b/Makefile
index 87281cd..77a7ba6 100644
--- a/Makefile
+++ b/Makefile
@@ -52,6 +52,9 @@ define checkout_src
 	rm -rf $(BUILD_DIR)/$(T)/feeds/
 	cp -f $(BUILD_DIR)/qmp/feeds.conf $(BUILD_DIR)/$(T)/
 	sed -i -e "s|PATH|`pwd`/$(BUILD_DIR)|" $(BUILD_DIR)/$(T)/feeds.conf
+endef
+
+define copy_config
 	cp -f $(CONFIG_DIR)/$(T)/config $(CONFIG)
 	[ -f $(CONFIG_DIR)/$(T)/kernel_config ] && cp -f $(CONFIG_DIR)/$(T)/kernel_config $(KCONFIG) || true
 endef
@@ -117,6 +120,7 @@ checkout: .checkout_qmp .checkout_eig
 	$(if $(T),,$(call target_error))
 	$(if $(wildcard .checkout_$(T)),,$(call checkout_src))
 	$(if $(wildcard .checkout_$(T)),,$(call update_feeds))
+	$(if $(wildcard .checkout_$(T)),,$(call copy_config))
 	@touch .checkout_$(T)
 	
 update: .checkout_eig .checkout_qmp
