aboutsummaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-05-23 22:50:34 +1000
committerDamien George <damien@micropython.org>2022-05-23 23:01:25 +1000
commitc1b9d2259e77548053cba4a1f2cab726e6429a97 (patch)
tree58ed8e2fa0c308bc8e097da86364e06a6e22f865 /py
parent0e28a1f0e5e229f14b199a30d1796770b232f5a1 (diff)
py/dynruntime.mk: Add basic support for armv6m architecture.
The examples/natmod features0 and features1 examples now build and run on ARMv6-M platforms. More complicated examples are not yet supported because the compiler emits references to built-in functions like __aeabi_uidiv. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py')
-rw-r--r--py/dynruntime.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/py/dynruntime.mk b/py/dynruntime.mk
index db06d41e7..09cbb2dd3 100644
--- a/py/dynruntime.mk
+++ b/py/dynruntime.mk
@@ -55,6 +55,13 @@ CROSS =
CFLAGS += -fno-stack-protector
MICROPY_FLOAT_IMPL ?= double
+else ifeq ($(ARCH),armv6m)
+
+# thumb
+CROSS = arm-none-eabi-
+CFLAGS += -mthumb -mcpu=cortex-m0
+MICROPY_FLOAT_IMPL ?= none
+
else ifeq ($(ARCH),armv7m)
# thumb