summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDino Li <Dino.Li@ite.com.tw>2019-10-21 13:27:29 +0800
committerCommit Bot <commit-bot@chromium.org>2020-02-25 22:05:38 +0000
commitdba73647bff5ca323ecdcd2b38bd5c3a2b9581bc (patch)
treee10d354dabda6c53b2c3ddf4c171af9d13680e37
parent7f3f2782e5d058df2b249757baac2aa50f73a6aa (diff)
downloadchrome-ec-dba73647bff5ca323ecdcd2b38bd5c3a2b9581bc.tar.gz
core/riscv-rv32: link libgcc for 64-bit division
We made this change to fix the issue of __udivdi3 routine is missing in host_command_get_uptime_info() function. BUG=none BRANCH=none TEST=There is no error on building it83xx_evb with selecting riscv core. Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Change-Id: Ib745114e7be2a371b18b9268423e9ddd34bfde61 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1866214 Reviewed-by: Jett Rink <jettrink@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
-rw-r--r--core/riscv-rv32i/build.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/riscv-rv32i/build.mk b/core/riscv-rv32i/build.mk
index c315148dcb..c8d7328a3a 100644
--- a/core/riscv-rv32i/build.mk
+++ b/core/riscv-rv32i/build.mk
@@ -13,5 +13,6 @@ $(call set-option,CROSS_COMPILE,$(CROSS_COMPILE_riscv),\
# CPU specific compilation flags
CFLAGS_CPU+=-march=rv32imafc -mabi=ilp32f -Os
LDFLAGS_EXTRA+=-mrelax
+LDFLAGS_EXTRA+=-static-libgcc -lgcc
core-y=cpu.o init.o panic.o task.o switch.o __builtin.o math.o