summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/cortex-m/build.mk6
-rw-r--r--core/cortex-m0/build.mk6
2 files changed, 8 insertions, 4 deletions
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