zephyr/tests/bluetooth/bsim/compile.sh

27 lines
763 B
Bash
Executable File

#!/usr/bin/env bash
# Copyright 2018 Oticon A/S
# SPDX-License-Identifier: Apache-2.0
# Compile all the applications needed by the bsim tests
#set -x #uncomment this line for debugging
set -ue
: "${BSIM_OUT_PATH:?BSIM_OUT_PATH must be defined}"
: "${BSIM_COMPONENTS_PATH:?BSIM_COMPONENTS_PATH must be defined}"
: "${ZEPHYR_BASE:?ZEPHYR_BASE must be set to point to the zephyr root\
directory}"
WORK_DIR="${WORK_DIR:-${ZEPHYR_BASE}/bsim_out}"
BOARD="${BOARD:-nrf52_bsim}"
BOARD_ROOT="${BOARD_ROOT:-${ZEPHYR_BASE}}"
mkdir -p ${WORK_DIR}
${ZEPHYR_BASE}/tests/bluetooth/bsim/audio/compile.sh &
${ZEPHYR_BASE}/tests/bluetooth/bsim/host/compile.sh &
${ZEPHYR_BASE}/tests/bluetooth/bsim/ll/compile.sh &
${ZEPHYR_BASE}/tests/bluetooth/bsim/mesh/compile.sh &
wait