clang make work for samd21

This commit is contained in:
hathach
2024-04-24 19:21:26 +07:00
parent 366f1cf186
commit a7bf0e3e7f
18 changed files with 191 additions and 89 deletions

View File

@@ -4,13 +4,18 @@ ifeq ($(TOOLCHAIN),gcc)
-mcpu=cortex-m3 \
-mfloat-abi=soft \
else ifeq ($(TOOLCHAIN),clang)
CFLAGS += \
--target=arm-none-eabi \
-mcpu=cortex-m3 \
else ifeq ($(TOOLCHAIN),iar)
# IAR Flags
CFLAGS += \
--cpu cortex-m3 \
CFLAGS += --cpu cortex-m3
ASFLAGS += --cpu cortex-m3
ASFLAGS += \
--cpu cortex-m3
else
$(error "TOOLCHAIN is not supported")
endif
# For freeRTOS port source