blob: ae2380e91caf296607058ed1a63d691da38a9d3f [file] [log] [blame]
Paul Sokolovsky3486b4e2022-09-06 13:33:57 +03001#!/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
8set -ex
9
Paul Sokolovsky95040c82023-09-14 11:06:42 +030010. tf-a-ci-scripts/eclair/analyze_common2.sh
11
Paul Sokolovskyb3f73992022-10-05 18:27:22 +030012env
13
Paul Sokolovsky3486b4e2022-09-06 13:33:57 +030014cd ${WORKSPACE}/trusted-firmware-a
Paul Sokolovsky2507db62023-09-15 11:39:55 +030015# "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).
18rm -rf build/
Paul Sokolovsky242840a2022-10-27 21:10:09 +030019make clean DEBUG=${DEBUG}
Paul Sokolovsky31d237b2022-10-25 00:54:03 +030020
21# Replace '$(PWD)' with the *current* $PWD.
22MAKE_TARGET=$(echo "${MAKE_TARGET}" | sed "s|\$(PWD)|$PWD|")
23
Paul Sokolovskya9ec0582023-09-10 20:33:11 +030024make ${MAKE_TARGET} -j${MAKE_JOBS:-3} $(cat ${WORKSPACE}/tf-a-ci-scripts/tf_config/$1) DEBUG=${DEBUG}