arch: arm: Add Cortex-R7 support

Pass the correct -mcpu flags to the compiler when building for the
Cortex-R7.

Signed-off-by: Julien Massot <julien.massot@iot.bzh>
This commit is contained in:
Julien Massot 2021-01-12 11:02:11 +01:00 committed by Ioannis Glaropoulos
parent 253d2470f2
commit d3345dd54d
2 changed files with 10 additions and 0 deletions

View file

@ -27,6 +27,14 @@ config CPU_CORTEX_R5
help
This option signifies the use of a Cortex-R5 CPU
config CPU_CORTEX_R7
bool
select CPU_CORTEX_R
select ARMV7_R
select ARMV7_R_FP if CPU_HAS_FPU
help
This option signifies the use of a Cortex-R7 CPU
if CPU_CORTEX_R
config ARMV7_R

View file

@ -28,6 +28,8 @@ if("${ARCH}" STREQUAL "arm")
set(GCC_M_CPU cortex-r4)
elseif(CONFIG_CPU_CORTEX_R5)
set(GCC_M_CPU cortex-r5)
elseif(CONFIG_CPU_CORTEX_R7)
set(GCC_M_CPU cortex-r7)
elseif(CONFIG_CPU_CORTEX_A53)
set(GCC_M_CPU cortex-a53)
elseif(CONFIG_CPU_CORTEX_A72)