Skip to content

Commit

Permalink
arch: arm: Add Cortex-R5 support
Browse files Browse the repository at this point in the history
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 Aug 9, 2019
1 parent e439cfd commit 8080a84
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/arm/core/cortex_r/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions cmake/gcc-m-cpu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8080a84

Please sign in to comment.