#!/bin/bash set -ex if [ $DEBIAN_ARCH = arm64 ]; then ARCH_PACKAGES="firmware-qcom-media" elif [ $DEBIAN_ARCH = amd64 ]; then # Upstream LLVM package repository apt-get -y install --no-install-recommends gnupg ca-certificates apt-key add /llvm-snapshot.gpg.key echo "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-10 main" >/etc/apt/sources.list.d/llvm10.list apt-get update ARCH_PACKAGES="firmware-amd-graphics libelf1 libllvm10 libxcb-dri2-0 libxcb-dri3-0 libxcb-present0 libxcb-sync1 libxcb-xfixes0 libxshmfence1 " fi if [ -n "$INCLUDE_VK_CTS" ]; then VK_CTS_PACKAGES="libvulkan1" fi if [ -n "$INCLUDE_PIGLIT" ]; then PIGLIT_PACKAGES="libwaffle-1-0 libxkbcommon0 python3-lxml python3-mako python3-numpy python3-simplejson " INSTALL_CI_FAIRY_PACKAGES="git python3-dev python3-pip python3-setuptools python3-wheel " fi apt-get -y install --no-install-recommends \ $ARCH_PACKAGES \ $CI_FAIRY_PACKAGES \ $INSTALL_CI_FAIRY_PACKAGES \ $PIGLIT_PACKAGES \ $VK_CTS_PACKAGES \ ca-certificates \ curl \ initramfs-tools \ libexpat1 \ libpng16-16 \ libpython3.7 \ libsensors5 \ libx11-6 \ libx11-xcb1 \ netcat-openbsd \ python3 \ python3-pil \ python3-pytest \ python3-requests \ python3-yaml \ sntp \ strace \ wget \ xz-utils if [ -n "$INCLUDE_PIGLIT" ]; then # Needed for ci-fairy, this revision is able to upload files to # MinIO and doesn't depend on git pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates@0f1abc24c043e63894085a6bd12f14263e8b29eb apt-get purge -y \ $INSTALL_CI_FAIRY_PACKAGES fi passwd root -d chsh -s /bin/sh cat > /init <