1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

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>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9408 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd
2007-10-23 06:23:23 +00:00
parent d274551d10
commit 2e05912189
2 changed files with 12 additions and 8 deletions

View File

@@ -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 )