aboutsummaryrefslogtreecommitdiffstats
path: root/include/kernel.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-10-23 06:23:23 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-10-23 06:23:23 +0000
commit4bb2c88f4ea2048f732d6d156ba3c564bd4eeb48 (patch)
tree66ea5614e14c12ef41714cb2add3cd6da0f3396d /include/kernel.mk
parent19a6b0fa95f3b38e9019d2151ad77e6affb07947 (diff)
downloadupstream-4bb2c88f4ea2048f732d6d156ba3c564bd4eeb48.tar.gz
upstream-4bb2c88f4ea2048f732d6d156ba3c564bd4eeb48.tar.bz2
upstream-4bb2c88f4ea2048f732d6d156ba3c564bd4eeb48.zip
don't specify "CC=<nothing>" on kernel build command line
If KERNEL_CC isn't set, we end up with a "CC=" on the kernel build command-line. We don't always need CC, as the CROSS_COMPILE flag does the job instead. In fact, specifying CC messes up the build when we're using a biarch compiler. This change doesn't specify CC= if the KERNEL_CC variable is empty. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> SVN-Revision: 9408
Diffstat (limited to 'include/kernel.mk')
-rw-r--r--include/kernel.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/kernel.mk b/include/kernel.mk
index f9baeef0ac..4bdd24a592 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -23,11 +23,11 @@ else
endif
ifneq (,$(findstring uml,$(BOARD)))
- KERNEL_CC:=$(HOSTCC)
- KERNEL_CROSS:=
+ KERNEL_CC?=$(HOSTCC)
+ KERNEL_CROSS?=
else
- KERNEL_CC:=$(TARGET_CC)
- KERNEL_CROSS:=$(TARGET_CROSS)
+ KERNEL_CC?=$(TARGET_CC)
+ KERNEL_CROSS?=$(TARGET_CROSS)
endif
PATCH_DIR ?= ./patches$(shell [ -d "./patches-$(KERNEL_PATCHVER)" ] && printf -- "-$(KERNEL_PATCHVER)" || true )