summaryrefslogtreecommitdiff
path: root/core/nds32/build.mk
diff options
context:
space:
mode:
authorDino Li <Dino.Li@ite.com.tw>2017-11-10 09:57:13 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-11-10 04:45:04 -0800
commite64f9b258acb5e3bb3457a26e8c1450b75fab243 (patch)
treeefd601992ace82424d13bb724c45952c6dea2853 /core/nds32/build.mk
parent16f4c65daf528de399bf622d0aefcadc19238544 (diff)
downloadchrome-ec-e64f9b258acb5e3bb3457a26e8c1450b75fab243.tar.gz
nds32: use coreboot-sdk as the default toolchain for local build
With this change, we can pass "make buildall" at local after it83xx based boards were removed from skip_boards. BRANCH=none BUG=none TEST=- Passed "make buildall -j" - CROSS_COMPILE_nds32=nds32le-cros-elf- make BOARD=it83xx_evb -j, build ec image by using nds32le-cros-elf toolchain. - make BOARD=it83xx_evb -j, coreboot-sdk is used. Change-Id: I689b67ed50ac5c80e7526f157ba28733d7216e14 Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Reviewed-on: https://chromium-review.googlesource.com/762807 Commit-Ready: Patrick Georgi <pgeorgi@chromium.org> Tested-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
Diffstat (limited to 'core/nds32/build.mk')
-rw-r--r--core/nds32/build.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/nds32/build.mk b/core/nds32/build.mk
index 523ac5300c..aee656ef93 100644
--- a/core/nds32/build.mk
+++ b/core/nds32/build.mk
@@ -6,8 +6,11 @@
# Andestar v3m architecture core OS files build
#
+# Set coreboot-sdk as the default toolchain for nds32
+NDS32_DEFAULT_COMPILE=/opt/coreboot-sdk/bin/nds32le-elf-
+
# Select Andes bare-metal toolchain
-$(call set-option,CROSS_COMPILE,$(CROSS_COMPILE_nds32),nds32le-cros-elf-)
+$(call set-option,CROSS_COMPILE,$(CROSS_COMPILE_nds32),$(NDS32_DEFAULT_COMPILE))
# CPU specific compilation flags
CFLAGS_CPU+=-march=v3m -Os