Skip to content

Commit

Permalink
zephyr: boards: adapt 53/54h for sysbuild configs
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
AyturkDuzen committed Nov 21, 2024
1 parent 0879a4e commit 0d3f25a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions autopts/ptsprojects/boards/nrf53.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ def build_and_flash(zephyr_wd, board, debugger_snr, conf_file=None, *args):
if conf_file and conf_file != 'default' and conf_file != 'prj.conf':
bttester_overlay += f';{conf_file}'

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

cmd = ['west', 'build', '-b', 'nrf5340dk/nrf5340/cpunet', '--',
cmd = ['west', 'build', '--no-sysbuild', '-b', 'nrf5340dk/nrf5340/cpunet', '--',
f'-DEXTRA_CONF_FILE=\'nrf5340_cpunet_iso-bt_ll_sw_split.conf;'
f'../../../tests/bluetooth/tester/nrf5340_hci_ipc_cpunet.conf\'']
check_call(cmd, cwd=controller_dir)
Expand Down
2 changes: 1 addition & 1 deletion autopts/ptsprojects/boards/nrf53_appcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ def build_and_flash(zephyr_wd, board, debugger_snr, conf_file=None, *args):
if conf_file and conf_file != 'default' and conf_file != 'prj.conf':
bttester_overlay += f';{conf_file}'

cmd = ['west', 'build', '-b', board, '--', f'-DEXTRA_CONF_FILE=\'{bttester_overlay}\'']
cmd = ['west', 'build', '--no-sysbuild', '-b', board, '--', f'-DEXTRA_CONF_FILE=\'{bttester_overlay}\'']
check_call(cmd, cwd=tester_dir)
check_call(['west', 'flash', '--skip-rebuild', '--recover', '-i', debugger_snr], cwd=tester_dir)
2 changes: 1 addition & 1 deletion autopts/ptsprojects/boards/nrf53_audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def build_and_flash_core(zephyr_wd, build_dir, board, debugger_snr, configs, rec
overlay = '-- -DCMAKE_C_FLAGS="-Werror"'
for conf in configs:
overlay += f' -D{conf}'
cmd = ['west', 'build', '-b', board]
cmd = ['west', 'build', '--no-sysbuild', '-b', board]
cmd.extend(overlay.split())
check_call(cmd, cwd=build_dir)

Expand Down
2 changes: 1 addition & 1 deletion autopts/ptsprojects/boards/nrf54h.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def build_and_flash(zephyr_wd, board, debugger_snr, conf_file=None, *args):

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

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

0 comments on commit 0d3f25a

Please sign in to comment.