diff options
author | Patrick Georgi <pgeorgi@google.com> | 2017-11-03 10:56:01 -0400 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-11-08 17:25:45 -0800 |
commit | 1db6ef615b2d225de2bc3984319c0f4abc9ff5b6 (patch) | |
tree | a306ade68d5ddcbc74a65a88d320e357f2b29d70 /chip | |
parent | 66546f8d3491bf961898eb981f2261220bb0ca2c (diff) | |
download | chrome-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')
-rw-r--r-- | chip/it83xx/build.mk | 2 | ||||
-rw-r--r-- | chip/it83xx/lpc.c | 2 |
2 files changed, 0 insertions, 4 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 diff --git a/chip/it83xx/lpc.c b/chip/it83xx/lpc.c index 251d007f28..e1ce1be832 100644 --- a/chip/it83xx/lpc.c +++ b/chip/it83xx/lpc.c @@ -64,8 +64,6 @@ static uint8_t params_copy[EC_LPC_HOST_PACKET_SIZE] __aligned(4); static int init_done; static int p80l_index; -static uint8_t * const cmd_params = (uint8_t *)host_cmd_memmap + - EC_LPC_ADDR_HOST_PARAM - EC_LPC_ADDR_HOST_ARGS; static struct ec_lpc_host_args * const lpc_host_args = (struct ec_lpc_host_args *)host_cmd_memmap; |