summaryrefslogtreecommitdiff
path: root/examples/build_system/make/cpu/cortex-m0.mk
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-11-23 11:44:14 +0700
committerhathach <[email protected]>2023-11-23 11:44:14 +0700
commit51312f70fde779f59dcc48b41132291c10d3ad0b (patch)
treeabf7ea5c2fbd6bfddd66930f3fefc88fd1a3bf5b /examples/build_system/make/cpu/cortex-m0.mk
parent08f9ed67c92421cbd0bc09270d2f363886681866 (diff)
move make to examples/build_system
add -Wl,--no-warn-rwx-segment for gcc 12+
Diffstat (limited to 'examples/build_system/make/cpu/cortex-m0.mk')
-rw-r--r--examples/build_system/make/cpu/cortex-m0.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/build_system/make/cpu/cortex-m0.mk b/examples/build_system/make/cpu/cortex-m0.mk
new file mode 100644
index 000000000..feb0f395b
--- /dev/null
+++ b/examples/build_system/make/cpu/cortex-m0.mk
@@ -0,0 +1,14 @@
+ifeq ($(TOOLCHAIN),gcc)
+ CFLAGS += \
+ -mthumb \
+ -mcpu=cortex-m0 \
+ -mfloat-abi=soft \
+
+else ifeq ($(TOOLCHAIN),iar)
+ # IAR Flags
+ CFLAGS += --cpu cortex-m0
+ ASFLAGS += --cpu cortex-m0
+endif
+
+# For freeRTOS port source
+FREERTOS_PORTABLE_SRC ?= $(FREERTOS_PORTABLE_PATH)/ARM_CM0