examples/natmod: Use LINK_RUNTIME=1 when building for armv6m.
To get division helper functions, eg `__aeabi_uidiv`, `__aeabi_idiv` and `__aeabi_uidivmod`. Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
@@ -39,6 +39,11 @@ endif
|
|||||||
# Use our own errno implementation if Picolibc is used
|
# Use our own errno implementation if Picolibc is used
|
||||||
CFLAGS += -D__PICOLIBC_ERRNO_FUNCTION=__errno
|
CFLAGS += -D__PICOLIBC_ERRNO_FUNCTION=__errno
|
||||||
|
|
||||||
|
ifeq ($(ARCH),armv6m)
|
||||||
|
# Link with libgcc.a for division helper functions
|
||||||
|
LINK_RUNTIME = 1
|
||||||
|
endif
|
||||||
|
|
||||||
include $(MPY_DIR)/py/dynruntime.mk
|
include $(MPY_DIR)/py/dynruntime.mk
|
||||||
|
|
||||||
# btree needs gnu99 defined
|
# btree needs gnu99 defined
|
||||||
|
|||||||
@@ -10,6 +10,11 @@ SRC = deflate.c
|
|||||||
# Architecture to build for (x86, x64, armv7m, xtensa, xtensawin, rv32imc)
|
# Architecture to build for (x86, x64, armv7m, xtensa, xtensawin, rv32imc)
|
||||||
ARCH ?= x64
|
ARCH ?= x64
|
||||||
|
|
||||||
|
ifeq ($(ARCH),armv6m)
|
||||||
|
# Link with libgcc.a for division helper functions
|
||||||
|
LINK_RUNTIME = 1
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(ARCH),xtensa)
|
ifeq ($(ARCH),xtensa)
|
||||||
# Link with libm.a and libgcc.a from the toolchain
|
# Link with libm.a and libgcc.a from the toolchain
|
||||||
LINK_RUNTIME = 1
|
LINK_RUNTIME = 1
|
||||||
|
|||||||
@@ -10,6 +10,11 @@ SRC = framebuf.c
|
|||||||
# Architecture to build for (x86, x64, armv7m, xtensa, xtensawin)
|
# Architecture to build for (x86, x64, armv7m, xtensa, xtensawin)
|
||||||
ARCH ?= x64
|
ARCH ?= x64
|
||||||
|
|
||||||
|
ifeq ($(ARCH),armv6m)
|
||||||
|
# Link with libgcc.a for division helper functions
|
||||||
|
LINK_RUNTIME = 1
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(ARCH),xtensa)
|
ifeq ($(ARCH),xtensa)
|
||||||
MPY_EXTERN_SYM_FILE=$(MPY_DIR)/ports/esp8266/boards/eagle.rom.addr.v6.ld
|
MPY_EXTERN_SYM_FILE=$(MPY_DIR)/ports/esp8266/boards/eagle.rom.addr.v6.ld
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -10,4 +10,9 @@ SRC = re.c
|
|||||||
# Architecture to build for (x86, x64, armv7m, xtensa, xtensawin, rv32imc)
|
# Architecture to build for (x86, x64, armv7m, xtensa, xtensawin, rv32imc)
|
||||||
ARCH = x64
|
ARCH = x64
|
||||||
|
|
||||||
|
ifeq ($(ARCH),armv6m)
|
||||||
|
# Link with libgcc.a for division helper functions
|
||||||
|
LINK_RUNTIME = 1
|
||||||
|
endif
|
||||||
|
|
||||||
include $(MPY_DIR)/py/dynruntime.mk
|
include $(MPY_DIR)/py/dynruntime.mk
|
||||||
|
|||||||
Reference in New Issue
Block a user