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>
This commit is contained in:
Damien George
2022-05-23 22:50:34 +10:00
parent 0e28a1f0e5
commit c1b9d2259e
3 changed files with 29 additions and 5 deletions

View File

@@ -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