Clone QCBOR to share folder

QCBOR is an external dependency repo of psa-arch-tests.
It will be clone from github by default in every build config.
To avoid random clone errors caused by limitation on git bandwidth,
clone QCBOR to the share folder and update the default path of QCBOR.

Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: I26f4b996824a53c6218e4db7d8ea2625b97398c9
diff --git a/run-build.sh b/run-build.sh
index 5dc83fa..34373d8 100755
--- a/run-build.sh
+++ b/run-build.sh
@@ -59,6 +59,11 @@
 	cd -
 fi
 
+psa_qcbor_link="https://github.com/laurencelundblade/QCBOR.git"
+psa_qcbor_path="$(pwd)/psa_qcbor"
+psa_qcbor_cfg_cmake="psa-arch-tests/api-tests/tools/cmake/common/CMakeExternal.cmake"
+sed -i "s#$psa_qcbor_link#$psa_qcbor_path#g" $psa_qcbor_cfg_cmake
+
 rm -rf trusted-firmware-m/build
 mkdir trusted-firmware-m/build
 cd trusted-firmware-m/build