spm: provide support for using local repo

Change-Id: I0b03d4fbdafa9e0a26a8609cda86afc8654bf700
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
diff --git a/script/run_local_ci.sh b/script/run_local_ci.sh
index b8a8995..d5b661f 100755
--- a/script/run_local_ci.sh
+++ b/script/run_local_ci.sh
@@ -336,6 +336,15 @@
 	import_cc=1
 fi
 
+if [ -z "$spm_root" ]; then
+	in_red "NOTE: NOT using local work tree for SPM"
+else
+	spm_root="$(readlink -f $spm_root)"
+	spm_refspec=
+	in_green "Using local work tree for SPM"
+	let "++local_count"
+fi
+
 # User preferences
 [ "$connect_debugger" ] && [ "$connect_debugger" -eq 1 ] && user_connect_debugger=1
 user_test_run="${user_connect_debugger:-$test_run}"