summaryrefslogtreecommitdiff
path: root/cmake/arm9.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/arm9.cmake')
-rw-r--r--cmake/arm9.cmake19
1 files changed, 19 insertions, 0 deletions
diff --git a/cmake/arm9.cmake b/cmake/arm9.cmake
new file mode 100644
index 00000000..436d232e
--- /dev/null
+++ b/cmake/arm9.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 ARM9 using GNU tools. This is the oldest core in the
+# CMake build; the port readme names ARM9 itself.
+
+# Name of the target
+set(CMAKE_SYSTEM_NAME Generic)
+set(CMAKE_SYSTEM_PROCESSOR arm9)
+
+set(THREADX_ARCH "arm9")
+set(THREADX_TOOLCHAIN "gnu")
+
+set(MCPU_FLAGS "-marm -mcpu=arm9")
+set(VFP_FLAGS "")
+set(SPEC_FLAGS "--specs=nosys.specs")
+
+include(${CMAKE_CURRENT_LIST_DIR}/arm-none-eabi.cmake)