blob: a40fbb47e6f9bf5b22d3d555c2a11851ba24489f [file] [log] [blame]
Leonardo Sandovalc503d7e2020-08-10 15:47:11 -05001#! /usr/bin/env bash
Leonardo Sandovald05adab2020-08-10 14:01:54 -05002#
3# Copyright (c) 2019-2020, Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8#
9# This script builds the TF in different configs.
10# Rather than telling cov-build to build TF using a simple 'make all' command,
11# the goal here is to combine several build flags to analyse more of our source
12# code in a single 'build'. The Coverity Scan service does not have the notion
13# of separate types of build - there is just one linear sequence of builds in
14# the project history.
15#
16
17# Bail out as soon as an error is encountered.
18set -e
19
Leonardo Sandovalc503d7e2020-08-10 15:47:11 -050020tf_coverity_dir="$(readlink -f "$(dirname "$0")/")"
21base_dir="$(readlink -f "$(dirname "$0")/../../../")"
Leonardo Sandovald05adab2020-08-10 14:01:54 -050022
Leonardo Sandovalc503d7e2020-08-10 15:47:11 -050023. $tf_coverity_dir/common-def.sh
Leonardo Sandovald05adab2020-08-10 14:01:54 -050024
Leonardo Sandovalc503d7e2020-08-10 15:47:11 -050025# a single makefile takes care of all platform building
26make BASE_DIR="$base_dir" -f "$tf_coverity_dir/cov-makefile"