summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYilun Lin <yllin@google.com>2019-01-21 16:28:41 +0800
committerchrome-bot <chrome-bot@chromium.org>2019-01-22 21:05:32 -0800
commit009a86f16d48095a2dbccd7bf725d77844ec527b (patch)
treeaa9c34300421d2f639e693297426d252c59bc771
parenta9c83eb7152cb76dbc1a5afdf74ec5213162cc47 (diff)
downloadchrome-ec-009a86f16d48095a2dbccd7bf725d77844ec527b.tar.gz
kukui: Use coreboot-sdk by default.
kukui has a very limited size for RO image. We found that using coreboot-sdk brings us a lot of extra space on kukui, so we decide to use coreboot-sdk BRANCH=None BUG=b:122874284 TEST=build both targes with emerge-kukui coreboot && make BOARD=kukui -B -j \ BOOTBLOCK=/build/kukui/firmware/kukui/coreboot/bootblock.bin and compare the results of grep hey build/kukui/RO/ec.RO.map 1. with coreboot-sdk 0x000000000001d7c8 __hey_flash_used = ((LOADADDR (.data) + SIZEOF ... 0x000000000001d7c8 __image_size = __hey_flash_used 2. without coreboot-sdk 0x000000000001df48 __hey_flash_used = ((LOADADDR (.data) + SIZEOF ... 0x000000000001df48 __image_size = __hey_flash_used and it saves 1940 byte in this case. Change-Id: Ic856db7d17a23df01b91152868eddb0920c3b069 Signed-off-by: Yilun Lin <yllin@google.com> Reviewed-on: https://chromium-review.googlesource.com/1424045 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Yilun Lin <yllin@chromium.org> Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
-rw-r--r--board/kukui/build.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/kukui/build.mk b/board/kukui/build.mk
index 02ef585861..7b91f2b366 100644
--- a/board/kukui/build.mk
+++ b/board/kukui/build.mk
@@ -11,6 +11,11 @@ CHIP:=stm32
CHIP_FAMILY:=stm32f0
CHIP_VARIANT:=stm32f09x
+# Use coreboot-sdk
+$(call set-option,CROSS_COMPILE_arm,\
+ $(CROSS_COMPILE_coreboot_sdk_arm),\
+ /opt/coreboot-sdk/bin/arm-eabi-)
+
board-y=battery.o board.o usb_pd_policy.o led.o
board-$(CONFIG_BOOTBLOCK)+=emmc.o