clone.sh: fix spm project name and set spm_root

Match the project name used by tf-a-ci-scripts and set the spm_root
environment variable so that the repo cloned based on the topic
can be used by the tf-a-ci-scripts.

Change-Id: I2f51258d1fc27f45b510cf77844d78d9d2950bea
Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
diff --git a/scripts/clone.sh b/scripts/clone.sh
index ec234df..27051e6 100755
--- a/scripts/clone.sh
+++ b/scripts/clone.sh
@@ -60,7 +60,7 @@
     "${GERRIT_HOST};${CI_GERRIT_PROJECT};tf-a-ci-scripts;${CI_REFSPEC}"
     "${GERRIT_HOST};${TF_GERRIT_PROJECT};trusted-firmware-a;${TF_GERRIT_REFSPEC}"
     "${GERRIT_HOST};${TFTF_GERRIT_PROJECT};tf-a-tests;${TFTF_GERRIT_REFSPEC}"
-    "${GERRIT_HOST};${SPM_GERRIT_PROJECT};hafnium;${SPM_REFSPEC}"
+    "${GERRIT_HOST};${SPM_GERRIT_PROJECT};spm;${SPM_REFSPEC}"
     "${GERRIT_HOST};${TF_M_TESTS_GERRIT_PROJECT};tf-m-tests;${TF_M_TESTS_GERRIT_REFSPEC}"
     "${GERRIT_HOST};${TF_M_EXTRAS_GERRIT_PROJECT};tf-m-extras;${TF_M_EXTRAS_GERRIT_REFSPEC}"
 )
@@ -118,6 +118,9 @@
         cd ${SHARE_FOLDER}/${REPO_NAME}
         git fetch ${REPO_URL} ${REPO_REFSPEC}
         git checkout FETCH_HEAD
+        if [ "$REPO_NAME" == "spm" ]; then
+                git submodule update --init
+        fi
         echo "Freshly cloned ${REPO_URL} (refspec ${REPO_REFSPEC}):"
         git log -1
         cd $OLDPWD