Skip to content

Commit 4b6f243

Browse files
committed
CMake: Cortex-A: Use MBED_CPU_CORE to set -mcpu
As we're moving away from the use of CMAKE_SYSTEM_PROCESSOR, use MBED_CPU_CORE instead. They differ in cases, but both GCC and Arm toolchains support case-insensitive CPU names.
1 parent efaf159 commit 4b6f243

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/cmake/cores/Cortex-A.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
88
"-mfpu=vfpv3"
99
"-mfloat-abi=softfp"
1010
"-mno-unaligned-access"
11-
"-mcpu=${CMAKE_SYSTEM_PROCESSOR}"
11+
"-mcpu=${MBED_CPU_CORE}"
1212
)
1313
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
1414
list(APPEND common_options
1515
"-mfpu=vfpv3"
1616
"-mfloat-abi=hard"
17-
"-mcpu=${CMAKE_SYSTEM_PROCESSOR}"
17+
"-mcpu=${MBED_CPU_CORE}"
1818
)
1919
endif()
2020

0 commit comments

Comments
 (0)