From 8080a84887cdf2c8c7aeabf9f4ba4afd86ff5ea8 Mon Sep 17 00:00:00 2001 From: Bradley Bolen Date: Sat, 17 Nov 2018 23:23:08 -0800 Subject: [PATCH] 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 --- arch/arm/core/cortex_r/Kconfig | 8 ++++++++ cmake/gcc-m-cpu.cmake | 2 ++ 2 files changed, 10 insertions(+) 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()