1#!/usr/bin/env bash 2# Copyright 2023 Nordic Semiconductor ASA 3# SPDX-License-Identifier: Apache-2.0 4 5#set -x #uncomment this line for debugging 6set -ue 7 8: "${ZEPHYR_BASE:?ZEPHYR_BASE must be set to point to the zephyr root directory}" 9 10source ${ZEPHYR_BASE}/tests/bsim/compile.source 11 12if [ "${BOARD_TS}" == "nrf5340bsim_nrf5340_cpuapp" ]; then 13 app=samples/bluetooth/bap_unicast_server sysbuild=1 compile 14 app=tests/bsim/bluetooth/audio_samples/bap_unicast_client \ 15 sample=${ZEPHYR_BASE}/samples/bluetooth/bap_unicast_client \ 16 conf_file=${sample}/prj.conf \ 17 conf_overlay=${sample}/boards/nrf5340_audio_dk_nrf5340_cpuapp.conf \ 18 exe_name=bs_${BOARD_TS}_${app}_prj_conf sysbuild=1 compile 19else 20 app=samples/bluetooth/bap_unicast_server conf_overlay=overlay-bt_ll_sw_split.conf \ 21 exe_name=bs_${BOARD_TS}_${app}_prj_conf sysbuild=1 compile 22 app=tests/bsim/bluetooth/audio_samples/bap_unicast_client \ 23 sample=${ZEPHYR_BASE}/samples/bluetooth/bap_unicast_client \ 24 conf_file=${sample}/prj.conf \ 25 conf_overlay=${sample}/overlay-bt_ll_sw_split.conf \ 26 exe_name=bs_${BOARD_TS}_${app}_prj_conf sysbuild=1 compile 27fi 28 29wait_for_background_jobs 30