allow menuconfig without a LINUX26_KCONFIG file
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 7 Oct 2009 20:08:24 +0000 (22:08 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Wed, 7 Oct 2009 20:13:06 +0000 (22:13 +0200)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
target/linux/Makefile.in

index cf430d96b26521353850ef15bbbf4f064c52fa17..c4962bd3f775c9001fc64809278b6dd59e8cd370 100644 (file)
@@ -202,7 +202,11 @@ $(TARGET_DIR)/lib/modules/$(LINUX26_VERSION)/modules.dep: $(LINUX26_DIR)/.config
        touch -c $@
 
 linux26-menuconfig: $(LINUX26_DIR)/.patched host-sed
-       [ -f $(LINUX26_DIR)/.config ] || cp $(LINUX26_KCONFIG) $(LINUX26_DIR)/.config
+       if [ ! -f $(LINUX26_DIR)/.config ]; then \
+               [ -n "$(LINUX26_KCONFIG)" ] && [ -f $(LINUX26_KCONFIG) ] && \
+                       cp $(LINUX26_KCONFIG) $(LINUX26_DIR)/.config || \
+                       true; \
+       fi
        $(MAKE) $(LINUX26_MAKE_FLAGS) -C $(LINUX26_DIR) menuconfig
        -[ -f $(LINUX26_DIR)/.config ] && touch $(LINUX26_DIR)/.configured