321dc93276
Every barebone arm or aarch64 job depends on these. When experimenting with CI, this job drags both kernel+rootfs_arm64 and armhf, even when the latter is not used. This should speed up development and relieve one instance for about 30 minutes and overlap between finishing kernel+rootfs_arm64 and armhf jobs per change. Here are some size stats: old arm_test 904M (32+64) new arm64_test 579M (64bit) new armhf_test 402M (32bit) --- both ~ 981M (overhead is 81M overall, but never used together so it's only cost "at rest") Runtime of the arm*_test jobs is ~ 2 minutes. Acked-by: Martin Roukala <martin.roukala@mupuf.org> Acked-by: Daniel Stone <daniels@collabora.com> Reviewed-by: "Sergi Blanch Torné" <sergi.blanch.torne@collabora.com> Signed-off-by: David Heidelberg <david.heidelberg@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19550>
48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
#!/bin/bash
|
|
# shellcheck disable=SC2154 # arch is assigned in previous scripts
|
|
|
|
set -e
|
|
set -o xtrace
|
|
|
|
############### Install packages for baremetal testing
|
|
apt-get install -y ca-certificates
|
|
sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list
|
|
apt-get update
|
|
|
|
apt-get install -y --no-remove \
|
|
cpio \
|
|
fastboot \
|
|
netcat \
|
|
procps \
|
|
python3-distutils \
|
|
python3-minimal \
|
|
python3-serial \
|
|
rsync \
|
|
snmp \
|
|
wget \
|
|
zstd
|
|
|
|
# setup SNMPv2 SMI MIB
|
|
wget https://raw.githubusercontent.com/net-snmp/net-snmp/master/mibs/SNMPv2-SMI.txt \
|
|
-O /usr/share/snmp/mibs/SNMPv2-SMI.txt
|
|
|
|
. .gitlab-ci/container/baremetal_build.sh
|
|
|
|
if [[ "$arch" == "arm64" ]]; then
|
|
# This firmware file from Debian bullseye causes hangs
|
|
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/qcom/a530_pfp.fw?id=d5f9eea5a251d43412b07f5295d03e97b89ac4a5 \
|
|
-O /rootfs-arm64/lib/firmware/qcom/a530_pfp.fw
|
|
fi
|
|
|
|
mkdir -p /baremetal-files/jetson-nano/boot/
|
|
ln -s \
|
|
/baremetal-files/Image \
|
|
/baremetal-files/tegra210-p3450-0000.dtb \
|
|
/baremetal-files/jetson-nano/boot/
|
|
|
|
mkdir -p /baremetal-files/jetson-tk1/boot/
|
|
ln -s \
|
|
/baremetal-files/zImage \
|
|
/baremetal-files/tegra124-jetson-tk1.dtb \
|
|
/baremetal-files/jetson-tk1/boot/
|