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
13app=tests/bsim/bluetooth/mesh compile
14app=tests/bsim/bluetooth/mesh conf_overlay=overlay_pst.conf compile
15app=tests/bsim/bluetooth/mesh conf_overlay=overlay_gatt.conf compile
16app=tests/bsim/bluetooth/mesh conf_overlay=overlay_low_lat.conf compile
17app=tests/bsim/bluetooth/mesh conf_overlay=overlay_psa.conf compile
18app=tests/bsim/bluetooth/mesh conf_overlay=overlay_workq_sys.conf compile
19app=tests/bsim/bluetooth/mesh conf_overlay="overlay_pst.conf;overlay_psa.conf" compile
20app=tests/bsim/bluetooth/mesh conf_overlay="overlay_gatt.conf;overlay_psa.conf" compile
21app=tests/bsim/bluetooth/mesh conf_overlay="overlay_gatt.conf;overlay_workq_sys.conf" compile
22app=tests/bsim/bluetooth/mesh conf_overlay="overlay_low_lat.conf;overlay_psa.conf" compile
23app=tests/bsim/bluetooth/mesh conf_overlay="overlay_gatt.conf;overlay_low_lat.conf" compile
24app=tests/bsim/bluetooth/mesh conf_overlay="overlay_pst.conf;overlay_gatt.conf" compile
25app=tests/bsim/bluetooth/mesh \
26  conf_overlay="overlay_pst.conf;overlay_gatt.conf;overlay_psa.conf" compile
27app=tests/bsim/bluetooth/mesh \
28  conf_overlay="overlay_pst.conf;overlay_gatt.conf;overlay_workq_sys.conf" compile
29wait_for_background_jobs
30