mbed-os/tools/cmake/cores
Jaeden Amero a29a5e165a cortex-m55: Workaround armasm options bug
We use armclang with `-masm=auto` to auto-select which assembler to use
based on the syntax of the file. Cortex-M55 isn't supported by armasm,
but we don't yet have GCC-syntax asm files for ARM compiler
(1dd090bd1c/CMSIS/RTOS2/RTX/Source/ARM/irq_armv8mml.s).

    $ armclang --target=arm-arm-none-eabi -mcpu=cortex-m55 -mfpu=none -masm=auto -c cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_ARM/TARGET_M33/irq_armv8mml.S
    armclang: error: armasm does not support CPU 'cortex-m55'

In the mean time, we can build C and C++ files using the
`-mcpu=cortex-m55` option, and for armasm, cancel out that choice of CPU
with a known-supported CPU type, Cortex-R7, and provide the legacy
assembler-specific option `-Wa,armasm,--cpu=cortex-m55`.

After these changes, this works:

    $ armclang --target=arm-arm-none-eabi -mcpu=cortex-m55 -mcpu=cortex-r7 -Wa,--cpu=cortex-m55 -mfpu=none -masm=auto -c cmsis/CMSIS_5/CMSIS/RTOS2/RTX/Source/TOOLCHAIN_ARM/TARGET_M33/irq_armv8mml.S
2021-05-05 16:58:24 +01:00
..
Cortex-A9.cmake CMake: Fix Cortex-A9 flags for GCC_ARM toolchain 2021-03-12 13:21:04 +00:00
Cortex-M0+.cmake CMake: Correct ARM toolchain MCU core flags 2021-01-22 10:54:47 +00:00
Cortex-M0.cmake CMake: Correct ARM toolchain MCU core flags 2021-01-22 10:54:47 +00:00
Cortex-M1.cmake CMake cores: fix cpu flag 2021-01-26 14:13:19 +00:00
Cortex-M3.cmake CMake: Correct ARM toolchain MCU core flags 2021-01-22 10:54:47 +00:00
Cortex-M4.cmake STM32WL : ADDING CORTEX-M4 LINK OPTION 2021-02-08 09:42:51 +00:00
Cortex-M4F.cmake CMake: Correct ARM toolchain MCU core flags 2021-01-22 10:54:47 +00:00
Cortex-M7.cmake CMake: Correct ARM toolchain MCU core flags 2021-01-22 10:54:47 +00:00
Cortex-M7F.cmake CMake cores: align fpu settings 2021-01-27 12:30:21 +00:00
Cortex-M7FD.cmake CMake cores: align fpu settings 2021-01-27 12:30:21 +00:00
Cortex-M23-NS.cmake Merge pull request #14190 from 0xc0170/fix_ns_cores 2021-02-03 10:17:21 +00:00
Cortex-M23.cmake Merge pull request #14190 from 0xc0170/fix_ns_cores 2021-02-03 10:17:21 +00:00
Cortex-M33-NS.cmake Workaround for Cortex-M33 Arm toochain linking 2021-03-09 17:35:48 +00:00
Cortex-M33.cmake Workaround for Cortex-M33 Arm toochain linking 2021-03-09 17:35:48 +00:00
Cortex-M33F-NS.cmake Merge pull request #14190 from 0xc0170/fix_ns_cores 2021-02-03 10:17:21 +00:00
Cortex-M33F.cmake Merge pull request #14190 from 0xc0170/fix_ns_cores 2021-02-03 10:17:21 +00:00
Cortex-M33FE-NS.cmake CMake cores: align fpu settings 2021-01-27 12:30:21 +00:00
Cortex-M33FE.cmake CMake cores: align fpu settings 2021-01-27 12:30:21 +00:00
Cortex-M55.cmake cortex-m55: Workaround armasm options bug 2021-05-05 16:58:24 +01:00