diff options
author | Masahiro Yamada <yamada.m@jp.panasonic.com> | 2014-02-28 14:33:30 +0900 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-03-04 12:15:30 -0500 |
commit | 9b6e2c363f2686d6f7bf61fbe58b7591b71d3e8b (patch) | |
tree | aba046ec8f727fe744034100c5916af4186d4fd8 /arch/sparc/config.mk | |
parent | a86cf89c765d99c39b397abe3d9926ab3593f57a (diff) | |
download | u-boot-imx-9b6e2c363f2686d6f7bf61fbe58b7591b71d3e8b.zip u-boot-imx-9b6e2c363f2686d6f7bf61fbe58b7591b71d3e8b.tar.gz u-boot-imx-9b6e2c363f2686d6f7bf61fbe58b7591b71d3e8b.tar.bz2 |
kbuild: fix CROSS_COMPILE settings in config.mk
The syntax
CROSS_COMIPLE ?= <cross_compiler_prefix>
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 := <cross_compiler_prefix>
endif
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Diffstat (limited to 'arch/sparc/config.mk')
-rw-r--r-- | arch/sparc/config.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/sparc/config.mk b/arch/sparc/config.mk index 9bb3724..e2327ec 100644 --- a/arch/sparc/config.mk +++ b/arch/sparc/config.mk @@ -5,7 +5,9 @@ # SPDX-License-Identifier: GPL-2.0+ # -CROSS_COMPILE ?= sparc-elf- +ifeq ($(CROSS_COMPILE),) +CROSS_COMPILE := sparc-elf- +endif CONFIG_STANDALONE_LOAD_ADDR ?= 0x00000000 -L $(gcclibdir) \ -T $(srctree)/$(src)/sparc.lds |