Point to node GNU GCC Linaro's 6.2.1 toolchain under non-arm enviromment

The GNU GCC Linaro 6.2.1 toolchain is now part for the
node (docker-amd64-tf-a-ubuntu:bionic) so use the latter instead of
internal Arm one in case of non-arm enviroment.

Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org>
Change-Id: I401617dcf3c6c9c0a9992c054b3692355d5e53c6
diff --git a/utils.sh b/utils.sh
index 66398f1..5465e56 100644
--- a/utils.sh
+++ b/utils.sh
@@ -275,6 +275,17 @@
     return $(is_jenkins_env "$arm_domain")
 }
 
+
+# Provide correct linaro cross toolchain based on environment
+set_cross_compile_gcc_linaro_toolchain() {
+    local cross_compile_path="/home/buildslave/tools"
+
+    # if under arm enviroment, overide cross-compilation path
+    is_arm_jenkins_env && cross_compile_path="/arm/pdsw/tools"
+
+    echo "${cross_compile_path}/gcc-linaro-6.2.1-2016.11-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-"
+}
+
 if is_jenkins_env; then
 	jenkins_run=1
 	umask 0002