mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-05 22:41:44 +00:00
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>
This commit is contained in:
committed by
chrome-bot
parent
66546f8d34
commit
1db6ef615b
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user