Skip to content

Commit 897b75c

Browse files
committed
zephyr: boards: adapt 53/54h for sysbuild configs
Add sysbuild option for 54h20 Pass --no-sysbuild for 5340 same as old behaviour rename hci_ipc configuration names to be used by both multicore platforms. Signed-off-by: Aytürk Düzen <[email protected]>
1 parent 0879a4e commit 897b75c

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

autopts/ptsprojects/boards/nrf53.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ def build_and_flash(zephyr_wd, board, debugger_snr, conf_file=None, *args):
3535
check_call('rm -rf build/'.split(), cwd=tester_dir)
3636
check_call('rm -rf build/'.split(), cwd=controller_dir)
3737

38-
bttester_overlay = 'nrf5340_hci_ipc.conf'
38+
bttester_overlay = 'hci_ipc.conf'
3939

4040
if conf_file and conf_file != 'default' and conf_file != 'prj.conf':
4141
bttester_overlay += f';{conf_file}'
4242

43-
cmd = ['west', 'build', '-b', board, '--', f'-DEXTRA_CONF_FILE=\'{bttester_overlay}\'']
43+
cmd = ['west', 'build', '--no-sysbuild', '-b', board, '--', f'-DEXTRA_CONF_FILE=\'{bttester_overlay}\'']
4444
check_call(cmd, cwd=tester_dir)
4545
check_call(['west', 'flash', '--skip-rebuild', '--recover', '-i', debugger_snr], cwd=tester_dir)
4646

47-
cmd = ['west', 'build', '-b', 'nrf5340dk/nrf5340/cpunet', '--',
47+
cmd = ['west', 'build', '--no-sysbuild', '-b', 'nrf5340dk/nrf5340/cpunet', '--',
4848
f'-DEXTRA_CONF_FILE=\'nrf5340_cpunet_iso-bt_ll_sw_split.conf;'
49-
f'../../../tests/bluetooth/tester/nrf5340_hci_ipc_cpunet.conf\'']
49+
f'../../../tests/bluetooth/tester/hci_ipc_cpunet.conf\'']
5050
check_call(cmd, cwd=controller_dir)
5151
check_call(['west', 'flash', '--skip-rebuild', '-i', debugger_snr], cwd=controller_dir)

autopts/ptsprojects/boards/nrf53_appcore.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ def build_and_flash(zephyr_wd, board, debugger_snr, conf_file=None, *args):
3333

3434
check_call('rm -rf build/'.split(), cwd=tester_dir)
3535

36-
bttester_overlay = 'nrf5340_hci_ipc.conf'
36+
bttester_overlay = 'hci_ipc.conf'
3737

3838
if conf_file and conf_file != 'default' and conf_file != 'prj.conf':
3939
bttester_overlay += f';{conf_file}'
4040

41-
cmd = ['west', 'build', '-b', board, '--', f'-DEXTRA_CONF_FILE=\'{bttester_overlay}\'']
41+
cmd = ['west', 'build', '--no-sysbuild', '-b', board, '--', f'-DEXTRA_CONF_FILE=\'{bttester_overlay}\'']
4242
check_call(cmd, cwd=tester_dir)
4343
check_call(['west', 'flash', '--skip-rebuild', '--recover', '-i', debugger_snr], cwd=tester_dir)

autopts/ptsprojects/boards/nrf53_audio.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def build_and_flash_core(zephyr_wd, build_dir, board, debugger_snr, configs, rec
2828
overlay = '-- -DCMAKE_C_FLAGS="-Werror"'
2929
for conf in configs:
3030
overlay += f' -D{conf}'
31-
cmd = ['west', 'build', '-b', board]
31+
cmd = ['west', 'build', '--no-sysbuild', '-b', board]
3232
cmd.extend(overlay.split())
3333
check_call(cmd, cwd=build_dir)
3434

@@ -69,7 +69,7 @@ def build_and_flash(zephyr_wd, board, debugger_snr, conf_file=None, *args):
6969
config_dir_net = os.getenv("AUTOPTS_SOURCE_DIR_NET")
7070
if config_dir_net is None:
7171
net_core_configs = [f'EXTRA_CONF_FILE=\'nrf5340_cpunet_iso-bt_ll_sw_split.conf;'
72-
f'../../../tests/bluetooth/tester/nrf5340_hci_ipc_cpunet.conf\'']
72+
f'../../../tests/bluetooth/tester/hci_ipc_cpunet.conf\'']
7373
else:
7474
conf_path = os.path.join(zephyr_wd, config_dir_net, 'hci_ipc.conf')
7575
net_core_configs = [f'EXTRA_CONF_FILE=\'{conf_path}\'']

autopts/ptsprojects/boards/nrf54h.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def build_and_flash(zephyr_wd, board, debugger_snr, conf_file=None, *args):
4444

4545
check_call('rm -rf build/'.split(), cwd=tester_dir)
4646

47-
cmd = ['west', 'build', '-p', 'auto', '-b', board]
47+
cmd = ['west', 'build', '--sysbuild', '-p', 'auto', '-b', board]
4848
if conf_file and conf_file not in ['default', 'prj.conf']:
4949
if 'audio' in conf_file:
5050
conf_file += ';overlay-le-audio-ctlr.conf'

0 commit comments

Comments
 (0)