|
1 |
| -# Select the board to build for. |
2 |
| -BOARD?=raspberrypi_pi4b |
3 |
| - |
4 |
| -ifeq ($(BOARD),) |
5 |
| - $(error You must provide a BOARD parameter) |
6 |
| -else |
7 |
| - ifeq ($(wildcard boards/$(BOARD)/.),) |
8 |
| - $(error Invalid BOARD "$(BOARD)" specified) |
9 |
| - endif |
10 |
| -endif |
11 |
| - |
12 |
| -# If the build directory is not given, make it reflect the board name. |
13 |
| -BUILD ?= build-$(BOARD) |
14 |
| - |
15 |
| -include ../../py/mkenv.mk |
16 |
| -# Board-specific |
17 |
| -include boards/$(BOARD)/mpconfigboard.mk |
18 |
| -# Port-specific |
19 |
| -include mpconfigport.mk |
20 |
| -# CircuitPython-specific |
21 |
| -include $(TOP)/py/circuitpy_mpconfig.mk |
22 |
| - |
23 |
| -# qstr definitions (must come before including py.mk) |
24 |
| -QSTR_DEFS = qstrdefsport.h |
25 |
| - |
26 |
| -# include py core make definitions |
27 |
| -include $(TOP)/py/py.mk |
28 |
| - |
29 |
| -include $(TOP)/supervisor/supervisor.mk |
30 |
| - |
31 |
| -# Include make rules and variables common across CircuitPython builds. |
32 |
| -include $(TOP)/py/circuitpy_defns.mk |
| 1 | +# This file is part of the MicroPython project, http://micropython.org/ |
| 2 | +# |
| 3 | +# The MIT License (MIT) |
| 4 | +# |
| 5 | +# SPDX-FileCopyrightText: Copyright (c) 2020 Scott Shawcroft for Adafruit Industries |
| 6 | +# |
| 7 | +# Permission is hereby granted, free of charge, to any person obtaining a copy |
| 8 | +# of this software and associated documentation files (the "Software"), to deal |
| 9 | +# in the Software without restriction, including without limitation the rights |
| 10 | +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 11 | +# copies of the Software, and to permit persons to whom the Software is |
| 12 | +# furnished to do so, subject to the following conditions: |
| 13 | +# |
| 14 | +# The above copyright notice and this permission notice shall be included in |
| 15 | +# all copies or substantial portions of the Software. |
| 16 | +# |
| 17 | +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 18 | +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 19 | +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 20 | +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 21 | +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 22 | +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 23 | +# THE SOFTWARE. |
| 24 | + |
| 25 | +include ../../py/circuitpy_mkenv.mk |
33 | 26 |
|
34 | 27 | ifeq ($(CHIP_VARIANT), "bcm2711")
|
35 | 28 | CFLAGS += -mcpu=cortex-a72 -DBCM_VERSION=2711
|
|
0 commit comments