Skip to content
Permalink
Browse files

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>
  • Loading branch information...
Bradley Bolen authored and ioannisg committed Nov 18, 2018
1 parent e439cfd commit 8080a84887cdf2c8c7aeabf9f4ba4afd86ff5ea8
Showing with 10 additions and 0 deletions.
  1. +8 −0 arch/arm/core/cortex_r/Kconfig
  2. +2 −0 cmake/gcc-m-cpu.cmake
@@ -22,6 +22,14 @@ config CPU_CORTEX_R4
help
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

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

0 comments on commit 8080a84

Please sign in to comment.
You can’t perform that action at this time.