summaryrefslogtreecommitdiff
path: root/examples/build_system/make/cpu/cortex-m3.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-m3.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-m3.mk')
-rw-r--r--examples/build_system/make/cpu/cortex-m3.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/build_system/make/cpu/cortex-m3.mk b/examples/build_system/make/cpu/cortex-m3.mk
new file mode 100644
index 000000000..7a34b9e04
--- /dev/null
+++ b/examples/build_system/make/cpu/cortex-m3.mk
@@ -0,0 +1,17 @@
+ifeq ($(TOOLCHAIN),gcc)
+ CFLAGS += \
+ -mthumb \
+ -mcpu=cortex-m3 \
+ -mfloat-abi=soft \
+
+else ifeq ($(TOOLCHAIN),iar)
+ # IAR Flags
+ CFLAGS += \
+ --cpu cortex-m3 \
+
+ ASFLAGS += \
+ --cpu cortex-m3
+endif
+
+# For freeRTOS port source
+FREERTOS_PORTABLE_SRC ?= $(FREERTOS_PORTABLE_PATH)/ARM_CM3