include GNU GCC Linaro 6.2.1 toolchain into the docker image
There are some platforms, i.e. marvell, that requires this particular
toolchain so node should suppport it.
Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org>
Change-Id: Ia7db4a75fb84f563a69e366d5060713a8888d9d3
diff --git a/bionic-amd64-tf-a-build/Dockerfile b/bionic-amd64-tf-a-build/Dockerfile
index 7c8a1c7..6307b0f 100644
--- a/bionic-amd64-tf-a-build/Dockerfile
+++ b/bionic-amd64-tf-a-build/Dockerfile
@@ -121,6 +121,17 @@
-d ${TOOLS_DIR} \
&& rm -rf ${ARM_CLANG_INSTALL_DIR} /tmp/${ARM_CLANG_TAR}
+### Install GNU Linaro 6.2.1 toolchain (aarch64-none-elf), which is required by some platforms, i.e. marvell
+### NOTE: Toolchain is not available through PATH so to use it, CROSS_COMPILE should point to
+### CROSS_COMPILE=${TOOLS_DIR}/gcc-linaro-6.2.1-2016.11-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
+ARG GNU_GCC_LINARO_AARCH64_SHORT_VERSION=6.2-2016.11
+ARG GNU_GCC_LINARO_AARCH64_LONG_VERSION=6.2.1-2016.11
+ARG GNU_GCC_LINARO_AARCH64_TAR="gcc-linaro-${GNU_GCC_LINARO_AARCH64_LONG_VERSION}-x86_64_aarch64-linux-gnu.tar.xz"
+ARG GNU_GCC_LINARO_AARCH64_URL="https://releases.linaro.org/components/toolchain/binaries/${GNU_GCC_LINARO_AARCH64_SHORT_VERSION}/aarch64-linux-gnu/${GNU_GCC_LINARO_AARCH64_TAR}"
+RUN curl --create-dirs -fsSLo /tmp/${GNU_GCC_LINARO_AARCH64_TAR} ${GNU_GCC_LINARO_AARCH64_URL} \
+ && tar -xf /tmp/${GNU_GCC_LINARO_AARCH64_TAR} -C ${TOOLS_DIR} \
+ && rm /tmp/${GNU_GCC_LINARO_AARCH64_TAR}
+
ARG LINARO_VERSION=20.01
RUN mkdir -p nfs/downloads/linaro/${LINARO_VERSION} \
&& cd nfs/downloads/linaro/${LINARO_VERSION} \