diff options
| author | Alessandro Gatti <a.gatti@frob.it> | 2025-04-07 22:45:45 +0200 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-06-04 22:35:39 +1000 |
| commit | 462ee12d3c9b04d815eb347881b7b2f4951a17c1 (patch) | |
| tree | 7d5ddf1f6215fbc113904c0a14236de75451771c | |
| parent | 0bf2fd7ad034404208d79339c1bd82136b1cd4e3 (diff) | |
examples/natmod/framebuf: Fix build for Xtensa.
This commit provides the appropriate external symbol addresses to let
the "framebuf" example natmod build for the Xtensa platform.
On the ESP8266, integer division code isn't provided as part of
libgcc.a, libm.a, or libc.a, but it is instead provided by the ROM.
Regular builds inject the appropriate symbol addresses as part of the
linking process (see eagle.rom.addr.v6.ld), but natmods need this
information brought in from somewhere else.
Signed-off-by: Alessandro Gatti <a.gatti@frob.it>
| -rw-r--r-- | examples/natmod/framebuf/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/natmod/framebuf/Makefile b/examples/natmod/framebuf/Makefile index 2e2b81597..cb821736e 100644 --- a/examples/natmod/framebuf/Makefile +++ b/examples/natmod/framebuf/Makefile @@ -8,6 +8,10 @@ MOD = framebuf_$(ARCH) SRC = framebuf.c # Architecture to build for (x86, x64, armv7m, xtensa, xtensawin) -ARCH = x64 +ARCH ?= x64 + +ifeq ($(ARCH),xtensa) +MPY_EXTERN_SYM_FILE=$(MPY_DIR)/ports/esp8266/boards/eagle.rom.addr.v6.ld +endif include $(MPY_DIR)/py/dynruntime.mk |
