2023-02-22 23:52:15 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# Copyright 2018 Oticon A/S
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2023-04-19 18:32:56 +08:00
|
|
|
# Compile all the applications needed by the Bluetooth bsim tests
|
2023-02-22 23:52:15 +08:00
|
|
|
|
|
|
|
#set -x #uncomment this line for debugging
|
|
|
|
set -ue
|
2024-03-21 22:12:13 +08:00
|
|
|
: "${ZEPHYR_BASE:?ZEPHYR_BASE must be set to point to the zephyr root directory}"
|
2023-02-22 23:52:15 +08:00
|
|
|
|
2023-03-20 18:08:34 +08:00
|
|
|
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
|
2023-02-22 23:52:15 +08:00
|
|
|
|
2023-09-30 16:37:11 +08:00
|
|
|
# Note: We do not parallelize the call into the build of the host, ll and mesh images as those
|
|
|
|
# are already building many images in parallel in themselves, and otherwise we would be
|
|
|
|
# launching too many parallel builds which can lead to a too high system load.
|
|
|
|
# On the other hand the audio compile script, only builds one image. So we parallelize it with
|
|
|
|
# the rest to save a couple of seconds.
|
2023-03-17 22:29:24 +08:00
|
|
|
run_in_background ${ZEPHYR_BASE}/tests/bsim/bluetooth/audio/compile.sh
|
2023-10-30 23:01:24 +08:00
|
|
|
${ZEPHYR_BASE}/tests/bsim/bluetooth/audio_samples/compile.sh
|
2023-09-30 16:37:11 +08:00
|
|
|
${ZEPHYR_BASE}/tests/bsim/bluetooth/host/compile.sh
|
|
|
|
${ZEPHYR_BASE}/tests/bsim/bluetooth/ll/compile.sh
|
|
|
|
${ZEPHYR_BASE}/tests/bsim/bluetooth/mesh/compile.sh
|
2024-03-15 21:05:11 +08:00
|
|
|
${ZEPHYR_BASE}/tests/bsim/bluetooth/samples/compile.sh
|
2024-01-05 18:24:18 +08:00
|
|
|
if [ ${BOARD} == "nrf52_bsim" ]; then
|
|
|
|
${ZEPHYR_BASE}/tests/bsim/bluetooth/hci_uart/compile.sh
|
|
|
|
fi
|
2023-03-09 20:23:56 +08:00
|
|
|
|
|
|
|
wait_for_background_jobs
|