Paul Sokolovsky | 1f10d8b | 2022-10-08 14:27:30 +0300 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # Copyright (c) 2021-2022 BUGSENG srl. All rights reserved. |
| 4 | # Copyright (c) 2022 Arm Limited. All rights reserved. |
| 5 | # |
| 6 | # SPDX-License-Identifier: BSD-3-Clause |
| 7 | # |
| 8 | # Common code to setup analysis environment. |
| 9 | |
| 10 | # Absolute path of the ECLAIR bin directory. |
| 11 | ECLAIR_BIN_DIR="/opt/bugseng/eclair/bin" |
| 12 | |
| 13 | # Automatically export vars |
| 14 | set -a |
| 15 | source ${WORKSPACE}/tf-a-ci-scripts/tf_config/${TF_CONFIG} |
| 16 | set +a |
| 17 | |
Paul Sokolovsky | 71f3a9b | 2022-10-08 22:33:42 +0300 | [diff] [blame] | 18 | if [ "${TRUSTED_BOARD_BOOT}" = 1 -o "${MEASURED_BOOT}" = 1 ]; then |
| 19 | # These configurations require mbedTLS component |
| 20 | wget -q ${MBEDTLS_URL} |
| 21 | tar xaf $(basename ${MBEDTLS_URL}) |
| 22 | rm $(basename ${MBEDTLS_URL}) |
| 23 | pwd; ls -l |
| 24 | export MBEDTLS_DIR="${PWD}/$(ls -1d mbedtls-*)" |
| 25 | fi |
| 26 | |
Paul Sokolovsky | 1f10d8b | 2022-10-08 14:27:30 +0300 | [diff] [blame] | 27 | export CC_ALIASES="${CROSS_COMPILE}gcc" |
| 28 | export CXX_ALIASES="${CROSS_COMPILE}g++" |
| 29 | export LD_ALIASES="${CROSS_COMPILE}ld" |
| 30 | export AR_ALIASES="${CROSS_COMPILE}ar" |
| 31 | export AS_ALIASES="${CROSS_COMPILE}as" |
| 32 | export FILEMANIP_ALIASES="cp mv ${CROSS_COMPILE}objcopy" |
| 33 | |
| 34 | which ${CROSS_COMPILE}gcc |
| 35 | ${CROSS_COMPILE}gcc -v |
| 36 | |
| 37 | # Identifies the particular build of the project. |
| 38 | export ECLAIR_PROJECT_NAME="TF_A_${TF_CONFIG}" |
| 39 | # All paths mentioned in ECLAIR reports that are below this directory |
| 40 | # will be presented as relative to ECLAIR_PROJECT_ROOT. |
| 41 | export ECLAIR_PROJECT_ROOT="${WORKSPACE}/trusted-firmware-a" |