From c1b9d2259e77548053cba4a1f2cab726e6429a97 Mon Sep 17 00:00:00 2001 From: Damien George Date: Mon, 23 May 2022 22:50:34 +1000 Subject: 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 --- docs/develop/natmod.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/develop') diff --git a/docs/develop/natmod.rst b/docs/develop/natmod.rst index 8ffe49591..6d15f867b 100644 --- a/docs/develop/natmod.rst +++ b/docs/develop/natmod.rst @@ -34,6 +34,7 @@ options for the ``ARCH`` variable, see below): * ``x86`` (32 bit) * ``x64`` (64 bit x86) +* ``armv6m`` (ARM Thumb, eg Cortex-M0) * ``armv7m`` (ARM Thumb 2, eg Cortex-M3) * ``armv7emsp`` (ARM Thumb 2, single precision float, eg Cortex-M4F, Cortex-M7) * ``armv7emdp`` (ARM Thumb 2, double precision float, eg Cortex-M7) @@ -171,7 +172,7 @@ The file ``Makefile`` contains: # Source files (.c or .py) SRC = factorial.c - # Architecture to build for (x86, x64, armv7m, xtensa, xtensawin) + # Architecture to build for (x86, x64, armv6m, armv7m, xtensa, xtensawin) ARCH = x64 # Include to get the rules for compiling and linking the module -- cgit v1.2.3