2019-02-15 18:55:10 -05:00
|
|
|
# This file is part of the MicroPython project, http://micropython.org/
|
|
|
|
#
|
|
|
|
# The MIT License (MIT)
|
|
|
|
#
|
2020-06-03 18:40:05 -04:00
|
|
|
# SPDX-FileCopyrightText: Copyright (c) 2019 Dan Halbert for Adafruit Industries
|
2019-02-15 18:55:10 -05:00
|
|
|
#
|
|
|
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
# of this software and associated documentation files (the "Software"), to deal
|
|
|
|
# in the Software without restriction, including without limitation the rights
|
|
|
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
# copies of the Software, and to permit persons to whom the Software is
|
|
|
|
# furnished to do so, subject to the following conditions:
|
|
|
|
#
|
|
|
|
# The above copyright notice and this permission notice shall be included in
|
|
|
|
# all copies or substantial portions of the Software.
|
|
|
|
#
|
|
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
|
|
# THE SOFTWARE.
|
|
|
|
|
|
|
|
# Common Makefile definitions that can be shared across CircuitPython ports.
|
|
|
|
|
|
|
|
###
|
|
|
|
# Common compile warnings.
|
|
|
|
|
|
|
|
BASE_CFLAGS = \
|
|
|
|
-fsingle-precision-constant \
|
|
|
|
-fno-strict-aliasing \
|
|
|
|
-Wdouble-promotion \
|
2020-09-13 14:12:35 -04:00
|
|
|
-Wimplicit-fallthrough=2 \
|
2019-02-15 18:55:10 -05:00
|
|
|
-Wno-endif-labels \
|
|
|
|
-Wstrict-prototypes \
|
|
|
|
-Werror-implicit-function-declaration \
|
|
|
|
-Wfloat-equal \
|
|
|
|
-Wundef \
|
|
|
|
-Wshadow \
|
|
|
|
-Wwrite-strings \
|
|
|
|
-Wsign-compare \
|
|
|
|
-Wmissing-format-attribute \
|
|
|
|
-Wno-deprecated-declarations \
|
|
|
|
-Wnested-externs \
|
|
|
|
-Wunreachable-code \
|
|
|
|
-Wcast-align \
|
|
|
|
-D__$(CHIP_VARIANT)__ \
|
|
|
|
-ffunction-sections \
|
|
|
|
-fdata-sections \
|
|
|
|
-DCIRCUITPY_SOFTWARE_SAFE_MODE=0x0ADABEEF \
|
|
|
|
-DCIRCUITPY_CANARY_WORD=0xADAF00 \
|
|
|
|
-DCIRCUITPY_SAFE_RESTART_WORD=0xDEADBEEF \
|
2021-01-20 19:47:18 -05:00
|
|
|
-DCIRCUITPY_BOARD_ID="\"$(BOARD)\"" \
|
2019-02-15 18:55:10 -05:00
|
|
|
--param max-inline-insns-single=500
|
|
|
|
|
|
|
|
# Use these flags to debug build times and header includes.
|
|
|
|
# -ftime-report
|
|
|
|
# -H
|
|
|
|
|
|
|
|
|
2021-01-08 22:16:58 -05:00
|
|
|
# Set a global CIRCUITPY_DEBUG flag.
|
|
|
|
# Don't just call it "DEBUG": too many libraries use plain DEBUG.
|
|
|
|
ifneq ($(DEBUG),)
|
|
|
|
CFLAGS += -DCIRCUITPY_DEBUG=$(DEBUG)
|
|
|
|
else
|
|
|
|
CFLAGS += -DCIRCUITPY_DEBUG=0
|
|
|
|
endif
|
|
|
|
|
2019-02-15 18:55:10 -05:00
|
|
|
###
|
|
|
|
# Handle frozen modules.
|
|
|
|
|
|
|
|
ifneq ($(FROZEN_DIR),)
|
|
|
|
# To use frozen source modules, put your .py files in a subdirectory (eg scripts/)
|
|
|
|
# and then invoke make with FROZEN_DIR=scripts (be sure to build from scratch).
|
|
|
|
CFLAGS += -DMICROPY_MODULE_FROZEN_STR
|
|
|
|
endif
|
|
|
|
|
|
|
|
# To use frozen bytecode, put your .py files in a subdirectory (eg frozen/) and
|
|
|
|
# then invoke make with FROZEN_MPY_DIR=frozen or FROZEN_MPY_DIRS="dir1 dir2"
|
|
|
|
# (be sure to build from scratch).
|
|
|
|
|
|
|
|
ifneq ($(FROZEN_MPY_DIRS),)
|
|
|
|
CFLAGS += -DMICROPY_QSTR_EXTRA_POOL=mp_qstr_frozen_const_pool
|
|
|
|
CFLAGS += -DMICROPY_MODULE_FROZEN_MPY
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
# Propagate longint choice from .mk to C. There's no easy string comparison
|
|
|
|
# in cpp conditionals, so we #define separate names for each.
|
|
|
|
ifeq ($(LONGINT_IMPL),NONE)
|
|
|
|
CFLAGS += -DLONGINT_IMPL_NONE
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(LONGINT_IMPL),MPZ)
|
|
|
|
CFLAGS += -DLONGINT_IMPL_MPZ
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(LONGINT_IMPL),LONGLONG)
|
|
|
|
CFLAGS += -DLONGINT_IMPL_LONGLONG
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
###
|
|
|
|
# Select which builtin modules to compile and include.
|
|
|
|
|
2020-04-13 23:18:45 -04:00
|
|
|
ifeq ($(CIRCUITPY_AESIO),1)
|
|
|
|
SRC_PATTERNS += aesio/%
|
|
|
|
endif
|
2020-09-24 01:29:04 -04:00
|
|
|
ifeq ($(CIRCUITPY_ALARM),1)
|
|
|
|
SRC_PATTERNS += alarm/%
|
|
|
|
endif
|
2019-02-15 18:55:10 -05:00
|
|
|
ifeq ($(CIRCUITPY_ANALOGIO),1)
|
|
|
|
SRC_PATTERNS += analogio/%
|
|
|
|
endif
|
2021-07-29 23:06:24 -04:00
|
|
|
ifeq ($(CIRCUITPY_ATEXIT),1)
|
|
|
|
SRC_PATTERNS += atexit/%
|
|
|
|
endif
|
2019-02-15 18:55:10 -05:00
|
|
|
ifeq ($(CIRCUITPY_AUDIOBUSIO),1)
|
|
|
|
SRC_PATTERNS += audiobusio/%
|
|
|
|
endif
|
|
|
|
ifeq ($(CIRCUITPY_AUDIOIO),1)
|
|
|
|
SRC_PATTERNS += audioio/%
|
|
|
|
endif
|
2019-07-25 18:55:57 -04:00
|
|
|
ifeq ($(CIRCUITPY_AUDIOPWMIO),1)
|
|
|
|
SRC_PATTERNS += audiopwmio/%
|
|
|
|
endif
|
2019-07-24 21:57:32 -04:00
|
|
|
ifeq ($(CIRCUITPY_AUDIOCORE),1)
|
|
|
|
SRC_PATTERNS += audiocore/%
|
|
|
|
endif
|
2019-08-25 00:36:18 -04:00
|
|
|
ifeq ($(CIRCUITPY_AUDIOMIXER),1)
|
|
|
|
SRC_PATTERNS += audiomixer/%
|
|
|
|
endif
|
2019-11-26 10:29:55 -05:00
|
|
|
ifeq ($(CIRCUITPY_AUDIOMP3),1)
|
|
|
|
SRC_PATTERNS += audiomp3/%
|
|
|
|
endif
|
2019-02-15 18:55:10 -05:00
|
|
|
ifeq ($(CIRCUITPY_BITBANGIO),1)
|
|
|
|
SRC_PATTERNS += bitbangio/%
|
|
|
|
endif
|
2019-08-27 18:21:47 -04:00
|
|
|
# Some builds need bitbang SPI for the dotstar but don't make bitbangio available so include it separately.
|
|
|
|
ifeq ($(CIRCUITPY_BITBANG_APA102),1)
|
|
|
|
SRC_PATTERNS += bitbangio/SPI%
|
|
|
|
endif
|
2021-02-24 00:23:14 -05:00
|
|
|
ifeq ($(CIRCUITPY_BITMAPTOOLS),1)
|
|
|
|
SRC_PATTERNS += bitmaptools/%
|
|
|
|
endif
|
2021-02-19 14:22:50 -05:00
|
|
|
ifeq ($(CIRCUITPY_BITOPS),1)
|
|
|
|
SRC_PATTERNS += bitops/%
|
|
|
|
endif
|
2019-02-15 18:55:10 -05:00
|
|
|
ifeq ($(CIRCUITPY_BLEIO),1)
|
2019-08-29 18:44:27 -04:00
|
|
|
SRC_PATTERNS += _bleio/%
|
2019-02-15 18:55:10 -05:00
|
|
|
endif
|
|
|
|
ifeq ($(CIRCUITPY_BOARD),1)
|
|
|
|
SRC_PATTERNS += board/%
|
|
|
|
endif
|
2020-10-24 21:48:35 -04:00
|
|
|
ifeq ($(CIRCUITPY_BUSDEVICE),1)
|
2020-11-03 19:35:20 -05:00
|
|
|
SRC_PATTERNS += adafruit_bus_device/%
|
2020-10-24 21:48:35 -04:00
|
|
|
endif
|
2019-02-15 18:55:10 -05:00
|
|
|
ifeq ($(CIRCUITPY_BUSIO),1)
|
2021-08-12 13:47:14 -04:00
|
|
|
SRC_PATTERNS += busio/%
|
2019-02-15 18:55:10 -05:00
|
|
|
endif
|
2020-09-02 09:42:57 -04:00
|
|
|
ifeq ($(CIRCUITPY_CAMERA),1)
|
|
|
|
SRC_PATTERNS += camera/%
|
|
|
|
endif
|
2020-08-20 12:08:00 -04:00
|
|
|
ifeq ($(CIRCUITPY_CANIO),1)
|
2020-09-21 17:42:12 -04:00
|
|
|
SRC_PATTERNS += canio/%
|
2020-08-20 12:08:00 -04:00
|
|
|
endif
|
2020-05-05 01:23:38 -04:00
|
|
|
ifeq ($(CIRCUITPY_COUNTIO),1)
|
|
|
|
SRC_PATTERNS += countio/%
|
|
|
|
endif
|
2019-02-15 18:55:10 -05:00
|
|
|
ifeq ($(CIRCUITPY_DIGITALIO),1)
|
|
|
|
SRC_PATTERNS += digitalio/%
|
|
|
|
endif
|
|
|
|
ifeq ($(CIRCUITPY_DISPLAYIO),1)
|
2020-08-17 20:17:59 -04:00
|
|
|
SRC_PATTERNS += displayio/%
|
2019-02-15 18:55:10 -05:00
|
|
|
endif
|
2021-08-29 08:26:47 -04:00
|
|
|
ifeq ($(CIRCUITPY_PARALLELDISPLAY),1)
|
|
|
|
SRC_PATTERNS += paralleldisplay/%
|
|
|
|
endif
|
2020-05-02 05:21:35 -04:00
|
|
|
ifeq ($(CIRCUITPY_VECTORIO),1)
|
|
|
|
SRC_PATTERNS += vectorio/%
|
|
|
|
endif
|
2020-03-10 14:12:01 -04:00
|
|
|
ifeq ($(CIRCUITPY_FRAMEBUFFERIO),1)
|
|
|
|
SRC_PATTERNS += framebufferio/%
|
|
|
|
endif
|
2021-05-28 23:00:07 -04:00
|
|
|
ifeq ($(CIRCUITPY__EVE),1)
|
|
|
|
SRC_PATTERNS += _eve/%
|
|
|
|
endif
|
2019-02-24 19:05:51 -05:00
|
|
|
ifeq ($(CIRCUITPY_FREQUENCYIO),1)
|
|
|
|
SRC_PATTERNS += frequencyio/%
|
|
|
|
endif
|
2021-07-26 22:15:09 -04:00
|
|
|
|
2019-04-16 13:11:54 -04:00
|
|
|
ifeq ($(CIRCUITPY_GAMEPADSHIFT),1)
|
|
|
|
SRC_PATTERNS += gamepadshift/%
|
2019-02-15 18:55:10 -05:00
|
|
|
endif
|
2021-08-08 05:45:15 -04:00
|
|
|
ifeq ($(CIRCUITPY_GETPASS),1)
|
|
|
|
SRC_PATTERNS += getpass/%
|
|
|
|
endif
|
2020-06-16 14:39:56 -04:00
|
|
|
ifeq ($(CIRCUITPY_GNSS),1)
|
|
|
|
SRC_PATTERNS += gnss/%
|
|
|
|
endif
|
2020-06-23 09:45:15 -04:00
|
|
|
ifeq ($(CIRCUITPY_I2CPERIPHERAL),1)
|
|
|
|
SRC_PATTERNS += i2cperipheral/%
|
2019-02-15 18:55:10 -05:00
|
|
|
endif
|
2020-08-05 15:53:35 -04:00
|
|
|
ifeq ($(CIRCUITPY_IPADDRESS),1)
|
|
|
|
SRC_PATTERNS += ipaddress/%
|
|
|
|
endif
|
2021-05-28 23:00:07 -04:00
|
|
|
ifeq ($(CIRCUITPY_KEYPAD),1)
|
|
|
|
SRC_PATTERNS += keypad/%
|
|
|
|
endif
|
2019-02-15 18:55:10 -05:00
|
|
|
ifeq ($(CIRCUITPY_MATH),1)
|
|
|
|
SRC_PATTERNS += math/%
|
|
|
|
endif
|
2020-07-15 20:58:38 -04:00
|
|
|
ifeq ($(CIRCUITPY_MEMORYMONITOR),1)
|
|
|
|
SRC_PATTERNS += memorymonitor/%
|
|
|
|
endif
|
2019-02-15 18:55:10 -05:00
|
|
|
ifeq ($(CIRCUITPY_MICROCONTROLLER),1)
|
|
|
|
SRC_PATTERNS += microcontroller/%
|
|
|
|
endif
|
|
|
|
ifeq ($(CIRCUITPY_NEOPIXEL_WRITE),1)
|
|
|
|
SRC_PATTERNS += neopixel_write/%
|
|
|
|
endif
|
|
|
|
ifeq ($(CIRCUITPY_NVM),1)
|
|
|
|
SRC_PATTERNS += nvm/%
|
|
|
|
endif
|
2021-08-12 13:47:14 -04:00
|
|
|
ifeq ($(CIRCUITPY_ONEWIREIO),1)
|
|
|
|
SRC_PATTERNS += onewireio/%
|
|
|
|
endif
|
2019-02-15 18:55:10 -05:00
|
|
|
ifeq ($(CIRCUITPY_OS),1)
|
|
|
|
SRC_PATTERNS += os/%
|
|
|
|
endif
|
2020-12-17 14:04:56 -05:00
|
|
|
ifeq ($(CIRCUITPY_DUALBANK),1)
|
|
|
|
SRC_PATTERNS += dualbank/%
|
2020-12-08 01:00:00 -05:00
|
|
|
endif
|
2019-02-15 18:55:10 -05:00
|
|
|
ifeq ($(CIRCUITPY_PIXELBUF),1)
|
2021-07-16 13:31:40 -04:00
|
|
|
SRC_PATTERNS += adafruit_pixelbuf/%
|
2019-02-15 18:55:10 -05:00
|
|
|
endif
|
2021-08-03 09:42:53 -04:00
|
|
|
ifeq ($(CIRCUITPY_QRIO),1)
|
|
|
|
SRC_PATTERNS += qrio/%
|
|
|
|
endif
|
2021-07-12 14:40:01 -04:00
|
|
|
ifeq ($(CIRCUITPY_RAINBOWIO),1)
|
|
|
|
SRC_PATTERNS += rainbowio/%
|
2021-07-08 15:55:13 -04:00
|
|
|
endif
|
2020-04-15 16:01:24 -04:00
|
|
|
ifeq ($(CIRCUITPY_RGBMATRIX),1)
|
2020-04-15 12:22:16 -04:00
|
|
|
SRC_PATTERNS += rgbmatrix/%
|
2020-03-10 14:12:01 -04:00
|
|
|
endif
|
2020-08-18 16:08:33 -04:00
|
|
|
ifeq ($(CIRCUITPY_PS2IO),1)
|
|
|
|
SRC_PATTERNS += ps2io/%
|
|
|
|
endif
|
2019-02-15 18:55:10 -05:00
|
|
|
ifeq ($(CIRCUITPY_PULSEIO),1)
|
|
|
|
SRC_PATTERNS += pulseio/%
|
|
|
|
endif
|
2020-08-18 16:08:33 -04:00
|
|
|
ifeq ($(CIRCUITPY_PWMIO),1)
|
|
|
|
SRC_PATTERNS += pwmio/%
|
2019-05-15 22:29:34 -04:00
|
|
|
endif
|
2019-02-15 18:55:10 -05:00
|
|
|
ifeq ($(CIRCUITPY_RANDOM),1)
|
|
|
|
SRC_PATTERNS += random/%
|
|
|
|
endif
|
2021-01-20 19:47:18 -05:00
|
|
|
ifeq ($(CIRCUITPY_RP2PIO),1)
|
|
|
|
SRC_PATTERNS += rp2pio/%
|
|
|
|
endif
|
2019-02-15 18:55:10 -05:00
|
|
|
ifeq ($(CIRCUITPY_ROTARYIO),1)
|
|
|
|
SRC_PATTERNS += rotaryio/%
|
|
|
|
endif
|
|
|
|
ifeq ($(CIRCUITPY_RTC),1)
|
|
|
|
SRC_PATTERNS += rtc/%
|
|
|
|
endif
|
|
|
|
ifeq ($(CIRCUITPY_SAMD),1)
|
|
|
|
SRC_PATTERNS += samd/%
|
|
|
|
endif
|
2020-05-06 12:04:53 -04:00
|
|
|
ifeq ($(CIRCUITPY_SDCARDIO),1)
|
|
|
|
SRC_PATTERNS += sdcardio/%
|
|
|
|
endif
|
2020-06-26 11:10:39 -04:00
|
|
|
ifeq ($(CIRCUITPY_SDIOIO),1)
|
|
|
|
SRC_PATTERNS += sdioio/%
|
|
|
|
endif
|
2020-08-06 17:03:31 -04:00
|
|
|
ifeq ($(CIRCUITPY_SHARPDISPLAY),1)
|
|
|
|
SRC_PATTERNS += sharpdisplay/%
|
|
|
|
endif
|
2020-08-10 20:56:49 -04:00
|
|
|
ifeq ($(CIRCUITPY_SOCKETPOOL),1)
|
|
|
|
SRC_PATTERNS += socketpool/%
|
|
|
|
endif
|
2020-08-13 19:55:49 -04:00
|
|
|
ifeq ($(CIRCUITPY_SSL),1)
|
|
|
|
SRC_PATTERNS += ssl/%
|
|
|
|
endif
|
2019-02-15 18:55:10 -05:00
|
|
|
ifeq ($(CIRCUITPY_STAGE),1)
|
|
|
|
SRC_PATTERNS += _stage/%
|
|
|
|
endif
|
|
|
|
ifeq ($(CIRCUITPY_STORAGE),1)
|
|
|
|
SRC_PATTERNS += storage/%
|
|
|
|
endif
|
|
|
|
ifeq ($(CIRCUITPY_STRUCT),1)
|
|
|
|
SRC_PATTERNS += struct/%
|
|
|
|
endif
|
|
|
|
ifeq ($(CIRCUITPY_SUPERVISOR),1)
|
|
|
|
SRC_PATTERNS += supervisor/%
|
|
|
|
endif
|
2021-03-19 18:22:00 -04:00
|
|
|
ifeq ($(CIRCUITPY_SYNTHIO),1)
|
|
|
|
SRC_PATTERNS += synthio/%
|
|
|
|
endif
|
2020-08-17 20:17:59 -04:00
|
|
|
ifeq ($(CIRCUITPY_TERMINALIO),1)
|
|
|
|
SRC_PATTERNS += terminalio/% fontio/%
|
|
|
|
endif
|
2019-02-15 18:55:10 -05:00
|
|
|
ifeq ($(CIRCUITPY_TIME),1)
|
|
|
|
SRC_PATTERNS += time/%
|
|
|
|
endif
|
|
|
|
ifeq ($(CIRCUITPY_TOUCHIO),1)
|
|
|
|
SRC_PATTERNS += touchio/%
|
|
|
|
endif
|
2021-07-27 14:30:01 -04:00
|
|
|
ifeq ($(CIRCUITPY_TRACEBACK),1)
|
|
|
|
SRC_PATTERNS += traceback/%
|
|
|
|
endif
|
2019-02-15 18:55:10 -05:00
|
|
|
ifeq ($(CIRCUITPY_UHEAP),1)
|
|
|
|
SRC_PATTERNS += uheap/%
|
|
|
|
endif
|
2021-02-12 19:01:14 -05:00
|
|
|
ifeq ($(CIRCUITPY_USB_CDC),1)
|
|
|
|
SRC_PATTERNS += usb_cdc/%
|
|
|
|
endif
|
2019-02-15 18:55:10 -05:00
|
|
|
ifeq ($(CIRCUITPY_USB_HID),1)
|
|
|
|
SRC_PATTERNS += usb_hid/%
|
|
|
|
endif
|
|
|
|
ifeq ($(CIRCUITPY_USB_MIDI),1)
|
|
|
|
SRC_PATTERNS += usb_midi/%
|
|
|
|
endif
|
2021-01-25 21:37:58 -05:00
|
|
|
ifeq ($(CIRCUITPY_USB_VENDOR),1)
|
|
|
|
SRC_PATTERNS += usb_vendor/%
|
|
|
|
endif
|
2019-02-15 18:55:10 -05:00
|
|
|
ifeq ($(CIRCUITPY_USTACK),1)
|
|
|
|
SRC_PATTERNS += ustack/%
|
|
|
|
endif
|
2020-05-21 01:47:23 -04:00
|
|
|
ifeq ($(CIRCUITPY_WATCHDOG),1)
|
|
|
|
SRC_PATTERNS += watchdog/%
|
2020-05-20 08:08:07 -04:00
|
|
|
endif
|
2020-07-28 21:23:33 -04:00
|
|
|
ifeq ($(CIRCUITPY_WIFI),1)
|
|
|
|
SRC_PATTERNS += wifi/%
|
|
|
|
endif
|
2018-08-01 09:29:26 -04:00
|
|
|
ifeq ($(CIRCUITPY_PEW),1)
|
|
|
|
SRC_PATTERNS += _pew/%
|
|
|
|
endif
|
2021-04-16 18:18:59 -04:00
|
|
|
ifeq ($(CIRCUITPY_IMAGECAPTURE),1)
|
|
|
|
SRC_PATTERNS += imagecapture/%
|
|
|
|
endif
|
2020-11-08 21:39:20 -05:00
|
|
|
ifeq ($(CIRCUITPY_MSGPACK),1)
|
|
|
|
SRC_PATTERNS += msgpack/%
|
|
|
|
endif
|
2019-02-15 18:55:10 -05:00
|
|
|
|
2019-08-18 08:44:10 -04:00
|
|
|
# All possible sources are listed here, and are filtered by SRC_PATTERNS in SRC_COMMON_HAL
|
|
|
|
SRC_COMMON_HAL_ALL = \
|
2019-08-29 18:44:27 -04:00
|
|
|
_bleio/Adapter.c \
|
|
|
|
_bleio/Attribute.c \
|
|
|
|
_bleio/Characteristic.c \
|
|
|
|
_bleio/CharacteristicBuffer.c \
|
2019-09-14 15:40:24 -04:00
|
|
|
_bleio/Connection.c \
|
2019-08-29 18:44:27 -04:00
|
|
|
_bleio/Descriptor.c \
|
2019-12-06 15:27:46 -05:00
|
|
|
_bleio/PacketBuffer.c \
|
2019-08-29 18:44:27 -04:00
|
|
|
_bleio/Service.c \
|
|
|
|
_bleio/UUID.c \
|
2020-06-21 09:33:33 -04:00
|
|
|
_bleio/__init__.c \
|
2020-06-21 09:31:26 -04:00
|
|
|
_pew/PewPew.c \
|
2020-06-21 09:33:33 -04:00
|
|
|
_pew/__init__.c \
|
2020-12-10 13:03:40 -05:00
|
|
|
alarm/SleepMemory.c \
|
2020-09-24 01:29:04 -04:00
|
|
|
alarm/__init__.c \
|
2020-11-19 15:43:39 -05:00
|
|
|
alarm/pin/PinAlarm.c \
|
2020-11-25 17:52:06 -05:00
|
|
|
alarm/time/TimeAlarm.c \
|
2020-12-18 02:24:36 -05:00
|
|
|
alarm/touch/TouchAlarm.c \
|
2019-02-15 18:55:10 -05:00
|
|
|
analogio/AnalogIn.c \
|
|
|
|
analogio/AnalogOut.c \
|
|
|
|
analogio/__init__.c \
|
|
|
|
audiobusio/I2SOut.c \
|
|
|
|
audiobusio/PDMIn.c \
|
2020-06-21 09:33:33 -04:00
|
|
|
audiobusio/__init__.c \
|
2019-02-15 18:55:10 -05:00
|
|
|
audioio/AudioOut.c \
|
2020-06-21 09:33:33 -04:00
|
|
|
audioio/__init__.c \
|
|
|
|
audiopwmio/PWMAudioOut.c \
|
|
|
|
audiopwmio/__init__.c \
|
2019-02-15 18:55:10 -05:00
|
|
|
board/__init__.c \
|
|
|
|
busio/I2C.c \
|
|
|
|
busio/SPI.c \
|
|
|
|
busio/UART.c \
|
|
|
|
busio/__init__.c \
|
2020-09-02 09:42:57 -04:00
|
|
|
camera/__init__.c \
|
|
|
|
camera/Camera.c \
|
2020-09-21 17:42:12 -04:00
|
|
|
canio/CAN.c \
|
|
|
|
canio/Listener.c \
|
|
|
|
canio/__init__.c \
|
2020-05-05 01:23:38 -04:00
|
|
|
countio/Counter.c \
|
|
|
|
countio/__init__.c \
|
2019-02-15 18:55:10 -05:00
|
|
|
digitalio/DigitalInOut.c \
|
|
|
|
digitalio/__init__.c \
|
2021-04-16 18:18:59 -04:00
|
|
|
dualbank/__init__.c \
|
2019-02-24 19:05:51 -05:00
|
|
|
frequencyio/FrequencyIn.c \
|
2020-06-21 09:33:33 -04:00
|
|
|
frequencyio/__init__.c \
|
2021-04-16 18:18:59 -04:00
|
|
|
imagecapture/ParallelImageCapture.c \
|
|
|
|
imagecapture/__init__.c \
|
2020-06-16 14:39:56 -04:00
|
|
|
gnss/__init__.c \
|
|
|
|
gnss/GNSS.c \
|
|
|
|
gnss/PositionFix.c \
|
|
|
|
gnss/SatelliteSystem.c \
|
2020-06-23 09:45:15 -04:00
|
|
|
i2cperipheral/I2CPeripheral.c \
|
|
|
|
i2cperipheral/__init__.c \
|
2019-02-15 18:55:10 -05:00
|
|
|
microcontroller/Pin.c \
|
|
|
|
microcontroller/Processor.c \
|
|
|
|
microcontroller/__init__.c \
|
|
|
|
neopixel_write/__init__.c \
|
|
|
|
nvm/ByteArray.c \
|
|
|
|
nvm/__init__.c \
|
|
|
|
os/__init__.c \
|
2021-08-29 08:26:47 -04:00
|
|
|
paralleldisplay/ParallelBus.c \
|
2020-06-21 09:33:33 -04:00
|
|
|
ps2io/Ps2.c \
|
|
|
|
ps2io/__init__.c \
|
2019-02-15 18:55:10 -05:00
|
|
|
pulseio/PulseIn.c \
|
|
|
|
pulseio/PulseOut.c \
|
|
|
|
pulseio/__init__.c \
|
2020-08-18 16:08:33 -04:00
|
|
|
pwmio/PWMOut.c \
|
|
|
|
pwmio/__init__.c \
|
2020-06-21 09:33:33 -04:00
|
|
|
rgbmatrix/RGBMatrix.c \
|
|
|
|
rgbmatrix/__init__.c \
|
2019-02-15 18:55:10 -05:00
|
|
|
rotaryio/IncrementalEncoder.c \
|
|
|
|
rotaryio/__init__.c \
|
|
|
|
rtc/RTC.c \
|
|
|
|
rtc/__init__.c \
|
2020-06-26 11:10:39 -04:00
|
|
|
sdioio/SDCard.c \
|
|
|
|
sdioio/__init__.c \
|
2020-08-11 19:04:55 -04:00
|
|
|
socketpool/__init__.c \
|
|
|
|
socketpool/SocketPool.c \
|
|
|
|
socketpool/Socket.c \
|
2020-08-13 19:55:49 -04:00
|
|
|
ssl/__init__.c \
|
|
|
|
ssl/SSLContext.c \
|
2021-01-15 12:01:15 -05:00
|
|
|
ssl/SSLSocket.c \
|
2019-02-15 18:55:10 -05:00
|
|
|
supervisor/Runtime.c \
|
2020-05-20 08:08:07 -04:00
|
|
|
supervisor/__init__.c \
|
2020-05-22 00:35:29 -04:00
|
|
|
watchdog/WatchDogMode.c \
|
2020-05-21 01:47:23 -04:00
|
|
|
watchdog/WatchDogTimer.c \
|
2020-06-21 09:33:33 -04:00
|
|
|
watchdog/__init__.c \
|
2020-07-28 21:23:33 -04:00
|
|
|
wifi/Network.c \
|
|
|
|
wifi/Radio.c \
|
2020-07-30 20:58:12 -04:00
|
|
|
wifi/ScannedNetworks.c \
|
2020-07-28 21:23:33 -04:00
|
|
|
wifi/__init__.c \
|
2019-08-18 08:44:10 -04:00
|
|
|
|
2020-06-26 17:23:20 -04:00
|
|
|
ifeq ($(CIRCUITPY_BLEIO_HCI),1)
|
2020-07-23 18:54:26 -04:00
|
|
|
# Helper code for _bleio HCI.
|
2020-06-30 23:19:40 -04:00
|
|
|
SRC_C += \
|
2020-07-23 18:54:26 -04:00
|
|
|
common-hal/_bleio/att.c \
|
|
|
|
common-hal/_bleio/hci.c \
|
2020-06-26 17:23:20 -04:00
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2019-08-18 08:44:10 -04:00
|
|
|
SRC_COMMON_HAL = $(filter $(SRC_PATTERNS), $(SRC_COMMON_HAL_ALL))
|
2019-02-15 18:55:10 -05:00
|
|
|
|
|
|
|
# These don't have corresponding files in each port but are still located in
|
|
|
|
# shared-bindings to make it clear what the contents of the modules are.
|
|
|
|
# All possible sources are listed here, and are filtered by SRC_PATTERNS.
|
|
|
|
SRC_BINDINGS_ENUMS = \
|
|
|
|
$(filter $(SRC_PATTERNS), \
|
2019-08-29 18:44:27 -04:00
|
|
|
_bleio/Address.c \
|
|
|
|
_bleio/Attribute.c \
|
|
|
|
_bleio/ScanEntry.c \
|
2020-06-21 09:33:33 -04:00
|
|
|
_eve/__init__.c \
|
2020-09-11 07:27:11 -04:00
|
|
|
camera/ImageFormat.c \
|
2020-11-20 23:33:39 -05:00
|
|
|
canio/Match.c \
|
2021-08-06 10:53:17 -04:00
|
|
|
qrio/PixelPolicy.c \
|
|
|
|
qrio/QRInfo.c \
|
2019-02-15 18:55:10 -05:00
|
|
|
digitalio/Direction.c \
|
|
|
|
digitalio/DriveMode.c \
|
|
|
|
digitalio/Pull.c \
|
2019-03-19 19:22:09 -04:00
|
|
|
fontio/Glyph.c \
|
2019-02-15 18:55:10 -05:00
|
|
|
math/__init__.c \
|
2020-11-21 23:29:52 -05:00
|
|
|
microcontroller/ResetReason.c \
|
2020-06-21 09:33:33 -04:00
|
|
|
microcontroller/RunMode.c \
|
2020-11-08 21:39:20 -05:00
|
|
|
msgpack/__init__.c \
|
2020-12-07 19:08:16 -05:00
|
|
|
msgpack/ExtType.c \
|
2020-11-23 22:44:53 -05:00
|
|
|
supervisor/RunReason.c \
|
2021-04-29 09:12:36 -04:00
|
|
|
wifi/AuthMode.c \
|
2019-02-15 18:55:10 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
SRC_BINDINGS_ENUMS += \
|
|
|
|
util.c
|
|
|
|
|
2019-08-18 08:44:10 -04:00
|
|
|
SRC_SHARED_MODULE_ALL = \
|
2019-08-29 18:44:27 -04:00
|
|
|
_bleio/Address.c \
|
|
|
|
_bleio/Attribute.c \
|
|
|
|
_bleio/ScanEntry.c \
|
2019-09-14 15:40:24 -04:00
|
|
|
_bleio/ScanResults.c \
|
2020-06-21 09:33:33 -04:00
|
|
|
_eve/__init__.c \
|
2021-07-16 13:31:40 -04:00
|
|
|
adafruit_pixelbuf/PixelBuf.c \
|
|
|
|
adafruit_pixelbuf/__init__.c \
|
2019-02-15 18:55:10 -05:00
|
|
|
_stage/Layer.c \
|
|
|
|
_stage/Text.c \
|
|
|
|
_stage/__init__.c \
|
2020-06-21 09:33:33 -04:00
|
|
|
aesio/__init__.c \
|
|
|
|
aesio/aes.c \
|
2021-07-29 23:06:24 -04:00
|
|
|
atexit/__init__.c \
|
2019-07-24 21:57:32 -04:00
|
|
|
audiocore/RawSample.c \
|
|
|
|
audiocore/WaveFile.c \
|
2020-06-21 09:33:33 -04:00
|
|
|
audiocore/__init__.c \
|
|
|
|
audioio/__init__.c \
|
2019-08-25 00:36:18 -04:00
|
|
|
audiomixer/Mixer.c \
|
|
|
|
audiomixer/MixerVoice.c \
|
2020-06-21 09:33:33 -04:00
|
|
|
audiomixer/__init__.c \
|
2020-01-06 14:35:43 -05:00
|
|
|
audiomp3/MP3Decoder.c \
|
2020-06-21 09:33:33 -04:00
|
|
|
audiomp3/__init__.c \
|
|
|
|
audiopwmio/__init__.c \
|
2019-02-15 18:55:10 -05:00
|
|
|
bitbangio/I2C.c \
|
|
|
|
bitbangio/SPI.c \
|
|
|
|
bitbangio/__init__.c \
|
2021-02-24 00:23:14 -05:00
|
|
|
bitmaptools/__init__.c \
|
2021-02-18 16:41:23 -05:00
|
|
|
bitops/__init__.c \
|
2019-04-08 19:58:50 -04:00
|
|
|
board/__init__.c \
|
2020-11-03 19:35:20 -05:00
|
|
|
adafruit_bus_device/__init__.c \
|
|
|
|
adafruit_bus_device/I2CDevice.c \
|
|
|
|
adafruit_bus_device/SPIDevice.c \
|
2020-11-20 23:33:39 -05:00
|
|
|
canio/Match.c \
|
|
|
|
canio/Message.c \
|
|
|
|
canio/RemoteTransmissionRequest.c \
|
2019-02-15 18:55:10 -05:00
|
|
|
displayio/Bitmap.c \
|
|
|
|
displayio/ColorConverter.c \
|
|
|
|
displayio/Display.c \
|
2019-08-02 19:17:38 -04:00
|
|
|
displayio/EPaperDisplay.c \
|
2019-02-15 18:55:10 -05:00
|
|
|
displayio/FourWire.c \
|
|
|
|
displayio/Group.c \
|
2019-07-05 22:01:54 -04:00
|
|
|
displayio/I2CDisplay.c \
|
2019-02-15 18:55:10 -05:00
|
|
|
displayio/OnDiskBitmap.c \
|
|
|
|
displayio/Palette.c \
|
|
|
|
displayio/Shape.c \
|
|
|
|
displayio/TileGrid.c \
|
|
|
|
displayio/__init__.c \
|
2019-03-19 19:22:09 -04:00
|
|
|
fontio/BuiltinFont.c \
|
|
|
|
fontio/__init__.c \
|
2020-03-10 14:12:01 -04:00
|
|
|
framebufferio/FramebufferDisplay.c \
|
|
|
|
framebufferio/__init__.c \
|
2021-08-12 13:47:14 -04:00
|
|
|
gamepadshift/GamePadShift.c \
|
|
|
|
gamepadshift/__init__.c \
|
2021-08-08 05:45:15 -04:00
|
|
|
getpass/__init__.c \
|
2020-08-05 15:53:35 -04:00
|
|
|
ipaddress/IPv4Address.c \
|
|
|
|
ipaddress/__init__.c \
|
2021-05-28 23:00:07 -04:00
|
|
|
keypad/__init__.c \
|
2021-06-14 16:00:15 -04:00
|
|
|
keypad/Event.c \
|
2021-06-16 15:27:59 -04:00
|
|
|
keypad/EventQueue.c \
|
2021-06-14 16:00:15 -04:00
|
|
|
keypad/KeyMatrix.c \
|
2021-06-17 20:51:30 -04:00
|
|
|
keypad/ShiftRegisterKeys.c \
|
2021-05-28 23:00:07 -04:00
|
|
|
keypad/Keys.c \
|
2020-07-15 20:58:38 -04:00
|
|
|
memorymonitor/__init__.c \
|
|
|
|
memorymonitor/AllocationAlarm.c \
|
|
|
|
memorymonitor/AllocationSize.c \
|
2020-06-21 09:33:33 -04:00
|
|
|
network/__init__.c \
|
2020-11-09 21:09:56 -05:00
|
|
|
msgpack/__init__.c \
|
2021-08-12 13:47:14 -04:00
|
|
|
onewireio/__init__.c \
|
|
|
|
onewireio/OneWire.c \
|
2019-02-15 18:55:10 -05:00
|
|
|
os/__init__.c \
|
2021-08-03 09:42:53 -04:00
|
|
|
qrio/__init__.c \
|
|
|
|
qrio/QRDecoder.c \
|
2021-07-12 14:40:01 -04:00
|
|
|
rainbowio/__init__.c \
|
2019-02-15 18:55:10 -05:00
|
|
|
random/__init__.c \
|
2020-04-15 12:22:16 -04:00
|
|
|
rgbmatrix/RGBMatrix.c \
|
|
|
|
rgbmatrix/__init__.c \
|
2021-04-08 17:25:47 -04:00
|
|
|
rotaryio/IncrementalEncoder.c \
|
2021-08-12 13:47:14 -04:00
|
|
|
sdcardio/SDCard.c \
|
|
|
|
sdcardio/__init__.c \
|
2020-08-06 17:03:31 -04:00
|
|
|
sharpdisplay/SharpMemoryFramebuffer.c \
|
|
|
|
sharpdisplay/__init__.c \
|
2020-06-21 09:33:33 -04:00
|
|
|
socket/__init__.c \
|
2019-02-15 18:55:10 -05:00
|
|
|
storage/__init__.c \
|
|
|
|
struct/__init__.c \
|
2021-03-19 18:22:00 -04:00
|
|
|
synthio/MidiTrack.c \
|
|
|
|
synthio/__init__.c \
|
2019-02-15 18:55:10 -05:00
|
|
|
terminalio/Terminal.c \
|
|
|
|
terminalio/__init__.c \
|
2020-06-21 09:33:33 -04:00
|
|
|
time/__init__.c \
|
2021-07-27 14:30:01 -04:00
|
|
|
traceback/__init__.c \
|
2019-02-15 18:55:10 -05:00
|
|
|
uheap/__init__.c \
|
|
|
|
ustack/__init__.c \
|
2020-06-21 09:33:33 -04:00
|
|
|
vectorio/Circle.c \
|
|
|
|
vectorio/Polygon.c \
|
|
|
|
vectorio/Rectangle.c \
|
|
|
|
vectorio/VectorShape.c \
|
|
|
|
vectorio/__init__.c \
|
2019-08-18 08:44:10 -04:00
|
|
|
|
|
|
|
# All possible sources are listed here, and are filtered by SRC_PATTERNS.
|
|
|
|
SRC_SHARED_MODULE = $(filter $(SRC_PATTERNS), $(SRC_SHARED_MODULE_ALL))
|
|
|
|
|
|
|
|
# Use the native touchio if requested. This flag is set conditionally in, say, mpconfigport.h.
|
2020-06-25 20:57:17 -04:00
|
|
|
# The presence of common-hal/touchio/* does not imply it's available for all chips in a port,
|
2019-08-18 08:44:10 -04:00
|
|
|
# so there is an explicit flag. For example, SAMD21 touchio is native, but SAMD51 is not.
|
|
|
|
ifeq ($(CIRCUITPY_TOUCHIO_USE_NATIVE),1)
|
|
|
|
SRC_COMMON_HAL_ALL += \
|
|
|
|
touchio/TouchIn.c \
|
|
|
|
touchio/__init__.c
|
|
|
|
else
|
|
|
|
SRC_SHARED_MODULE_ALL += \
|
|
|
|
touchio/TouchIn.c \
|
|
|
|
touchio/__init__.c
|
|
|
|
endif
|
2020-06-25 20:57:17 -04:00
|
|
|
|
|
|
|
# If supporting _bleio via HCI, make devices/ble_hci/common-hal/_bleio be includable,
|
|
|
|
# and use C source files in devices/ble_hci/common-hal.
|
|
|
|
ifeq ($(CIRCUITPY_BLEIO_HCI),1)
|
|
|
|
INC += -I$(TOP)/devices/ble_hci
|
|
|
|
DEVICES_MODULES += $(TOP)/devices/ble_hci
|
|
|
|
endif
|
|
|
|
|
2019-11-26 10:29:55 -05:00
|
|
|
ifeq ($(CIRCUITPY_AUDIOMP3),1)
|
|
|
|
SRC_MOD += $(addprefix lib/mp3/src/, \
|
|
|
|
bitstream.c \
|
|
|
|
buffers.c \
|
|
|
|
dct32.c \
|
|
|
|
dequant.c \
|
|
|
|
dqchan.c \
|
|
|
|
huffman.c \
|
|
|
|
hufftabs.c \
|
|
|
|
imdct.c \
|
|
|
|
mp3dec.c \
|
|
|
|
mp3tabs.c \
|
|
|
|
polyphase.c \
|
|
|
|
scalfact.c \
|
|
|
|
stproc.c \
|
|
|
|
subband.c \
|
|
|
|
trigtabs.c \
|
|
|
|
)
|
|
|
|
$(BUILD)/lib/mp3/src/buffers.o: CFLAGS += -include "py/misc.h" -D'MPDEC_ALLOCATOR(x)=m_malloc(x,0)' -D'MPDEC_FREE(x)=m_free(x)'
|
|
|
|
endif
|
2020-04-15 16:01:24 -04:00
|
|
|
ifeq ($(CIRCUITPY_RGBMATRIX),1)
|
2020-10-10 15:30:37 -04:00
|
|
|
SRC_MOD += $(addprefix lib/protomatter/src/, \
|
2020-03-10 14:12:01 -04:00
|
|
|
core.c \
|
|
|
|
)
|
2020-10-10 15:30:37 -04:00
|
|
|
$(BUILD)/lib/protomatter/src/core.o: CFLAGS += -include "shared-module/rgbmatrix/allocator.h" -DCIRCUITPY -Wno-missing-braces
|
2020-03-10 14:12:01 -04:00
|
|
|
endif
|
2019-02-15 18:55:10 -05:00
|
|
|
|
2019-08-16 21:34:00 -04:00
|
|
|
# All possible sources are listed here, and are filtered by SRC_PATTERNS.
|
|
|
|
SRC_SHARED_MODULE_INTERNAL = \
|
|
|
|
$(filter $(SRC_PATTERNS), \
|
|
|
|
displayio/display_core.c \
|
|
|
|
)
|
|
|
|
|
2020-06-26 17:23:20 -04:00
|
|
|
SRC_COMMON_HAL_INTERNAL = \
|
|
|
|
$(filter $(SRC_PATTERNS), \
|
|
|
|
_bleio/ \
|
|
|
|
)
|
|
|
|
|
2019-02-15 18:55:10 -05:00
|
|
|
ifeq ($(INTERNAL_LIBM),1)
|
|
|
|
SRC_LIBM = \
|
|
|
|
$(addprefix lib/,\
|
|
|
|
libm/math.c \
|
|
|
|
libm/roundf.c \
|
|
|
|
libm/fmodf.c \
|
|
|
|
libm/nearbyintf.c \
|
|
|
|
libm/ef_sqrt.c \
|
|
|
|
libm/kf_rem_pio2.c \
|
|
|
|
libm/kf_sin.c \
|
|
|
|
libm/kf_cos.c \
|
|
|
|
libm/kf_tan.c \
|
|
|
|
libm/ef_rem_pio2.c \
|
|
|
|
libm/sf_sin.c \
|
|
|
|
libm/sf_cos.c \
|
|
|
|
libm/sf_tan.c \
|
|
|
|
libm/sf_frexp.c \
|
|
|
|
libm/sf_modf.c \
|
|
|
|
libm/sf_ldexp.c \
|
|
|
|
libm/asinfacosf.c \
|
|
|
|
libm/atanf.c \
|
|
|
|
libm/atan2f.c \
|
|
|
|
)
|
2020-03-17 10:33:03 -04:00
|
|
|
ifeq ($(CIRCUITPY_ULAB),1)
|
2020-02-04 11:24:37 -05:00
|
|
|
SRC_LIBM += \
|
|
|
|
$(addprefix lib/,\
|
|
|
|
libm/acoshf.c \
|
|
|
|
libm/asinhf.c \
|
|
|
|
libm/atanhf.c \
|
|
|
|
libm/erf_lgamma.c \
|
|
|
|
libm/log1pf.c \
|
|
|
|
libm/sf_erf.c \
|
|
|
|
libm/wf_lgamma.c \
|
|
|
|
libm/wf_tgamma.c \
|
|
|
|
)
|
|
|
|
endif
|
2019-02-15 18:55:10 -05:00
|
|
|
endif
|
2019-05-24 15:32:24 -04:00
|
|
|
|
2021-04-22 20:55:39 -04:00
|
|
|
SRC_CIRCUITPY_COMMON = \
|
|
|
|
lib/libc/string0.c \
|
|
|
|
lib/mp-readline/readline.c \
|
|
|
|
lib/oofatfs/ff.c \
|
|
|
|
lib/oofatfs/ffunicode.c \
|
|
|
|
lib/timeutils/timeutils.c \
|
|
|
|
lib/utils/buffer_helper.c \
|
|
|
|
lib/utils/context_manager_helpers.c \
|
|
|
|
lib/utils/interrupt_char.c \
|
|
|
|
lib/utils/pyexec.c \
|
|
|
|
lib/utils/stdout_helpers.c \
|
|
|
|
lib/utils/sys_stdio_mphal.c
|
|
|
|
|
2021-08-03 09:42:53 -04:00
|
|
|
ifeq ($(CIRCUITPY_QRIO),1)
|
|
|
|
SRC_CIRCUITPY_COMMON += lib/quirc/lib/decode.c lib/quirc/lib/identify.c lib/quirc/lib/quirc.c lib/quirc/lib/version_db.c
|
|
|
|
$(BUILD)/lib/quirc/lib/%.o: CFLAGS += -Wno-shadow -Wno-sign-compare -include shared-module/qrio/quirc_alloc.h
|
|
|
|
endif
|
|
|
|
|
2019-12-10 17:57:17 -05:00
|
|
|
ifdef LD_TEMPLATE_FILE
|
|
|
|
# Generate a linker script (.ld file) from a template, for those builds that use it.
|
|
|
|
GENERATED_LD_FILE = $(BUILD)/$(notdir $(patsubst %.template.ld,%.ld,$(LD_TEMPLATE_FILE)))
|
|
|
|
#
|
|
|
|
# ld_defines.pp is generated from ld_defines.c. See py/mkrules.mk.
|
|
|
|
# Run gen_ld_files.py over ALL *.template.ld files, not just LD_TEMPLATE_FILE,
|
|
|
|
# because it may include other template files.
|
|
|
|
$(GENERATED_LD_FILE): $(BUILD)/ld_defines.pp boards/*.template.ld
|
|
|
|
$(STEPECHO) "GEN $@"
|
|
|
|
$(Q)$(PYTHON3) $(TOP)/tools/gen_ld_files.py --defines $< --out_dir $(BUILD) boards/*.template.ld
|
|
|
|
endif
|
|
|
|
|
2019-05-24 15:32:24 -04:00
|
|
|
.PHONY: check-release-needs-clean-build
|
|
|
|
|
|
|
|
check-release-needs-clean-build:
|
|
|
|
@echo "RELEASE_NEEDS_CLEAN_BUILD = $(RELEASE_NEEDS_CLEAN_BUILD)"
|