summaryrefslogtreecommitdiff
path: root/chip/it83xx/build.mk
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2017-11-03 10:56:01 -0400
committerchrome-bot <chrome-bot@chromium.org>2017-11-08 17:25:45 -0800
commit1db6ef615b2d225de2bc3984319c0f4abc9ff5b6 (patch)
treea306ade68d5ddcbc74a65a88d320e357f2b29d70 /chip/it83xx/build.mk
parent66546f8d3491bf961898eb981f2261220bb0ca2c (diff)
downloadchrome-ec-1db6ef615b2d225de2bc3984319c0f4abc9ff5b6.tar.gz
it83xx: Make it build with coreboot-sdk
With these changes $ CROSS_COMPILE_nds32=/opt/coreboot-sdk/bin/nds32le-elf- \ make BOARD=it83xx_evb works for me. The -mno-gp-direct option is replaced with -mcmodel=large in new compilers, as indicated in private email with Andes Tech. It was also used as a work-around and leaving out the option altogether reduces the code size significantly, so it's now dropped. BRANCH=none BUG=b:35572628 TEST=the above command creates an image Change-Id: Ib580d65e6e52f291fdb920b7b65fb22cfda9f736 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://chromium-review.googlesource.com/753623 Commit-Ready: Stefan Reinauer <reinauer@google.com> Tested-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
Diffstat (limited to 'chip/it83xx/build.mk')
-rw-r--r--chip/it83xx/build.mk2
1 files changed, 0 insertions, 2 deletions
diff --git a/chip/it83xx/build.mk b/chip/it83xx/build.mk
index 69832c2de6..2179b8c17e 100644
--- a/chip/it83xx/build.mk
+++ b/chip/it83xx/build.mk
@@ -9,8 +9,6 @@
# IT83xx SoC family has an Andes N801 core.
CORE:=nds32
-CFLAGS_CPU+=-mno-gp-direct
-
# Required chip modules
chip-y=hwtimer.o uart.o gpio.o system.o clock.o irq.o intc.o