diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-10-19 05:01:04 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-10-19 05:01:04 +0000 |
commit | da0444cb98e698043fa3b208e3dc80b82a928d03 (patch) | |
tree | 1eee9768fe7358d28a52f8c87f69de612ef3f6a1 /include/kernel.mk | |
parent | 76afad613130a4856775666b7e3049ce8ceddba1 (diff) |
cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5224 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include/kernel.mk')
-rw-r--r-- | include/kernel.mk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/kernel.mk b/include/kernel.mk index af5d9455f..42c9cdf3a 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -18,11 +18,14 @@ else LINUX_VERSION:=$(CONFIG_LINUX_VERSION) LINUX_RELEASE:=$(CONFIG_LINUX_RELEASE) LINUX_KARCH:=$(CONFIG_LINUX_KARCH) - else + else # 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 + ifneq ($(KERNEL_BUILD),1) + $(TOPDIR)/.kernel.mk: + @$(MAKE) -C $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL) $@ &>/dev/null + endif endif ifeq ($(KERNEL),2.6) |