2019-10-20 23:50:12 -04:00
|
|
|
# All linking can be done with this common templated linker script, which has
|
|
|
|
# parameters that vary based on chip and/or board.
|
|
|
|
LD_TEMPLATE_FILE = boards/common.template.ld
|
|
|
|
|
2017-07-15 17:03:24 -04:00
|
|
|
# Define an equivalent for MICROPY_LONGINT_IMPL, to pass to $(MPY-TOOL) in py/mkrules.mk
|
|
|
|
# $(MPY-TOOL) needs to know what kind of longint to use (if any) to freeze long integers.
|
|
|
|
# This should correspond to the MICROPY_LONGINT_IMPL definition in mpconfigport.h.
|
2018-05-21 23:58:03 -04:00
|
|
|
|
2018-05-22 08:04:14 -04:00
|
|
|
ifeq ($(LONGINT_IMPL),NONE)
|
2017-07-15 17:03:24 -04:00
|
|
|
MPY_TOOL_LONGINT_IMPL = -mlongint-impl=none
|
2017-10-31 18:46:42 -04:00
|
|
|
endif
|
2017-10-23 12:29:17 -04:00
|
|
|
|
2018-05-22 08:04:14 -04:00
|
|
|
ifeq ($(LONGINT_IMPL),MPZ)
|
2017-10-31 18:46:42 -04:00
|
|
|
MPY_TOOL_LONGINT_IMPL = -mlongint-impl=mpz
|
|
|
|
endif
|
2017-10-23 12:29:17 -04:00
|
|
|
|
2018-05-22 09:35:29 -04:00
|
|
|
ifeq ($(LONGINT_IMPL),LONGLONG)
|
2018-05-21 23:58:03 -04:00
|
|
|
MPY_TOOL_LONGINT_IMPL = -mlongint-impl=longlong
|
|
|
|
endif
|
|
|
|
|
2021-02-04 19:23:40 -05:00
|
|
|
INTERNAL_LIBM = 1
|
|
|
|
|
|
|
|
# Number of USB endpoint pairs.
|
2021-05-13 21:49:04 -04:00
|
|
|
USB_NUM_ENDPOINT_PAIRS = 8
|
2021-02-04 19:23:40 -05:00
|
|
|
|
2021-04-08 17:32:36 -04:00
|
|
|
CIRCUITPY_ROTARYIO_SOFTENCODER = 1
|
|
|
|
|
2021-02-04 19:23:40 -05:00
|
|
|
######################################################################
|
2019-03-27 17:54:36 -04:00
|
|
|
# Put samd21-only choices here.
|
2021-02-04 19:23:40 -05:00
|
|
|
|
2019-03-27 18:19:39 -04:00
|
|
|
ifeq ($(CHIP_FAMILY),samd21)
|
2020-11-24 11:26:47 -05:00
|
|
|
|
2021-01-24 22:49:28 -05:00
|
|
|
# The ?='s allow overriding in mpconfigboard.mk.
|
2019-11-22 15:44:51 -05:00
|
|
|
|
2021-05-05 12:35:41 -04:00
|
|
|
# Some of these are on by default with CIRCUITPY_FULL_BUILD, but don't
|
|
|
|
# fit in 256kB of flash
|
|
|
|
|
2021-09-02 06:25:51 -04:00
|
|
|
CIRCUITPY_AESIO ?= 0
|
2021-01-24 22:49:28 -05:00
|
|
|
CIRCUITPY_AUDIOMIXER ?= 0
|
|
|
|
CIRCUITPY_BINASCII ?= 0
|
2021-05-05 12:35:41 -04:00
|
|
|
CIRCUITPY_BITBANGIO ?= 0
|
|
|
|
CIRCUITPY_BITMAPTOOLS ?= 0
|
|
|
|
CIRCUITPY_BUSDEVICE ?= 0
|
2021-01-24 22:49:28 -05:00
|
|
|
CIRCUITPY_AUDIOMP3 ?= 0
|
2021-05-05 12:35:41 -04:00
|
|
|
CIRCUITPY_BLEIO_HCI = 0
|
2021-01-24 22:49:28 -05:00
|
|
|
CIRCUITPY_BUILTINS_POW3 ?= 0
|
2021-03-05 19:29:27 -05:00
|
|
|
CIRCUITPY_COMPUTED_GOTO_SAVE_SPACE ?= 1
|
2021-05-05 12:35:41 -04:00
|
|
|
CIRCUITPY_COUNTIO ?= 0
|
|
|
|
# Not enough RAM for framebuffers
|
|
|
|
CIRCUITPY_FRAMEBUFFERIO ?= 0
|
2021-01-24 22:49:28 -05:00
|
|
|
CIRCUITPY_FREQUENCYIO ?= 0
|
2021-05-05 12:35:41 -04:00
|
|
|
CIRCUITPY_I2CPERIPHERAL ?= 0
|
2021-01-24 22:49:28 -05:00
|
|
|
CIRCUITPY_JSON ?= 0
|
2021-06-18 12:26:48 -04:00
|
|
|
CIRCUITPY_KEYPAD ?= 0
|
2021-05-05 12:35:41 -04:00
|
|
|
CIRCUITPY_MSGPACK ?= 0
|
|
|
|
CIRCUITPY_RE ?= 0
|
|
|
|
CIRCUITPY_SDCARDIO ?= 0
|
2021-03-19 18:22:00 -04:00
|
|
|
CIRCUITPY_SYNTHIO ?= 0
|
2021-01-24 22:49:28 -05:00
|
|
|
CIRCUITPY_TOUCHIO_USE_NATIVE ?= 1
|
2020-03-17 10:33:03 -04:00
|
|
|
CIRCUITPY_ULAB = 0
|
2021-05-05 12:35:41 -04:00
|
|
|
CIRCUITPY_VECTORIO = 0
|
|
|
|
|
|
|
|
MICROPY_PY_ASYNC_AWAIT = 0
|
2020-03-10 00:00:21 -04:00
|
|
|
|
2021-05-14 23:41:44 -04:00
|
|
|
# We don't have room for the fonts for terminalio for ja and ko
|
|
|
|
# so turn off terminalio, and if it's off and displayio is on,
|
|
|
|
# force a clean build.
|
|
|
|
# Note that we cannot test $(CIRCUITPY_DISPLAYIO) directly with an
|
|
|
|
# ifeq, because it's not set yet.
|
2020-08-17 20:17:59 -04:00
|
|
|
ifeq ($(TRANSLATION), ja)
|
|
|
|
CIRCUITPY_TERMINALIO = 0
|
2021-05-14 23:41:44 -04:00
|
|
|
RELEASE_NEEDS_CLEAN_BUILD = $(CIRCUITPY_DISPLAYIO)
|
2020-08-17 20:17:59 -04:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(TRANSLATION), ko)
|
|
|
|
CIRCUITPY_TERMINALIO = 0
|
2021-05-14 23:41:44 -04:00
|
|
|
RELEASE_NEEDS_CLEAN_BUILD = $(CIRCUITPY_DISPLAYIO)
|
2020-08-17 20:17:59 -04:00
|
|
|
endif
|
|
|
|
|
2021-05-05 12:35:41 -04:00
|
|
|
SUPEROPT_GC = 0
|
|
|
|
SUPEROPT_VM = 0
|
|
|
|
|
|
|
|
ifeq ($(CIRCUITPY_FULL_BUILD),0)
|
|
|
|
# On the smallest boards, this saves about 180 bytes. On other boards, it may -increase- space used.
|
|
|
|
CFLAGS_BOARD = -fweb -frename-registers
|
|
|
|
endif
|
|
|
|
|
2019-12-05 22:45:53 -05:00
|
|
|
endif # samd21
|
2021-02-04 19:23:40 -05:00
|
|
|
######################################################################
|
2019-03-27 17:54:36 -04:00
|
|
|
|
2021-02-04 19:23:40 -05:00
|
|
|
######################################################################
|
2019-02-17 23:48:08 -05:00
|
|
|
# Put samd51-only choices here.
|
2021-02-04 19:23:40 -05:00
|
|
|
|
2019-02-17 23:48:08 -05:00
|
|
|
ifeq ($(CHIP_FAMILY),samd51)
|
2021-02-04 19:23:40 -05:00
|
|
|
|
2019-11-22 15:44:51 -05:00
|
|
|
# No native touchio on SAMD51.
|
2019-08-18 08:44:10 -04:00
|
|
|
CIRCUITPY_TOUCHIO_USE_NATIVE = 0
|
2019-11-22 15:44:51 -05:00
|
|
|
|
2021-01-24 22:49:28 -05:00
|
|
|
# The ?='s allow overriding in mpconfigboard.mk.
|
2020-03-10 14:12:01 -04:00
|
|
|
|
2021-10-03 19:16:27 -04:00
|
|
|
|
2021-07-23 14:09:28 -04:00
|
|
|
CIRCUITPY_ALARM ?= 0
|
2021-09-29 13:44:15 -04:00
|
|
|
PY_PS2IO ?= 1
|
2021-01-24 22:49:28 -05:00
|
|
|
CIRCUITPY_SAMD ?= 1
|
|
|
|
CIRCUITPY_RGBMATRIX ?= $(CIRCUITPY_FULL_BUILD)
|
|
|
|
CIRCUITPY_FRAMEBUFFERIO ?= $(CIRCUITPY_FULL_BUILD)
|
2020-03-10 14:12:01 -04:00
|
|
|
|
2019-12-05 22:45:53 -05:00
|
|
|
endif # samd51
|
2021-02-04 19:23:40 -05:00
|
|
|
######################################################################
|
2021-04-11 21:07:51 -04:00
|
|
|
|
|
|
|
######################################################################
|
|
|
|
# Put same51-only choices here.
|
|
|
|
|
|
|
|
ifeq ($(CHIP_FAMILY),same51)
|
|
|
|
|
|
|
|
# No native touchio on SAMD51.
|
|
|
|
CIRCUITPY_TOUCHIO_USE_NATIVE = 0
|
|
|
|
|
|
|
|
# The ?='s allow overriding in mpconfigboard.mk.
|
|
|
|
|
|
|
|
CIRCUITPY_PS2IO ?= 1
|
|
|
|
CIRCUITPY_SAMD ?= 1
|
|
|
|
CIRCUITPY_RGBMATRIX ?= $(CIRCUITPY_FULL_BUILD)
|
|
|
|
CIRCUITPY_FRAMEBUFFERIO ?= $(CIRCUITPY_FULL_BUILD)
|
|
|
|
|
|
|
|
endif # same51
|
|
|
|
######################################################################
|