Build: Specify compiler path in bash
This patch is to prepare CI scripts to support multi compiler versions.
All versions of compilers will be installed by DockerFile to specific
path. The paths will be recoreded in env variables.
Every single config build job can select the needed compiler version
and add the specific compiler path to env PATH.
By default, GCC v7.3.1 & ARMClang 6.13 are choosen.
Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: Id4bafadfd28e95a14dc26c7641bcf9611c65e58a
diff --git a/build-docs.sh b/build-docs.sh
index ee6b01b..569eb2d 100755
--- a/build-docs.sh
+++ b/build-docs.sh
@@ -1,6 +1,6 @@
#!/bin/bash
#-------------------------------------------------------------------------------
-# Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved.
+# Copyright (c) 2020-2022, Arm Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -13,6 +13,8 @@
set -ex
+export PATH=$PATH:$GCC_7_3_1_PATH
+
mkdir -p ${WORKSPACE}/trusted-firmware-m/build/docs
cd ${WORKSPACE}/trusted-firmware-m/build/docs