aboutsummaryrefslogtreecommitdiffstats
path: root/include/kernel-build.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-06-13 15:28:31 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-06-13 15:28:31 +0000
commitd26fa58d2549c173404240c6efdcdb60755c4bb5 (patch)
treee2c30493d99abbbf4891190c485027ebcea68a57 /include/kernel-build.mk
parent983b22aa95eed2fedc109d505105d1a46e8bdfa0 (diff)
downloadupstream-d26fa58d2549c173404240c6efdcdb60755c4bb5.tar.gz
upstream-d26fa58d2549c173404240c6efdcdb60755c4bb5.tar.bz2
upstream-d26fa58d2549c173404240c6efdcdb60755c4bb5.zip
create a platform config-* file if there is none already when running kernel_menuconfig or kernel_oldconfig
SVN-Revision: 11460
Diffstat (limited to 'include/kernel-build.mk')
-rw-r--r--include/kernel-build.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/kernel-build.mk b/include/kernel-build.mk
index 75c2bcf01a..b6d2cf5efb 100644
--- a/include/kernel-build.mk
+++ b/include/kernel-build.mk
@@ -77,6 +77,7 @@ define BuildKernel
$(MAKE) -C image compile TARGET_BUILD=
oldconfig menuconfig: $(STAMP_PREPARED) FORCE
+ [ -e "$(LINUX_CONFIG)" ] || touch "$(LINUX_CONFIG)"
$(LINUX_CONFCMD) > $(LINUX_DIR)/.config
touch $(LINUX_CONFIG)
$(MAKE) -C $(LINUX_DIR) $(KERNEL_MAKEOPTS) $$@