From 10eaccc2332b0366b10fbe7f0c4dc6c12332e130 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Wed, 7 Oct 2009 22:08:24 +0200 Subject: [PATCH] allow menuconfig without a LINUX26_KCONFIG file Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Peter Korsgaard --- target/linux/Makefile.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/target/linux/Makefile.in b/target/linux/Makefile.in index cf430d96b2..c4962bd3f7 100644 --- a/target/linux/Makefile.in +++ b/target/linux/Makefile.in @@ -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 -- 2.30.2