summaryrefslogtreecommitdiff
path: root/examples/build_system/make/cpu/cortex-m0plus.mk
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-04-24 19:21:26 +0700
committerhathach <[email protected]>2024-04-24 19:21:26 +0700
commita7bf0e3e7f7799c28e370826710810033c117744 (patch)
tree1ac7cb708010473050ceeab0f6ff6c7750eaa6d1 /examples/build_system/make/cpu/cortex-m0plus.mk
parent366f1cf1863bad626af10347f8ff3d0ef7f6ea2b (diff)
clang make work for samd21
Diffstat (limited to 'examples/build_system/make/cpu/cortex-m0plus.mk')
-rw-r--r--examples/build_system/make/cpu/cortex-m0plus.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/build_system/make/cpu/cortex-m0plus.mk b/examples/build_system/make/cpu/cortex-m0plus.mk
index b416b7a4a..fe8feb227 100644
--- a/examples/build_system/make/cpu/cortex-m0plus.mk
+++ b/examples/build_system/make/cpu/cortex-m0plus.mk
@@ -4,10 +4,18 @@ ifeq ($(TOOLCHAIN),gcc)
-mcpu=cortex-m0plus \
-mfloat-abi=soft \
+else ifeq ($(TOOLCHAIN),clang)
+ CFLAGS += \
+ --target=arm-none-eabi \
+ -mcpu=cortex-m0plus \
+
else ifeq ($(TOOLCHAIN),iar)
# IAR Flags
CFLAGS += --cpu cortex-m0+
ASFLAGS += --cpu cortex-m0+
+
+else
+ $(error "TOOLCHAIN is not supported")
endif
# For freeRTOS port source