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>
diff --git a/arch/arm/core/aarch32/cortex_a_r/Kconfig b/arch/arm/core/aarch32/cortex_a_r/Kconfig
index 4854bd8..c55f6a0 100644
--- a/arch/arm/core/aarch32/cortex_a_r/Kconfig
+++ b/arch/arm/core/aarch32/cortex_a_r/Kconfig
@@ -27,6 +27,14 @@
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
diff --git a/cmake/gcc-m-cpu.cmake b/cmake/gcc-m-cpu.cmake
index 8d6f10d..236ce69 100644
--- a/cmake/gcc-m-cpu.cmake
+++ b/cmake/gcc-m-cpu.cmake
@@ -28,6 +28,8 @@
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)