diff options
| author | hathach <[email protected]> | 2025-07-31 21:52:59 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2025-07-31 21:52:59 +0700 |
| commit | b67e00892c726f27051b407486d9f0c04ff687f9 (patch) | |
| tree | d96e9e2feecd00c4ca0e22bef394b7b9370d13f4 /examples/build_system/make | |
| parent | b531f43434779c5946973d141bf6dd942c5d946c (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.mk | 20 |
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 |
