diff options
author | Patrick Georgi <pgeorgi@google.com> | 2019-02-02 09:46:51 +0100 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-02-19 12:46:14 -0800 |
commit | a66c36ee98fc109dc2abb4c1fcc8947dd267fcc0 (patch) | |
tree | ee18a5738392b3334757adaaa4a793552dba0536 | |
parent | 385f222d217188de7dd002c7a749886cf7ee7929 (diff) | |
download | chrome-ec-a66c36ee98fc109dc2abb4c1fcc8947dd267fcc0.tar.gz |
core/cortex-m*: always use coreboot-sdk
It creates smaller code.
BUG=chromium:851727,b:65441143
BRANCH=none
TEST=builds with the new compiler
Change-Id: I569c6f75a595331fb489323d8b3f02d5dd2d5050
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1450713
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
-rw-r--r-- | board/kukui/build.mk | 5 | ||||
-rw-r--r-- | board/servo_v4/build.mk | 5 | ||||
-rw-r--r-- | core/cortex-m/build.mk | 6 | ||||
-rw-r--r-- | core/cortex-m0/build.mk | 6 |
4 files changed, 8 insertions, 14 deletions
diff --git a/board/kukui/build.mk b/board/kukui/build.mk index 7b91f2b366..02ef585861 100644 --- a/board/kukui/build.mk +++ b/board/kukui/build.mk @@ -11,11 +11,6 @@ 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 diff --git a/board/servo_v4/build.mk b/board/servo_v4/build.mk index 8d3e1e8d71..6336bbfab6 100644 --- a/board/servo_v4/build.mk +++ b/board/servo_v4/build.mk @@ -10,11 +10,6 @@ CHIP:=stm32 CHIP_FAMILY:=stm32f0 CHIP_VARIANT:=stm32f07x -# Use coreboot-sdk -$(call set-option,CROSS_COMPILE_arm,\ - $(CROSS_COMPILE_coreboot_sdk_arm),\ - /opt/coreboot-sdk/bin/arm-eabi-) - # Not enough SRAM: Disable all tests test-list-y= diff --git a/core/cortex-m/build.mk b/core/cortex-m/build.mk index 410ea028ee..c7be9d685a 100644 --- a/core/cortex-m/build.mk +++ b/core/cortex-m/build.mk @@ -6,8 +6,10 @@ # Cortex-M4 core OS files build # -# Select ARMv7-m bare-metal toolchain -$(call set-option,CROSS_COMPILE,$(CROSS_COMPILE_arm),arm-none-eabi-) +# Use coreboot-sdk +$(call set-option,CROSS_COMPILE,\ + $(CROSS_COMPILE_arm),\ + /opt/coreboot-sdk/bin/arm-eabi-) # FPU compilation flags CFLAGS_FPU-$(CONFIG_FPU)=-mfpu=fpv4-sp-d16 -mfloat-abi=hard diff --git a/core/cortex-m0/build.mk b/core/cortex-m0/build.mk index 4f2f749977..1687c16d5a 100644 --- a/core/cortex-m0/build.mk +++ b/core/cortex-m0/build.mk @@ -6,8 +6,10 @@ # Cortex-M0 core OS files build # -# Select ARMv6-m compatible bare-metal toolchain -$(call set-option,CROSS_COMPILE,$(CROSS_COMPILE_arm),arm-none-eabi-) +# Use coreboot-sdk +$(call set-option,CROSS_COMPILE,\ + $(CROSS_COMPILE_arm),\ + /opt/coreboot-sdk/bin/arm-eabi-) # CPU specific compilation flags CFLAGS_CPU+=-mthumb -Os -mno-sched-prolog |