Skip to content

Commit

Permalink
greenhills: add support for cortex-m4 platform
Browse files Browse the repository at this point in the history
Signed-off-by: guoshichao <[email protected]>
  • Loading branch information
guoshichao authored and xiaoxiang781216 committed Sep 26, 2024
1 parent 8ae3575 commit 8c651d3
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions arch/arm/src/armv7-m/Toolchain.defs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,22 @@

ifeq ($(CONFIG_ARCH_CORTEXM4),y)
TOOLCHAIN_ARM7EM := y
TOOLCHAIN_MTUNE := -mtune=cortex-m4
TOOLCHAIN_MARCH := -march=armv7e-m
LLVM_CPUTYPE := cortex-m4
ifeq ($(CONFIG_ARCH_FPU),y)
TOOLCHAIN_MFLOAT := -mfpu=fpv4-sp-d16
ifeq ($(CONFIG_ARM_TOOLCHAIN_GHS),y)
TOOLCHAIN_MTUNE := -cpu=cortexm4
ifeq ($(CONFIG_ARCH_FPU),y)
ifeq ($(CONFIG_ARCH_DPFPU),y)
TOOLCHAIN_MFLOAT := -fpu=vfpv3
else
TOOLCHAIN_MFLOAT := -fpu=vfpv3_d16
endif
endif
else
TOOLCHAIN_MTUNE := -mtune=cortex-m4
TOOLCHAIN_MARCH := -march=armv7e-m
LLVM_CPUTYPE := cortex-m4
ifeq ($(CONFIG_ARCH_FPU),y)
TOOLCHAIN_MFLOAT := -mfpu=fpv4-sp-d16
endif
endif
else ifeq ($(CONFIG_ARCH_CORTEXM7),y)
TOOLCHAIN_ARM7EM := y
Expand Down

0 comments on commit 8c651d3

Please sign in to comment.