From 4bb2c88f4ea2048f732d6d156ba3c564bd4eeb48 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 23 Oct 2007 06:23:23 +0000 Subject: don't specify "CC=" 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 SVN-Revision: 9408 --- include/kernel.mk | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/kernel.mk') diff --git a/include/kernel.mk b/include/kernel.mk index f9baeef..4bdd24a 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 ) -- cgit v1.1