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 10 11 12: "${BSIM_COMPONENTS_PATH:?BSIM_COMPONENTS_PATH must be defined}" 13: "${ZEPHYR_BASE:?ZEPHYR_BASE must be set to point to the zephyr root\ 14 directory}" 15 16WORK_DIR="${WORK_DIR:-${ZEPHYR_BASE}/bsim_out}" 17 18BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}" 19 20mkdir -p ${WORK_DIR} 21 22source ${ZEPHYR_BASE}/tests/bsim/compile.source 23 24app=tests/bsim/bluetooth/audio compile 25 26wait_for_background_jobs 27