diff options
Diffstat (limited to 'cmake/cortex_m23.cmake')
| -rw-r--r-- | cmake/cortex_m23.cmake | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cmake/cortex_m23.cmake b/cmake/cortex_m23.cmake new file mode 100644 index 00000000..a8ed7125 --- /dev/null +++ b/cmake/cortex_m23.cmake @@ -0,0 +1,19 @@ +# Copyright (c) 2026 Eclipse ThreadX contributors +# SPDX-License-Identifier: MIT +# Portions of this file were generated with AI assistance. +# +# Toolchain file for Arm Cortex-M23 using GNU tools. Armv8-M Baseline is +# Thumb only, hence -mthumb with no Arm state alternative. + +# Name of the target +set(CMAKE_SYSTEM_NAME Generic) +set(CMAKE_SYSTEM_PROCESSOR cortex-m23) + +set(THREADX_ARCH "cortex_m23") +set(THREADX_TOOLCHAIN "gnu") + +set(MCPU_FLAGS "-mthumb -mcpu=cortex-m23") +set(VFP_FLAGS "") +set(SPEC_FLAGS "--specs=nosys.specs") + +include(${CMAKE_CURRENT_LIST_DIR}/arm-none-eabi.cmake) |
