Skip to content

Commit 03c641a

Browse files
committed
add DISABLED_MODULES mechanism for zephyr boards. disable aesio for norf7002dk
1 parent a5cbf06 commit 03c641a

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

ports/zephyr-cp/boards/nordic/nrf7002dk/autogen_board_info.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ _pixelmap = false
1010
_stage = false
1111
adafruit_bus_device = false
1212
adafruit_pixelbuf = false
13-
aesio = true
13+
aesio = false
1414
alarm = false
1515
analogbufio = false
1616
analogio = false

ports/zephyr-cp/boards/nordic/nrf7002dk/circuitpython.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ CIRCUITPY_BUILD_EXTENSIONS = ["elf"]
22
USB_VID=0x239A
33
USB_PID=0x8168
44
BLOBS=["nrf_wifi"]
5+
DISABLED_MODULES=["aesio"]

ports/zephyr-cp/cptools/build_circuitpython.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,8 @@ async def build_circuitpython():
405405
circuitpython_flags.append(f"-DCIRCUITPY_CREATION_ID=0x{creation_id:08x}")
406406

407407
enabled_modules, module_reasons = determine_enabled_modules(board_info, portdir, srcdir)
408+
for m in mpconfigboard.get("DISABLED_MODULES", []):
409+
enabled_modules.discard(m)
408410

409411
web_workflow_enabled = board_info.get("wifi", False) or board_info.get("hostnetwork", False)
410412

0 commit comments

Comments
 (0)