aboutsummaryrefslogtreecommitdiffstats
path: root/include/kernel.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-19 06:20:55 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-19 06:20:55 +0000
commitcbe69ab035184130afbf829e3459967d2b40dc1e (patch)
tree595542908e025166da32868ff30aed496acb63c8 /include/kernel.mk
parentd5fbaf77f7b917d0b113a210b3d959d080f05dd5 (diff)
downloadupstream-cbe69ab035184130afbf829e3459967d2b40dc1e.tar.gz
upstream-cbe69ab035184130afbf829e3459967d2b40dc1e.tar.bz2
upstream-cbe69ab035184130afbf829e3459967d2b40dc1e.zip
cleanup/rewrite of the kernel build process
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5226 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include/kernel.mk')
-rw-r--r--include/kernel.mk9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/kernel.mk b/include/kernel.mk
index 42c9cdf3a1..1ab85d4cc5 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -18,12 +18,11 @@ else
LINUX_VERSION:=$(CONFIG_LINUX_VERSION)
LINUX_RELEASE:=$(CONFIG_LINUX_RELEASE)
LINUX_KARCH:=$(CONFIG_LINUX_KARCH)
- else
- # oops, old .kernel.config; rebuild it (hiding the misleading errors this produces)
- $(warning rebuilding .kernel.mk)
- $(TOPDIR)/.kernel.mk: FORCE
+ else
ifneq ($(KERNEL_BUILD),1)
- $(TOPDIR)/.kernel.mk:
+ # oops, old .kernel.config; rebuild it (hiding the misleading errors this produces)
+ $(warning rebuilding .kernel.mk)
+ $(TOPDIR)/.kernel.mk: FORCE
@$(MAKE) -C $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL) $@ &>/dev/null
endif
endif