1#!/usr/bin/env bash 2# shellcheck disable=SC2086 # we want word splitting 3 4set -e 5set -o xtrace 6 7export LLVM_VERSION="${LLVM_VERSION:=15}" 8 9apt-get -y install ca-certificates 10sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list.d/* 11echo "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 12apt-get update 13 14# Ephemeral packages (installed for this script and removed again at the end) 15EPHEMERAL=( 16 libssl-dev 17) 18 19DEPS=( 20 apt-utils 21 android-libext4-utils 22 autoconf 23 automake 24 bc 25 bison 26 ccache 27 cmake 28 curl 29 fastboot 30 flatbuffers-compiler 31 flex 32 g++ 33 git 34 glslang-tools 35 kmod 36 libasan8 37 libdrm-dev 38 libelf-dev 39 libexpat1-dev 40 libflatbuffers-dev 41 libvulkan-dev 42 libx11-dev 43 libx11-xcb-dev 44 libxcb-dri2-0-dev 45 libxcb-dri3-dev 46 libxcb-glx0-dev 47 libxcb-present-dev 48 libxcb-randr0-dev 49 libxcb-shm0-dev 50 libxcb-xfixes0-dev 51 libxdamage-dev 52 libxext-dev 53 libxrandr-dev 54 libxshmfence-dev 55 libxtensor-dev 56 libxxf86vm-dev 57 libwayland-dev 58 libwayland-egl-backend-dev 59 "llvm-${LLVM_VERSION}-dev" 60 ninja-build 61 meson 62 openssh-server 63 pkgconf 64 python3-mako 65 python3-pil 66 python3-pip 67 python3-requests 68 python3-setuptools 69 u-boot-tools 70 xz-utils 71 zlib1g-dev 72 zstd 73) 74 75apt-get -y install "${DEPS[@]}" "${EPHEMERAL[@]}" 76 77pip3 install --break-system-packages git+http://gitlab.freedesktop.org/freedesktop/ci-templates@ffe4d1b10aab7534489f0c4bbc4c5899df17d3f2 78 79arch=armhf 80. .gitlab-ci/container/cross_build.sh 81 82. .gitlab-ci/container/container_pre_build.sh 83 84. .gitlab-ci/container/build-mold.sh 85 86. .gitlab-ci/container/build-wayland.sh 87 88apt-get purge -y "${EPHEMERAL[@]}" 89 90. .gitlab-ci/container/container_post_build.sh 91