• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
9set -o xtrace
10
11############### Install packages for baremetal testing
12DEPS=(
13    cpio
14    curl
15    fastboot
16    netcat-openbsd
17    openssh-server
18    procps
19    python3-distutils
20    python3-filelock
21    python3-fire
22    python3-minimal
23    python3-serial
24    rsync
25    snmp
26    zstd
27)
28
29apt-get install -y ca-certificates
30sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list.d/*
31echo "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
32apt-get update
33
34apt-get install -y --no-remove "${DEPS[@]}"
35
36# setup SNMPv2 SMI MIB
37curl -L --retry 4 -f --retry-all-errors --retry-delay 60 \
38    https://raw.githubusercontent.com/net-snmp/net-snmp/master/mibs/SNMPv2-SMI.txt \
39    -o /usr/share/snmp/mibs/SNMPv2-SMI.txt
40
41. .gitlab-ci/container/baremetal_build.sh
42
43mkdir -p /baremetal-files/jetson-nano/boot/
44ln -s \
45    /baremetal-files/Image \
46    /baremetal-files/tegra210-p3450-0000.dtb \
47    /baremetal-files/jetson-nano/boot/
48
49mkdir -p /baremetal-files/jetson-tk1/boot/
50ln -s \
51    /baremetal-files/zImage \
52    /baremetal-files/tegra124-jetson-tk1.dtb \
53    /baremetal-files/jetson-tk1/boot/
54