1#!/usr/bin/env bash 2# Copyright 2023 Nordic Semiconductor ASA 3# SPDX-License-Identifier: Apache-2.0 4 5# Compile all the applications needed by the bsim tests in these subfolders 6 7#set -x #uncomment this line for debugging 8set -ue 9: "${ZEPHYR_BASE:?ZEPHYR_BASE must be set to point to the zephyr root directory}" 10 11source ${ZEPHYR_BASE}/tests/bsim/compile.source 12 13if [ "${BOARD_TS}" == "nrf5340bsim_nrf5340_cpuapp" ]; then 14 app=tests/bsim/bluetooth/audio exe_name=bs_${BOARD_TS}_${app}_prj_conf \ 15 sysbuild=1 compile 16else 17 app=tests/bsim/bluetooth/audio conf_overlay=overlay-bt_ll_sw_split.conf \ 18 exe_name=bs_${BOARD_TS}_${app}_prj_conf \ 19 sysbuild=1 compile 20fi 21 22wait_for_background_jobs 23