Paul Sokolovsky | 3486b4e | 2022-09-06 13:33:57 +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 | set -ex |
| 9 | |
Paul Sokolovsky | 95040c8 | 2023-09-14 11:06:42 +0300 | [diff] [blame] | 10 | . tf-a-ci-scripts/eclair/analyze_common2.sh |
| 11 | |
Paul Sokolovsky | b3f7399 | 2022-10-05 18:27:22 +0300 | [diff] [blame] | 12 | env |
| 13 | |
Paul Sokolovsky | 3486b4e | 2022-09-06 13:33:57 +0300 | [diff] [blame] | 14 | cd ${WORKSPACE}/trusted-firmware-a |
Paul Sokolovsky | 2507db6 | 2023-09-15 11:39:55 +0300 | [diff] [blame] | 15 | # "make clean" seems to may leave some traces from previous builds, so start |
| 16 | # with removing the build dir. Still issue make clean, as it's best practice |
| 17 | # (for ECLAIR processing too). |
| 18 | rm -rf build/ |
Paul Sokolovsky | 242840a | 2022-10-27 21:10:09 +0300 | [diff] [blame] | 19 | make clean DEBUG=${DEBUG} |
Paul Sokolovsky | 31d237b | 2022-10-25 00:54:03 +0300 | [diff] [blame] | 20 | |
| 21 | # Replace '$(PWD)' with the *current* $PWD. |
| 22 | MAKE_TARGET=$(echo "${MAKE_TARGET}" | sed "s|\$(PWD)|$PWD|") |
| 23 | |
Paul Sokolovsky | a9ec058 | 2023-09-10 20:33:11 +0300 | [diff] [blame] | 24 | make ${MAKE_TARGET} -j${MAKE_JOBS:-3} $(cat ${WORKSPACE}/tf-a-ci-scripts/tf_config/$1) DEBUG=${DEBUG} |