|  | #!/usr/bin/env bash | 
|  | # Copyright 2018 Oticon A/S | 
|  | # SPDX-License-Identifier: Apache-2.0 | 
|  |  | 
|  | # Compile all bluetooth applications needed for the split stack tests | 
|  |  | 
|  | #set -x #uncomment this line for debugging | 
|  | set -ue | 
|  | : "${ZEPHYR_BASE:?ZEPHYR_BASE must be set to point to the zephyr root directory}" | 
|  |  | 
|  | export BOARD="${BOARD:-nrf5340bsim/nrf5340/cpuapp}" | 
|  |  | 
|  | source ${ZEPHYR_BASE}/tests/bsim/compile.source | 
|  |  | 
|  | ${ZEPHYR_BASE}/tests/bsim/bluetooth/host/compile.sh | 
|  | ${ZEPHYR_BASE}/tests/bsim/bluetooth/tester/compile.sh | 
|  |  | 
|  | app=tests/bsim/bluetooth/ll/conn conf_file=prj_split_privacy.conf sysbuild=1  compile | 
|  | app=tests/bsim/bluetooth/ll/throughput sysbuild=1 compile | 
|  | app=tests/bsim/bluetooth/ll/throughput conf_overlay=overlay-no_phy_update.conf sysbuild=1 compile | 
|  | app=tests/bsim/bluetooth/ll/multiple_id sysbuild=1 compile | 
|  | app=tests/bsim/bluetooth/ll/bis conf_overlay=overlay-sequential.conf sysbuild=1 compile | 
|  | app=tests/bsim/bluetooth/ll/bis conf_overlay=overlay-interleaved.conf sysbuild=1 compile | 
|  | app=tests/bsim/bluetooth/ll/bis conf_overlay=overlay-ticker_expire_info.conf sysbuild=1 compile | 
|  | app=tests/bsim/bluetooth/ll/cis conf_overlay=overlay-acl_group.conf sysbuild=1 compile | 
|  |  | 
|  | run_in_background ${ZEPHYR_BASE}/tests/bsim/bluetooth/samples/compile.sh | 
|  | run_in_background ${ZEPHYR_BASE}/tests/bsim/bluetooth/audio/compile.sh | 
|  | run_in_background ${ZEPHYR_BASE}/tests/bsim/bluetooth/audio_samples/compile.sh | 
|  |  | 
|  | wait_for_background_jobs |