summaryrefslogtreecommitdiff
path: root/examples/build_system/make
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-07-31 21:52:59 +0700
committerhathach <[email protected]>2025-07-31 21:52:59 +0700
commitb67e00892c726f27051b407486d9f0c04ff687f9 (patch)
treed96e9e2feecd00c4ca0e22bef394b7b9370d13f4 /examples/build_system/make
parentb531f43434779c5946973d141bf6dd942c5d946c (diff)
add ci build for all at32, use linker and startup from mcu cmsis instead of local files
Diffstat (limited to 'examples/build_system/make')
-rw-r--r--examples/build_system/make/cpu/cortex-m4-nofpu.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/build_system/make/cpu/cortex-m4-nofpu.mk b/examples/build_system/make/cpu/cortex-m4-nofpu.mk
new file mode 100644
index 000000000..ac2916005
--- /dev/null
+++ b/examples/build_system/make/cpu/cortex-m4-nofpu.mk
@@ -0,0 +1,20 @@
+ifeq ($(TOOLCHAIN),gcc)
+ CFLAGS += \
+ -mthumb \
+ -mcpu=cortex-m4 \
+ -mfloat-abi=soft
+
+else ifeq ($(TOOLCHAIN),clang)
+ CFLAGS += \
+ --target=arm-none-eabi \
+ -mcpu=cortex-m4
+
+else ifeq ($(TOOLCHAIN),iar)
+ CFLAGS += --cpu cortex-m4 --fpu none
+ ASFLAGS += --cpu cortex-m4 --fpu none
+
+else
+ $(error "TOOLCHAIN is not supported")
+endif
+
+FREERTOS_PORTABLE_SRC ?= $(FREERTOS_PORTABLE_PATH)/ARM_CM3