summaryrefslogtreecommitdiff
path: root/examples/build_system/make/cpu/cortex-m23.mk
diff options
context:
space:
mode:
Diffstat (limited to 'examples/build_system/make/cpu/cortex-m23.mk')
-rw-r--r--examples/build_system/make/cpu/cortex-m23.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/build_system/make/cpu/cortex-m23.mk b/examples/build_system/make/cpu/cortex-m23.mk
index 29542d8e8..7ab758352 100644
--- a/examples/build_system/make/cpu/cortex-m23.mk
+++ b/examples/build_system/make/cpu/cortex-m23.mk
@@ -4,10 +4,18 @@ ifeq ($(TOOLCHAIN),gcc)
-mcpu=cortex-m23 \
-mfloat-abi=soft \
+else ifeq ($(TOOLCHAIN),clang)
+ CFLAGS += \
+ --target=arm-none-eabi \
+ -mcpu=cortex-m23 \
+
else ifeq ($(TOOLCHAIN),iar)
# IAR Flags
CFLAGS += --cpu cortex-m23
ASFLAGS += --cpu cortex-m23
+
+else
+ $(error "TOOLCHAIN is not supported")
endif
# For freeRTOS port source