mirror of
https://github.com/micropython/micropython.git
synced 2026-01-07 20:50:14 +01:00
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>
18 lines
420 B
Makefile
18 lines
420 B
Makefile
# Location of top-level MicroPython directory
|
|
MPY_DIR = ../../..
|
|
|
|
# Name of module (different to built-in framebuf so it can coexist)
|
|
MOD = framebuf_$(ARCH)
|
|
|
|
# Source files (.c or .py)
|
|
SRC = framebuf.c
|
|
|
|
# Architecture to build for (x86, x64, armv7m, xtensa, xtensawin)
|
|
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
|