Skip to content

Commit 3006590

Browse files
committed
CMake cores: fix cpu flag
Couple of cores did not have common flag `--mcpu` set
1 parent 0c6753b commit 3006590

File tree

8 files changed

+8
-0
lines changed

8 files changed

+8
-0
lines changed

tools/cmake/cores/Cortex-A9.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
99
"-mfpu=vfpv3"
1010
"-mfloat-abi=hard"
1111
"-mno-unaligned-access"
12+
""-mcpu=cortex-a9""
1213
)
1314
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
1415
list(APPEND common_options

tools/cmake/cores/Cortex-M1.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
66
list(APPEND common_options
77
"-mthumb"
8+
"-mcpu=cortex-m1"
89
)
910
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
1011
list(APPEND common_options

tools/cmake/cores/Cortex-M23-NS.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
66
list(APPEND common_options
77
"-mthumb"
8+
"-mcpu=cortex-m23"
89
)
910
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
1011
list(APPEND common_options

tools/cmake/cores/Cortex-M23.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
66
list(APPEND common_options
77
"-mthumb"
8+
"-mcpu=cortex-m23"
89
)
910
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
1011
list(APPEND common_options

tools/cmake/cores/Cortex-M33F-NS.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
88
"-mfpu=fpv5-sp-d16"
99
"-mfloat-abi=softfp"
1010
"-march=armv8-m.main"
11+
"-mcpu=cortex-m33+nodsp"
1112
)
1213
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
1314
list(APPEND common_options

tools/cmake/cores/Cortex-M33F.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
88
"-mfpu=fpv5-sp-d16"
99
"-mfloat-abi=softfp"
1010
"-march=armv8-m.main"
11+
"-mcpu=cortex-m33+nodsp"
1112
)
1213
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
1314
list(APPEND common_options

tools/cmake/cores/Cortex-M33FE-NS.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
88
"-mfpu=fpv5-sp-d16"
99
"-mfloat-abi=softfp"
1010
"-march=armv8-m.main+dsp"
11+
"-mcpu=cortex-m33"
1112
)
1213
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
1314
list(APPEND common_options

tools/cmake/cores/Cortex-M33FE.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
88
"-mfpu=fpv5-sp-d16"
99
"-mfloat-abi=softfp"
1010
"-march=armv8-m.main+dsp"
11+
"-mcpu=cortex-m33"
1112
)
1213
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
1314
list(APPEND common_options

0 commit comments

Comments
 (0)