1#!/usr/bin/env bash
2# Copyright 2018 Oticon A/S
3# SPDX-License-Identifier: Apache-2.0
4
5# Compile all bluetooth applications needed for the split stack tests
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
11export BOARD="${BOARD:-nrf5340bsim/nrf5340/cpuapp}"
12
13source ${ZEPHYR_BASE}/tests/bsim/compile.source
14
15app=tests/bsim/bluetooth/ll/conn conf_file=prj_split_privacy.conf sysbuild=1  compile
16app=tests/bsim/bluetooth/ll/bis sysbuild=1 compile
17app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-acl_group.conf sysbuild=1 compile
18
19run_in_background ${ZEPHYR_BASE}/tests/bsim/bluetooth/samples/compile.sh
20run_in_background ${ZEPHYR_BASE}/tests/bsim/bluetooth/audio_samples/compile.sh
21
22wait_for_background_jobs
23