- .fdo.container-build@debian@arm64v8
- .container
variables:
- FDO_DISTRIBUTION_TAG: &arm_build "2020-05-14-baremetal"
+ FDO_DISTRIBUTION_TAG: &arm_build "2020-05-14-baremetal-2"
.use-arm_build:
variables:
KERNEL_IMAGE_NAME="zImage"
fi
-############### Build dEQP runner
-if [[ "$DEBIAN_ARCH" = "armhf" ]]; then
- EXTRA_MESON_ARGS="--cross-file /cross_file-armhf.txt"
+# Determine if we're in a cross build.
+if [[ -e /cross_file-$DEBIAN_ARCH.txt ]]; then
+ EXTRA_MESON_ARGS="--cross-file /cross_file-$DEBIAN_ARCH.txt"
+
+ export ARCH=${KERNEL_ARCH}
+ export CROSS_COMPILE="${GCC_ARCH}-"
fi
+
+############### Build dEQP runner
. .gitlab-ci/build-cts-runner.sh
mkdir -p /lava-files/rootfs-${DEBIAN_ARCH}/usr/bin
mv /usr/local/bin/deqp-runner /lava-files/rootfs-${DEBIAN_ARCH}/usr/bin/.
############### Cross-build kernel
KERNEL_URL="https://gitlab.freedesktop.org/tomeu/linux/-/archive/v5.5-panfrost-fixes/linux-v5.5-panfrost-fixes.tar.gz"
-if [[ "$DEBIAN_ARCH" = "armhf" ]]; then
- export ARCH=${KERNEL_ARCH}
- export CROSS_COMPILE="${GCC_ARCH}-"
-fi
-
mkdir -p kernel
wget -qO- ${KERNEL_URL} | tar -xz --strip-components=1 -C kernel
pushd kernel