aboutsummaryrefslogtreecommitdiff
path: root/arch/nds32
diff options
context:
space:
mode:
authorMasahiro Yamada2014-02-28 14:33:30 +0900
committerTom Rini2014-03-04 12:15:30 -0500
commit9b6e2c363f2686d6f7bf61fbe58b7591b71d3e8b (patch)
treeaba046ec8f727fe744034100c5916af4186d4fd8 /arch/nds32
parenta86cf89c765d99c39b397abe3d9926ab3593f57a (diff)
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/nds32')
-rw-r--r--arch/nds32/config.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/nds32/config.mk b/arch/nds32/config.mk
index 550f8a440e6..0cbc4ad0582 100644
--- a/arch/nds32/config.mk
+++ b/arch/nds32/config.mk
@@ -8,7 +8,9 @@
#
# SPDX-License-Identifier: GPL-2.0+
-CROSS_COMPILE ?= nds32le-linux-
+ifeq ($(CROSS_COMPILE),)
+CROSS_COMPILE := nds32le-linux-
+endif
CONFIG_STANDALONE_LOAD_ADDR = 0x300000 -T $(srctree)/$(src)/nds32.lds