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
|
|
|
|
|
2019-03-27 17:54:36 -04:00
|
|
|
# Put samd21-only choices here.
|
2019-03-27 18:19:39 -04:00
|
|
|
ifeq ($(CHIP_FAMILY),samd21)
|
2019-11-22 15:44:51 -05:00
|
|
|
# frequencyio not yet verified as working on SAMD21, though make it possible to override.
|
|
|
|
ifndef CIRCUITPY_AUDIOMIXER
|
2019-09-01 18:39:20 -04:00
|
|
|
CIRCUITPY_AUDIOMIXER = 0
|
2019-11-22 15:44:51 -05:00
|
|
|
endif
|
|
|
|
|
2019-11-26 10:29:55 -05:00
|
|
|
ifndef CIRCUITPY_AUDIOMP3
|
|
|
|
CIRCUITPY_AUDIOMP3 = 0
|
|
|
|
endif
|
|
|
|
|
2019-11-22 15:44:51 -05:00
|
|
|
ifndef CIRCUITPY_FREQUENCYIO
|
2019-07-17 15:02:15 -04:00
|
|
|
CIRCUITPY_FREQUENCYIO = 0
|
2019-11-22 15:44:51 -05:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef CIRCUITPY_TOUCHIO_USE_NATIVE
|
2019-08-18 08:44:10 -04:00
|
|
|
CIRCUITPY_TOUCHIO_USE_NATIVE = 1
|
2019-11-22 15:44:51 -05:00
|
|
|
endif
|
2019-09-04 21:45:16 -04:00
|
|
|
|
2020-10-15 11:15:48 -04:00
|
|
|
# No room for HCI _bleio on SAMD21.
|
|
|
|
CIRCUITPY_BLEIO_HCI = 0
|
|
|
|
|
2020-05-06 12:04:53 -04:00
|
|
|
CIRCUITPY_SDCARDIO ?= 0
|
|
|
|
|
2020-08-12 11:46:56 -04:00
|
|
|
# Not enough RAM for framebuffers
|
|
|
|
CIRCUITPY_FRAMEBUFFERIO ?= 0
|
|
|
|
|
2019-09-04 21:45:16 -04:00
|
|
|
# SAMD21 needs separate endpoint pairs for MSC BULK IN and BULK OUT, otherwise it's erratic.
|
2019-10-01 04:00:32 -04:00
|
|
|
USB_MSC_EP_NUM_OUT = 1
|
2019-12-05 22:45:53 -05:00
|
|
|
|
2020-03-17 10:33:03 -04:00
|
|
|
CIRCUITPY_ULAB = 0
|
2020-03-10 00:00:21 -04:00
|
|
|
|
2020-08-17 20:17:59 -04:00
|
|
|
ifeq ($(TRANSLATION), ja)
|
|
|
|
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
|
|
CIRCUITPY_TERMINALIO = 0
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(TRANSLATION), ko)
|
|
|
|
RELEASE_NEEDS_CLEAN_BUILD = 1
|
|
|
|
CIRCUITPY_TERMINALIO = 0
|
|
|
|
endif
|
|
|
|
|
2019-12-05 22:45:53 -05:00
|
|
|
endif # samd21
|
2019-03-27 17:54:36 -04:00
|
|
|
|
2019-02-17 23:48:08 -05:00
|
|
|
# Put samd51-only choices here.
|
|
|
|
ifeq ($(CHIP_FAMILY),samd51)
|
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
|
|
|
|
2019-11-22 16:30:10 -05:00
|
|
|
# The ifndef's allow overriding in mpconfigboard.mk.
|
|
|
|
|
2019-11-22 15:44:51 -05:00
|
|
|
ifndef CIRCUITPY_NETWORK
|
2020-07-17 20:43:02 -04:00
|
|
|
CIRCUITPY_NETWORK = 0
|
2019-11-22 15:44:51 -05:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef CIRCUITPY_PS2IO
|
2019-11-22 10:59:27 -05:00
|
|
|
CIRCUITPY_PS2IO = 1
|
2019-02-17 23:48:08 -05:00
|
|
|
endif
|
|
|
|
|
2019-11-22 15:44:51 -05:00
|
|
|
ifndef CIRCUITPY_SAMD
|
2019-02-17 23:48:08 -05:00
|
|
|
CIRCUITPY_SAMD = 1
|
2019-11-22 15:44:51 -05:00
|
|
|
endif
|
|
|
|
|
2020-04-15 16:01:24 -04:00
|
|
|
ifndef CIRCUITPY_RGBMATRIX
|
2020-04-23 17:12:55 -04:00
|
|
|
CIRCUITPY_RGBMATRIX = $(CIRCUITPY_FULL_BUILD)
|
2020-03-10 14:12:01 -04:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef CIRCUITPY_FRAMEBUFFERIO
|
2020-04-23 17:12:55 -04:00
|
|
|
CIRCUITPY_FRAMEBUFFERIO = $(CIRCUITPY_FULL_BUILD)
|
2020-03-10 14:12:01 -04:00
|
|
|
endif
|
|
|
|
|
2019-12-05 22:45:53 -05:00
|
|
|
endif # samd51
|
2019-02-17 23:48:08 -05:00
|
|
|
|
2017-10-31 18:46:42 -04:00
|
|
|
INTERNAL_LIBM = 1
|
2018-10-04 07:59:25 -04:00
|
|
|
|
2018-10-19 21:46:22 -04:00
|
|
|
USB_SERIAL_NUMBER_LENGTH = 32
|
2020-08-19 17:47:20 -04:00
|
|
|
|
|
|
|
USB_NUM_EP = 8
|