refactor(ci): improve toolchain handling in local-ci workflow
Enhanced the utils.sh script, used by local-ci, to support runtime
fetching of toolchains.
The previously shared toolchain distribution via the SSHFS-mounted /arm
directory has been deprecated. Now, if the toolchain is not available
locally, it will be downloaded from the ARM downloads and extracted
into the workspace directory.
This change ensures consistent builds by aligning the local environment
with the toolchain used in the main CI setup.
Signed-off-by: Jayanth Dodderi Chidanand <jayanthdodderi.chidanand@arm.com>
Change-Id: Ifff8ef5fb3ab276dc1a482f8d98ae3f5324f656b
diff --git a/script/run_local_ci.sh b/script/run_local_ci.sh
index 733b41d..fbfd4f4 100755
--- a/script/run_local_ci.sh
+++ b/script/run_local_ci.sh
@@ -233,6 +233,9 @@
export -f run_one_test
workspace="${workspace:?}"
+if [ "$retain_paths" -eq 0 ]; then
+ gcc_space="${gcc_space:?Environment variable 'gcc_space' must be set}"
+fi
ci_root="$(readlink -f "$(dirname "$0")/..")"
# If this script was invoked with bash -x, have subsequent build/run invocations