CMake: Fix Cortex-M33 GCC build

The GCC flag to specify the floating-point hardware (`mfpu`) does not accept
the value `none`. The default value is `auto` which causes the compiler to
select the floating-point and Advanced SIMD instructions based on the
settings of -mcpu and -march. The extension option `+nofp` has been added
to disable floating point instructions.
pull/14313/head
Hugues Kamba 2021-02-22 12:00:01 +00:00
parent 26606218ad
commit cd6cb71c29
2 changed files with 2 additions and 4 deletions

View File

@ -5,8 +5,7 @@
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
list(APPEND common_options
"-mthumb"
"-mcpu=cortex-m33+nodsp"
"-mfpu=none"
"-mcpu=cortex-m33+nodsp+nofp"
)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
list(APPEND common_options

View File

@ -5,8 +5,7 @@
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
list(APPEND common_options
"-mthumb"
"-mcpu=cortex-m33+nodsp"
"-mfpu=none"
"-mcpu=cortex-m33+nodsp+nofp"
)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
list(APPEND common_options