diff --git a/arch/arm/core/cortex_r/Kconfig b/arch/arm/core/cortex_r/Kconfig index fb85f27139f..526f03e1aba 100644 --- a/arch/arm/core/cortex_r/Kconfig +++ b/arch/arm/core/cortex_r/Kconfig @@ -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 diff --git a/cmake/gcc-m-cpu.cmake b/cmake/gcc-m-cpu.cmake index 98c5792881a..df8a3934bd4 100644 --- a/cmake/gcc-m-cpu.cmake +++ b/cmake/gcc-m-cpu.cmake @@ -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()