From 0d3f25a71cec6a5be9feb66a29f752640cf7596b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ayt=C3=BCrk=20D=C3=BCzen?= Date: Thu, 21 Nov 2024 11:53:58 +0100 Subject: [PATCH] zephyr: boards: adapt 53/54h for sysbuild configs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- autopts/ptsprojects/boards/nrf53.py | 4 ++-- autopts/ptsprojects/boards/nrf53_appcore.py | 2 +- autopts/ptsprojects/boards/nrf53_audio.py | 2 +- autopts/ptsprojects/boards/nrf54h.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/autopts/ptsprojects/boards/nrf53.py b/autopts/ptsprojects/boards/nrf53.py index 38d0c1ba8b..c5c14ee2d5 100644 --- a/autopts/ptsprojects/boards/nrf53.py +++ b/autopts/ptsprojects/boards/nrf53.py @@ -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) diff --git a/autopts/ptsprojects/boards/nrf53_appcore.py b/autopts/ptsprojects/boards/nrf53_appcore.py index e0678617c6..e4282d7dfb 100644 --- a/autopts/ptsprojects/boards/nrf53_appcore.py +++ b/autopts/ptsprojects/boards/nrf53_appcore.py @@ -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) diff --git a/autopts/ptsprojects/boards/nrf53_audio.py b/autopts/ptsprojects/boards/nrf53_audio.py index da70f67467..989df2a6da 100644 --- a/autopts/ptsprojects/boards/nrf53_audio.py +++ b/autopts/ptsprojects/boards/nrf53_audio.py @@ -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) diff --git a/autopts/ptsprojects/boards/nrf54h.py b/autopts/ptsprojects/boards/nrf54h.py index bafcda1cb1..cc9acbc398 100644 --- a/autopts/ptsprojects/boards/nrf54h.py +++ b/autopts/ptsprojects/boards/nrf54h.py @@ -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'