feat: clone TF-A with submodules
As we are introducing several submodules into TF-A, we need to ensure
that we clone TF-A with the `--recurse-submodules` flag to ensure that
they are made available.
Signed-off-by: Chris Kay <chris.kay@arm.com>
Co-authored-by: Harrison Mutai <harrison.mutai@arm.com>
Change-Id: Ic80e1d8a93efc1c45f2c35e187d4153e22a6571f
diff --git a/scripts/clone.sh b/scripts/clone.sh
index 119f522..47aaa63 100755
--- a/scripts/clone.sh
+++ b/scripts/clone.sh
@@ -116,7 +116,7 @@
# clone and checkout in case it does not exist
if [ ! -d ${SHARE_FOLDER}/${REPO_NAME} ]; then
- git clone ${GIT_CLONE_PARAMS} ${REPO_URL} ${SHARE_FOLDER}/${REPO_NAME}
+ git clone --recurse-submodules ${GIT_CLONE_PARAMS} ${REPO_URL} ${SHARE_FOLDER}/${REPO_NAME}
# If the Gerrit review that triggered the CI had a topic, it will be used to synchronize the other repositories
if [ -n "${GERRIT_TOPIC}" -a "${REPO_HOST}" = "${GERRIT_HOST}" -a "${GERRIT_PROJECT}" != "${REPO_PROJECT}" ]; then
@@ -140,6 +140,7 @@
fi
git checkout FETCH_HEAD
+ git submodule update --init --recursive
echo "Freshly cloned ${REPO_URL} (refspec ${REPO_REFSPEC}):"
git log -1
cd $OLDPWD