1#!/usr/bin/env bash 2# shellcheck disable=SC2154 # arch is assigned in previous scripts 3# When changing this file, you need to bump the following 4# .gitlab-ci/image-tags.yml tags: 5# DEBIAN_BASE_TAG 6# KERNEL_ROOTFS_TAG 7 8set -e 9 10. .gitlab-ci/setup-test-env.sh 11 12set -o xtrace 13 14############### Install packages for baremetal testing 15DEPS=( 16 cpio 17 curl 18 fastboot 19 netcat-openbsd 20 openssh-server 21 procps 22 python3-distutils 23 python3-filelock 24 python3-fire 25 python3-minimal 26 python3-serial 27 rsync 28 snmp 29 zstd 30) 31 32apt-get install -y ca-certificates 33sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list.d/* 34echo "deb [trusted=yes] https://gitlab.freedesktop.org/gfx-ci/ci-deb-repo/-/raw/${PKG_REPO_REV}/ ${FDO_DISTRIBUTION_VERSION%-*} main" | tee /etc/apt/sources.list.d/gfx-ci_.list 35apt-get update 36 37apt-get install -y --no-remove "${DEPS[@]}" 38 39# setup SNMPv2 SMI MIB 40curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \ 41 https://raw.githubusercontent.com/net-snmp/net-snmp/master/mibs/SNMPv2-SMI.txt \ 42 -o /usr/share/snmp/mibs/SNMPv2-SMI.txt 43 44. .gitlab-ci/container/baremetal_build.sh 45 46mkdir -p /baremetal-files/jetson-nano/boot/ 47ln -s \ 48 /baremetal-files/Image \ 49 /baremetal-files/tegra210-p3450-0000.dtb \ 50 /baremetal-files/jetson-nano/boot/ 51 52mkdir -p /baremetal-files/jetson-tk1/boot/ 53ln -s \ 54 /baremetal-files/zImage \ 55 /baremetal-files/tegra124-jetson-tk1.dtb \ 56 /baremetal-files/jetson-tk1/boot/ 57