Skip to content

Commit 274f533

Browse files
Add CMake toolchain file for Cortex-M55
This sets the CFLAGS correctly for Cortex-M55 and -Os. This file can be passed to CMake to allow us to easily build for M55. Signed-off-by: David Horstmann <david.horstmann@arm.com>
1 parent 15db03e commit 274f533

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

platform/arm-gcc-m55.cmake

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
set(CMAKE_SYSTEM_NAME Generic)
2+
3+
set(CMAKE_C_COMPILER arm-none-eabi-gcc)
4+
# CMAKE_SIZE_UTIL is not a 'real' CMake variable but is sometimes
5+
# used by convention in embedded toolchain files.
6+
set(CMAKE_SIZE_UTIL arm-none-eabi-size)
7+
8+
set(CMAKE_C_FLAGS "-mthumb -mcpu=cortex-m55 -Os")
9+
set(CMAKE_EXE_LINKER_FLAGS "--specs=nosys.specs")

0 commit comments

Comments
 (0)