summaryrefslogtreecommitdiff
path: root/examples/build_system/cmake/cpu
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-03-13 23:07:46 +0700
committerhathach <[email protected]>2026-03-13 23:07:46 +0700
commite2ead60107ce2e1324c7578fcee98efb8f0c5975 (patch)
tree0b1e79f1c984ef9224f7bf22c2618b3bf9090bd6 /examples/build_system/cmake/cpu
parentadf853643b3db80444da5c3018eb214e244fcf47 (diff)
add ft9xx-gcc toolchain support to CI
Diffstat (limited to 'examples/build_system/cmake/cpu')
-rw-r--r--examples/build_system/cmake/cpu/ft32.cmake13
-rw-r--r--examples/build_system/cmake/cpu/rx610.cmake12
-rw-r--r--examples/build_system/cmake/cpu/rx64m.cmake12
3 files changed, 37 insertions, 0 deletions
diff --git a/examples/build_system/cmake/cpu/ft32.cmake b/examples/build_system/cmake/cpu/ft32.cmake
new file mode 100644
index 000000000..13153e555
--- /dev/null
+++ b/examples/build_system/cmake/cpu/ft32.cmake
@@ -0,0 +1,13 @@
+if (TOOLCHAIN STREQUAL "gcc")
+ set(TOOLCHAIN_COMMON_FLAGS
+ -fvar-tracking
+ -fvar-tracking-assignments
+ )
+
+elseif (TOOLCHAIN STREQUAL "clang")
+ message(FATAL_ERROR "Clang is not supported for this target")
+
+elseif (TOOLCHAIN STREQUAL "iar")
+ message(FATAL_ERROR "IAR is not supported for this target")
+
+endif ()
diff --git a/examples/build_system/cmake/cpu/rx610.cmake b/examples/build_system/cmake/cpu/rx610.cmake
new file mode 100644
index 000000000..6f535275d
--- /dev/null
+++ b/examples/build_system/cmake/cpu/rx610.cmake
@@ -0,0 +1,12 @@
+if (NOT DEFINED TOOLCHAIN OR TOOLCHAIN STREQUAL "gcc")
+ set(TOOLCHAIN_COMMON_FLAGS
+ -mcpu=rx610
+ -misa=v1
+ -mlittle-endian-data
+ -fshort-enums
+ )
+ set(FREERTOS_PORT GCC_RX600 CACHE INTERNAL "")
+
+else ()
+ message(FATAL_ERROR "Toolchain ${TOOLCHAIN} is not supported for RX")
+endif ()
diff --git a/examples/build_system/cmake/cpu/rx64m.cmake b/examples/build_system/cmake/cpu/rx64m.cmake
new file mode 100644
index 000000000..2b106ea00
--- /dev/null
+++ b/examples/build_system/cmake/cpu/rx64m.cmake
@@ -0,0 +1,12 @@
+if (NOT DEFINED TOOLCHAIN OR TOOLCHAIN STREQUAL "gcc")
+ set(TOOLCHAIN_COMMON_FLAGS
+ -mcpu=rx64m
+ -misa=v2
+ -mlittle-endian-data
+ -fshort-enums
+ )
+ set(FREERTOS_PORT GCC_RX600 CACHE INTERNAL "")
+
+else ()
+ message(FATAL_ERROR "Toolchain ${TOOLCHAIN} is not supported for RX")
+endif ()