clone_repos: fix CMSIS submodule path
Since SCP has added CMock as a submodule, clone_repo.sh
has mistaken it for CMSIS, because it assumed that it
would be the only submodule used by SCP. This assumption
has been amended and now clone_repo.sh specifically
extracts the path for CMSIS.
Signed-off-by: Brett Warren <brett.warren@arm.com>
Change-Id: If17bafecb592dcf6b66e6b966b8d3d5078fc0264
diff --git a/script/clone_repos.sh b/script/clone_repos.sh
index c05046e..cb2b8de 100755
--- a/script/clone_repos.sh
+++ b/script/clone_repos.sh
@@ -440,7 +440,7 @@
fi
git submodule -q update $cmsis_reference --init
- eval cmsis_dir="$(git submodule status | awk 'NR==1{print $2}')"
+ eval cmsis_dir="$(git submodule status | grep cmsis | awk 'NR==1{print $2}')"
# Workaround while fixing permissions on /arm/projectscratch/ssg/trusted-fw/ref-repos/cmsis
cd $cmsis_dir