From a69cd66b6ec30674c6a3d3041c1919c843a1c6e9 Mon Sep 17 00:00:00 2001 From: Immo Birnbaum Date: Thu, 15 Jul 2021 11:17:40 +0200 Subject: [PATCH] cmake: add the gcc -mcpu parameter value for the Cortex-A9 CPU Add the -mcpu=cortex-a9 option as part of the basic aarch32 Cortex-A CPU support. Signed-off-by: Immo Birnbaum --- cmake/gcc-m-cpu.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/gcc-m-cpu.cmake b/cmake/gcc-m-cpu.cmake index 2ced5573b4e..45a235191c9 100644 --- a/cmake/gcc-m-cpu.cmake +++ b/cmake/gcc-m-cpu.cmake @@ -40,6 +40,8 @@ if("${ARCH}" STREQUAL "arm") set(GCC_M_CPU cortex-r5) elseif(CONFIG_CPU_CORTEX_R7) set(GCC_M_CPU cortex-r7) + elseif(CONFIG_CPU_CORTEX_A9) + set(GCC_M_CPU cortex-a9) else() message(FATAL_ERROR "Expected CONFIG_CPU_CORTEX_x to be defined") endif()