f0a6205831
And add an again an extra file for the top level. (It was removed when the CI workflows for network and BT were split, but the common script is still usefull). Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
27 lines
757 B
Bash
Executable file
27 lines
757 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copyright 2023 Nordic Semiconductor ASA
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# Compile all the applications needed by all 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}
|
|
|
|
source ${ZEPHYR_BASE}/tests/bsim/sh_common.source
|
|
|
|
run_in_background ${ZEPHYR_BASE}/tests/bsim/bluetooth/compile.sh
|
|
run_in_background ${ZEPHYR_BASE}/tests/bsim/net/compile.sh
|
|
|
|
wait_for_background_jobs
|