summaryrefslogtreecommitdiff
path: root/openwrt/include/kernel-build.mk
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2006-08-16 00:35:30 +0000
committerMike Baker <mbm@openwrt.org>2006-08-16 00:35:30 +0000
commitd0b7296ddbf044eca8d66a056b95f1afa7ee7b59 (patch)
tree16cf6d357effab02d09c52870a5cddeab01c6690 /openwrt/include/kernel-build.mk
parent28fc5e4f7ac2cb2492bc8733fde136582fc23fc3 (diff)
downloadmtk-20170518-d0b7296ddbf044eca8d66a056b95f1afa7ee7b59.zip
mtk-20170518-d0b7296ddbf044eca8d66a056b95f1afa7ee7b59.tar.gz
mtk-20170518-d0b7296ddbf044eca8d66a056b95f1afa7ee7b59.tar.bz2
fix issues if kernel config is changed after the compile has started
SVN-Revision: 4570
Diffstat (limited to 'openwrt/include/kernel-build.mk')
-rw-r--r--openwrt/include/kernel-build.mk9
1 files changed, 5 insertions, 4 deletions
diff --git a/openwrt/include/kernel-build.mk b/openwrt/include/kernel-build.mk
index a8c9e7f..665f0ff 100644
--- a/openwrt/include/kernel-build.mk
+++ b/openwrt/include/kernel-build.mk
@@ -94,10 +94,11 @@ $(KERNEL_IPKG):
fi
$(IPKG_BUILD) $(KERNEL_IDIR) $(KERNEL_BUILD_DIR)
-$(TOPDIR)/.kernel.mk:
- echo "BOARD:=$(BOARD)" > $@
- echo "LINUX_VERSION:=$(LINUX_VERSION)" >> $@
- echo "LINUX_RELEASE:=$(LINUX_RELEASE)" >> $@
+$(TOPDIR)/.kernel.mk: $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL)/Makefile
+ echo "CONFIG_BOARD:=$(BOARD)" > $@
+ echo "CONFIG_KERNEL:=$(KERNEL)" >> $@
+ echo "CONFIG_LINUX_VERSION:=$(LINUX_VERSION)" >> $@
+ echo "CONFIG_LINUX_RELEASE:=$(LINUX_RELEASE)" >> $@
pkg-install: FORCE
@for pkg in $(INSTALL_TARGETS); do \