Skip to content

Commit

Permalink
boards: use sysbuild for nrf53
Browse files Browse the repository at this point in the history
Remove custom build steps for nrf53 and rely on sysbuild instead.
  • Loading branch information
theob-pro committed May 29, 2024
1 parent f1704ee commit 6a2a45d
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions autopts/ptsprojects/boards/nrf53.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,38 +14,5 @@
#

from .nrf5x import *
from autopts.bot.common import check_call

board_type = 'nrf5340dk/nrf5340/cpuapp'


def build_and_flash(zephyr_wd, board, debugger_snr, conf_file=None, *args):
"""Build and flash Zephyr binary
:param zephyr_wd: Zephyr source path
:param board: IUT
:param debugger_snr serial number
:param conf_file: configuration file to be used
"""
logging.debug("%s: %s %s %s", build_and_flash.__name__, zephyr_wd,
board, conf_file)

tester_dir = os.path.join(zephyr_wd, 'tests', 'bluetooth', 'tester')
controller_dir = os.path.join(zephyr_wd, 'samples', 'bluetooth', 'hci_ipc')

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

bttester_overlay = 'nrf5340_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'-DOVERLAY_CONFIG=\'{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', '--',
f'-DOVERLAY_CONFIG=\'nrf5340_cpunet_iso-bt_ll_sw_split.conf;'
f'../../../tests/bluetooth/tester/nrf5340_hci_ipc_cpunet.conf\'']
check_call(cmd, cwd=controller_dir)
check_call(['west', 'flash', '--skip-rebuild', '-i', debugger_snr], cwd=controller_dir)

0 comments on commit 6a2a45d

Please sign in to comment.