diff options
author | Scott Collyer <scollyer@google.com> | 2020-05-02 18:30:12 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-31 23:27:40 +0000 |
commit | 876ed08f6876009a21bc35c0803949b2b52d5e4b (patch) | |
tree | 75cbb607bb80ac8a79731f0b06a38cb6e571fb2f | |
parent | e2299f1afd9dfd05fc8b9ebccadf35ee3c74df8a (diff) | |
download | chrome-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>
-rw-r--r-- | chip/stm32/build.mk | 3 |
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 |