mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-30 13:44:06 +08:00
a3560fabc6
Signed-off-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31281>
32 lines
872 B
Bash
32 lines
872 B
Bash
#!/usr/bin/env bash
|
|
# shellcheck disable=SC2086 # we want word splitting
|
|
# shellcheck disable=SC2153
|
|
|
|
set -uex
|
|
|
|
mkdir -p kernel
|
|
pushd kernel
|
|
|
|
if [[ ${DEBIAN_ARCH} = "arm64" ]]; then
|
|
KERNEL_IMAGE_NAME+=" cheza-kernel"
|
|
fi
|
|
|
|
for image in ${KERNEL_IMAGE_NAME:-}; do
|
|
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
|
-o "/lava-files/${image}" "${KERNEL_IMAGE_BASE}/${DEBIAN_ARCH}/${image}"
|
|
done
|
|
|
|
for dtb in ${DEVICE_TREES:-}; do
|
|
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
|
-o "/lava-files/${dtb}" "${KERNEL_IMAGE_BASE}/${DEBIAN_ARCH}/${dtb}"
|
|
done
|
|
|
|
mkdir -p "/lava-files/rootfs-${DEBIAN_ARCH}"
|
|
curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
|
|
-O "${KERNEL_IMAGE_BASE}/${DEBIAN_ARCH}/modules.tar.zst"
|
|
tar --keep-directory-symlink --zstd -xf modules.tar.zst -C "/lava-files/rootfs-${DEBIAN_ARCH}/"
|
|
|
|
popd
|
|
rm -rf kernel
|
|
|