arch: arm: Add Cortex-R5 support

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

Signed-off-by: Bradley Bolen <bbolen@lexmark.com>
This commit is contained in:
Bradley Bolen 2018-11-17 23:23:08 -08:00 committed by Ioannis Glaropoulos
commit 8080a84887
2 changed files with 10 additions and 0 deletions

View file

@ -22,6 +22,14 @@ config CPU_CORTEX_R4
help help
This option signifies the use of a Cortex-R4 CPU This option signifies the use of a Cortex-R4 CPU
config CPU_CORTEX_R5
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-R5 CPU
if CPU_CORTEX_R if CPU_CORTEX_R
config ARMV7_R config ARMV7_R

View file

@ -24,6 +24,8 @@ if("${ARCH}" STREQUAL "arm")
endif() endif()
elseif(CONFIG_CPU_CORTEX_R4) elseif(CONFIG_CPU_CORTEX_R4)
set(GCC_M_CPU cortex-r4) set(GCC_M_CPU cortex-r4)
elseif(CONFIG_CPU_CORTEX_R5)
set(GCC_M_CPU cortex-r5)
else() else()
message(FATAL_ERROR "Expected CONFIG_CPU_CORTEX_x to be defined") message(FATAL_ERROR "Expected CONFIG_CPU_CORTEX_x to be defined")
endif() endif()