Skip to content

Commit a69cd66

Browse files
ibirnbaumcarlescufi
authored andcommitted
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 <[email protected]>
1 parent c6141c4 commit a69cd66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/gcc-m-cpu.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ if("${ARCH}" STREQUAL "arm")
4040
set(GCC_M_CPU cortex-r5)
4141
elseif(CONFIG_CPU_CORTEX_R7)
4242
set(GCC_M_CPU cortex-r7)
43+
elseif(CONFIG_CPU_CORTEX_A9)
44+
set(GCC_M_CPU cortex-a9)
4345
else()
4446
message(FATAL_ERROR "Expected CONFIG_CPU_CORTEX_x to be defined")
4547
endif()

0 commit comments

Comments
 (0)