Build: Fetch t_cose lib into the shared folder
Fetch the t_cose library into the shared folder so
later it can be copied to the individual job workspaces.
TF-M switched from using its internal t_cose fork to use
the upstream t_cose repository thus TF-M tries to fetch it
during the CMake configuration step.
Signed-off-by: David Vincze <david.vincze@arm.com>
Change-Id: I2fe9840028ed981bb4a1de9be1ef908c67dfd960
diff --git a/run-build.sh b/run-build.sh
index c0a8b99..1722d79 100755
--- a/run-build.sh
+++ b/run-build.sh
@@ -1,6 +1,6 @@
#!/bin/bash
#-------------------------------------------------------------------------------
-# Copyright (c) 2020-2024, Arm Limited and Contributors. All rights reserved.
+# Copyright (c) 2020-2025, Arm Limited and Contributors. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -93,6 +93,13 @@
cd -
fi
+cnt=$(ls trusted-firmware-m/lib/ext/t_cose/*.patch 2> /dev/null | wc -l)
+if [ "$cnt" != "0" ] ; then
+ cd t_cose
+ git apply ../trusted-firmware-m/lib/ext/t_cose/*.patch
+ cd -
+fi
+
cnt=$(ls tf-m-tests/tests_psa_arch/fetch_repo/*.patch 2> /dev/null | wc -l)
if [ "$cnt" != "0" ] ; then
cd psa-arch-tests