summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2020-05-02 18:30:12 -0700
committerCommit Bot <commit-bot@chromium.org>2020-08-31 23:27:40 +0000
commit876ed08f6876009a21bc35c0803949b2b52d5e4b (patch)
tree75cbb607bb80ac8a79731f0b06a38cb6e571fb2f /chip
parente2299f1afd9dfd05fc8b9ebccadf35ee3c74df8a (diff)
downloadchrome-ec-876ed08f6876009a21bc35c0803949b2b52d5e4b.tar.gz
stm32g4: Specify correct ARM core and CPU flags
The only change required for build.mk is to specify the correct ARM core and machine instruction set. BUG=b:148493929 BRANCH=None TEST=verfied image builds successfully. Signed-off-by: Scott Collyer <scollyer@google.com> Change-Id: I267dfbe54de153c8687f5048fdcccf65ac15678f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2195551 Commit-Queue: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r--chip/stm32/build.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/chip/stm32/build.mk b/chip/stm32/build.mk
index b40755b5e7..a951c0eb21 100644
--- a/chip/stm32/build.mk
+++ b/chip/stm32/build.mk
@@ -15,7 +15,8 @@ CORE:=cortex-m0
# with "svc". GCC kept that naming scheme even though the distinction is long
# gone.
CFLAGS_CPU+=-march=armv6s-m -mcpu=cortex-m0
-else ifeq ($(CHIP_FAMILY),$(filter $(CHIP_FAMILY),stm32f3 stm32l4 stm32f4))
+else ifeq ($(CHIP_FAMILY),$(filter $(CHIP_FAMILY),stm32f3 stm32l4 stm32f4 \
+stm32g4))
# STM32F3xx and STM32L4xx sub-family has a Cortex-M4 ARM core
CORE:=cortex-m
# Allow the full Cortex-M4 instruction set