From 9b6e2c363f2686d6f7bf61fbe58b7591b71d3e8b Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Fri, 28 Feb 2014 14:33:30 +0900 Subject: kbuild: fix CROSS_COMPILE settings in config.mk The syntax CROSS_COMIPLE ?= does not work because config.mk is parsed after exporting CROSS_COMPILE. Like Linux Kernel's arch/$(ARCH)/Makefile, we must write as follows: ifeq ($(CROSS_COMPILE),) CROSS_COMPILE := endif Signed-off-by: Masahiro Yamada --- arch/powerpc/config.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'arch/powerpc/config.mk') diff --git a/arch/powerpc/config.mk b/arch/powerpc/config.mk index f75c3bf..e398f97 100644 --- a/arch/powerpc/config.mk +++ b/arch/powerpc/config.mk @@ -5,7 +5,9 @@ # SPDX-License-Identifier: GPL-2.0+ # -CROSS_COMPILE ?= ppc_8xx- +ifeq ($(CROSS_COMPILE),) +CROSS_COMPILE := ppc_8xx- +endif CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000 LDFLAGS_FINAL += --gc-sections -- cgit v1.1