mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-12-12 11:44:53 +08:00
3c15dba46d
This is possible again thanks to https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9955 , and this MR requires rebuilding all templates based docker images anyway, so we can pull in the latest templates for free. We need to exclude /dev/* when unpacking rootfs tarballs for the arm_test image, since x86 container build jobs do not allow mknod anymore with current templates. The baremetal test jobs have another filesystem mounted on /dev anyway. Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9833>
36 lines
948 B
Bash
36 lines
948 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
set -o xtrace
|
|
|
|
# Fetch the arm-built rootfs image and unpack it in our x86 container (saves
|
|
# network transfer, disk usage, and runtime on test jobs)
|
|
|
|
if wget -q --method=HEAD "${ARTIFACTS_PREFIX}/${FDO_UPSTREAM_REPO}/${ARTIFACTS_SUFFIX}/${arch}/done"; then
|
|
ARTIFACTS_URL="${ARTIFACTS_PREFIX}/${FDO_UPSTREAM_REPO}/${ARTIFACTS_SUFFIX}/${arch}"
|
|
else
|
|
ARTIFACTS_URL="${ARTIFACTS_PREFIX}/${CI_PROJECT_PATH}/${ARTIFACTS_SUFFIX}/${arch}"
|
|
fi
|
|
|
|
wget ${ARTIFACTS_URL}/lava-rootfs.tgz -O rootfs.tgz
|
|
mkdir -p /rootfs-$arch
|
|
tar -C /rootfs-$arch '--exclude=./dev/*' -zxf rootfs.tgz
|
|
rm rootfs.tgz
|
|
|
|
if [[ $arch == "arm64" ]]; then
|
|
mkdir -p /baremetal-files
|
|
pushd /baremetal-files
|
|
|
|
wget ${ARTIFACTS_URL}/Image
|
|
wget ${ARTIFACTS_URL}/Image.gz
|
|
wget ${ARTIFACTS_URL}/cheza-kernel
|
|
|
|
DEVICE_TREES="apq8016-sbc.dtb apq8096-db820c.dtb"
|
|
|
|
for DTB in $DEVICE_TREES; do
|
|
wget ${ARTIFACTS_URL}/$DTB
|
|
done
|
|
|
|
popd
|
|
fi
|