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 897b75c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions autopts/ptsprojects/boards/nrf53.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ def build_and_flash(zephyr_wd, board, debugger_snr, conf_file=None, *args):
check_call('rm -rf build/'.split(), cwd=tester_dir)
check_call('rm -rf build/'.split(), cwd=controller_dir)

bttester_overlay = 'nrf5340_hci_ipc.conf'
bttester_overlay = 'hci_ipc.conf'

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\'']
f'../../../tests/bluetooth/tester/hci_ipc_cpunet.conf\'']
check_call(cmd, cwd=controller_dir)
check_call(['west', 'flash', '--skip-rebuild', '-i', debugger_snr], cwd=controller_dir)
4 changes: 2 additions & 2 deletions autopts/ptsprojects/boards/nrf53_appcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ def build_and_flash(zephyr_wd, board, debugger_snr, conf_file=None, *args):

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

bttester_overlay = 'nrf5340_hci_ipc.conf'
bttester_overlay = 'hci_ipc.conf'

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)
4 changes: 2 additions & 2 deletions 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 Expand Up @@ -69,7 +69,7 @@ def build_and_flash(zephyr_wd, board, debugger_snr, conf_file=None, *args):
config_dir_net = os.getenv("AUTOPTS_SOURCE_DIR_NET")
if config_dir_net is None:
net_core_configs = [f'EXTRA_CONF_FILE=\'nrf5340_cpunet_iso-bt_ll_sw_split.conf;'
f'../../../tests/bluetooth/tester/nrf5340_hci_ipc_cpunet.conf\'']
f'../../../tests/bluetooth/tester/hci_ipc_cpunet.conf\'']
else:
conf_path = os.path.join(zephyr_wd, config_dir_net, 'hci_ipc.conf')
net_core_configs = [f'EXTRA_CONF_FILE=\'{conf_path}\'']
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 897b75c

Please sign in to comment.