commit 79a54fd5471fcae3deeb27255f37aeee0171a5c7
Author: p4u <hakais@gmail.com>
Date:   Thu Mar 8 19:16:29 2012 +0100

    If no target config file available, compilation does not crashes and it uses the default options

diff --git a/Makefile b/Makefile
index 668400e..635b644 100644
--- a/Makefile
+++ b/Makefile
@@ -78,8 +78,8 @@ define checkout_owrt_pkg_override
 endef
 
 define copy_config
-	cp -f $(CONFIG_DIR)/$(TARGET)/config $(CONFIG)
-	cd $(BUILD_DIR)/$(TARGET) && ./scripts/diffconfig.sh > .config.tmp
+	cp -f $(CONFIG_DIR)/$(TARGET)/config $(CONFIG) || echo "WARNING: Config file not found!"
+	cd $(BUILD_DIR)/$(TARGET) && ./scripts/diffconfig.sh > .config.tmp 
 	cp -f $(BUILD_DIR)/$(TARGET)/.config.tmp $(BUILD_DIR)/$(TARGET)/.config
 	cd $(BUILD_DIR)/$(TARGET) && make defconfig 
 	[ -f $(CONFIG_DIR)/$(TARGET)/kernel_config ] && cat $(CONFIG_DIR)/$(TARGET)/kernel_config >> $(CONFIG) || true
