Skip to content

Commit 3abe916

Browse files
committed
Fix the builds
1 parent e6d863a commit 3abe916

4 files changed

Lines changed: 11 additions & 2 deletions

File tree

ports/zephyr-cp/boards/nrf7002dk_nrf5340_cpuapp.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ CONFIG_BT_CENTRAL=y
1414
CONFIG_BT_BROADCASTER=y
1515
CONFIG_BT_OBSERVER=y
1616
CONFIG_BT_EXT_ADV=y
17+
18+
CONFIG_LOG=n
19+
CONFIG_ASSERT=n
20+
CONFIG_TEST_RANDOM_GENERATOR=y

ports/zephyr-cp/boards/nxp/frdm_rw612/autogen_board_info.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ gifio = false
5151
gnss = false
5252
hashlib = false
5353
i2cdisplaybus = true # Zephyr board has busio
54+
i2cioexpander = false
5455
i2ctarget = false
5556
imagecapture = false
5657
ipaddress = false

ports/zephyr-cp/boards/renesas/da14695_dk_usb/autogen_board_info.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ gifio = false
5151
gnss = false
5252
hashlib = false
5353
i2cdisplaybus = true # Zephyr board has busio
54+
i2cioexpander = false
5455
i2ctarget = false
5556
imagecapture = false
5657
ipaddress = false

ports/zephyr-cp/cptools/zephyr2cp.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,15 +588,18 @@ def zephyr_dts_to_cp_board(board_id, portdir, builddir, zephyrbuilddir): # noqa
588588
if len(all_ioports) > 1:
589589
a, b = all_ioports[:2]
590590
i = 0
591-
while a[i] == b[i]:
591+
max_i = min(len(a), len(b))
592+
while i < max_i and a[i] == b[i]:
592593
i += 1
593594
shared_prefix = a[:i]
594595
for ioport in ioports:
595596
if not ioport.startswith(shared_prefix):
596597
shared_prefix = ""
597598
break
598-
else:
599+
elif all_ioports:
599600
shared_prefix = all_ioports[0]
601+
else:
602+
shared_prefix = ""
600603

601604
pin_defs = []
602605
pin_declarations = ["#pragma once"]

0 commit comments

Comments
 (0)