Skip to content

Commit d021d9a

Browse files
committed
Move build extensions to board directories
- define CIRCUITPY_BUILD_EXTENSIONS to predefined values - set CIRCUITPY_BUILD_EXTENSIONS in port and board config - reuse the support matrix "get_settings_from_makefile" to get it - move the existing port and board specific values - remove the C3 specific board values because it's not the default - update build_release_files.py to use get_settings_from_makefile
1 parent 562cbb1 commit d021d9a

File tree

30 files changed

+91
-74
lines changed

30 files changed

+91
-74
lines changed

docs/shared_bindings_matrix.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,22 +272,31 @@ def support_matrix(arg):
272272
board_modules.append(base[module]['name'])
273273
board_modules.sort()
274274

275+
if "CIRCUITPY_BUILD_EXTENSIONS" in settings:
276+
board_extensions = settings["CIRCUITPY_BUILD_EXTENSIONS"]
277+
else:
278+
raise "Board extensions undefined."
279+
275280
frozen_modules = []
276281
if "FROZEN_MPY_DIRS" in settings:
277282
frozen_modules = frozen_modules_from_dirs(settings["FROZEN_MPY_DIRS"])
278283
if frozen_modules:
279284
frozen_modules.sort()
280285

281286
# generate alias boards too
282-
board_matrix = [(board_name, (board_modules, frozen_modules))]
287+
board_matrix = [(
288+
board_name, (board_modules, frozen_modules, board_extensions)
289+
)]
283290
if entry.name in aliases_by_board:
284291
for alias in aliases_by_board[entry.name]:
285292
if use_branded_name:
286293
if alias in aliases_brand_names:
287294
alias = aliases_brand_names[alias]
288295
else:
289296
alias = alias.replace("_"," ").title()
290-
board_matrix.append( (alias, (board_modules, frozen_modules)) )
297+
board_matrix.append((
298+
alias, (board_modules, frozen_modules, board_extensions),
299+
))
291300

292301
return board_matrix # this is now a list of (board,modules)
293302

ports/atmel-samd/boards/arduino_mkr1300/mpconfigboard.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ USB_MANUFACTURER = "Arduino"
66
CHIP_VARIANT = SAMD21G18A
77
CHIP_FAMILY = samd21
88

9+
CIRCUITPY_BUILD_EXTENSIONS = BIN_UF2
10+
911
INTERNAL_FLASH_FILESYSTEM = 1
1012
LONGINT_IMPL = NONE
1113
CIRCUITPY_FULL_BUILD = 0

ports/atmel-samd/boards/arduino_mkrzero/mpconfigboard.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ USB_MANUFACTURER = "Arduino"
66
CHIP_VARIANT = SAMD21G18A
77
CHIP_FAMILY = samd21
88

9+
CIRCUITPY_BUILD_EXTENSIONS = BIN_UF2
10+
911
INTERNAL_FLASH_FILESYSTEM = 1
1012
LONGINT_IMPL = NONE
1113
CIRCUITPY_FULL_BUILD = 0

ports/atmel-samd/boards/arduino_nano_33_iot/mpconfigboard.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ USB_MANUFACTURER = "Arduino"
66
CHIP_VARIANT = SAMD21G18A
77
CHIP_FAMILY = samd21
88

9+
CIRCUITPY_BUILD_EXTENSIONS = BIN_UF2
10+
911
INTERNAL_FLASH_FILESYSTEM = 1
1012
LONGINT_IMPL = NONE
1113
CIRCUITPY_FULL_BUILD = 0

ports/atmel-samd/boards/arduino_zero/mpconfigboard.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ USB_MANUFACTURER = "Arduino"
66
CHIP_VARIANT = SAMD21G18A
77
CHIP_FAMILY = samd21
88

9+
CIRCUITPY_BUILD_EXTENSIONS = BIN_UF2
10+
911
INTERNAL_FLASH_FILESYSTEM = 1
1012
LONGINT_IMPL = NONE
1113
CIRCUITPY_FULL_BUILD = 0

ports/atmel-samd/boards/feather_m0_adalogger/mpconfigboard.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ USB_MANUFACTURER = "Adafruit Industries LLC"
66
CHIP_VARIANT = SAMD21G18A
77
CHIP_FAMILY = samd21
88

9+
CIRCUITPY_BUILD_EXTENSIONS = BIN_UF2
10+
911
INTERNAL_FLASH_FILESYSTEM = 1
1012
LONGINT_IMPL = NONE
1113
CIRCUITPY_FULL_BUILD = 0

ports/atmel-samd/boards/feather_m0_basic/mpconfigboard.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ USB_MANUFACTURER = "Adafruit Industries LLC"
66
CHIP_VARIANT = SAMD21G18A
77
CHIP_FAMILY = samd21
88

9+
CIRCUITPY_BUILD_EXTENSIONS = BIN_UF2
10+
911
INTERNAL_FLASH_FILESYSTEM = 1
1012
LONGINT_IMPL = NONE
1113
CIRCUITPY_FULL_BUILD = 0

ports/atmel-samd/boards/feather_m0_rfm69/mpconfigboard.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ USB_MANUFACTURER = "Adafruit Industries LLC"
66
CHIP_VARIANT = SAMD21G18A
77
CHIP_FAMILY = samd21
88

9+
CIRCUITPY_BUILD_EXTENSIONS = BIN_UF2
10+
911
INTERNAL_FLASH_FILESYSTEM = 1
1012
LONGINT_IMPL = NONE
1113
CIRCUITPY_FULL_BUILD = 0

ports/atmel-samd/boards/feather_m0_rfm9x/mpconfigboard.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ USB_MANUFACTURER = "Adafruit Industries LLC"
66
CHIP_VARIANT = SAMD21G18A
77
CHIP_FAMILY = samd21
88

9+
CIRCUITPY_BUILD_EXTENSIONS = BIN_UF2
10+
911
INTERNAL_FLASH_FILESYSTEM = 1
1012
LONGINT_IMPL = NONE
1113
CIRCUITPY_FULL_BUILD = 0

ports/atmel-samd/boards/uchip/mpconfigboard.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ USB_MANUFACTURER = "Itaca Innovation"
66
CHIP_VARIANT = SAMD21E18A
77
CHIP_FAMILY = samd21
88

9+
CIRCUITPY_BUILD_EXTENSIONS = BIN_UF2
10+
911
INTERNAL_FLASH_FILESYSTEM = 1
1012
LONGINT_IMPL = NONE
1113
CIRCUITPY_FULL_BUILD = 0

0 commit comments

Comments
 (0)