Skip to content

Commit 8a9048e

Browse files
author
Bradley Bolen
committed
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 <[email protected]>
1 parent 5f68cd3 commit 8a9048e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

arch/arm/core/cortex_r/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ config CPU_CORTEX_R4
2222
help
2323
This option signifies the use of a Cortex-R4 CPU
2424

25+
config CPU_CORTEX_R5
26+
bool
27+
select CPU_CORTEX_R
28+
select ARMV7_R
29+
select ARMV7_R_FP if CPU_HAS_FPU
30+
help
31+
This option signifies the use of a Cortex-R5 CPU
32+
2533
if CPU_CORTEX_R
2634

2735
config ARMV7_R

cmake/gcc-m-cpu.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ if("${ARCH}" STREQUAL "arm")
2424
endif()
2525
elseif(CONFIG_CPU_CORTEX_R4)
2626
set(GCC_M_CPU cortex-r4)
27+
elseif(CONFIG_CPU_CORTEX_R5)
28+
set(GCC_M_CPU cortex-r5)
2729
else()
2830
message(FATAL_ERROR "Expected CONFIG_CPU_CORTEX_x to be defined")
2931
endif()

0 commit comments

Comments
 (0)