2019-06-29 00:35:32 +01:00
|
|
|
#!/bin/bash
|
2022-07-16 15:40:04 +01:00
|
|
|
# shellcheck disable=SC2086 # we want word splitting
|
2019-06-29 00:35:32 +01:00
|
|
|
|
|
|
|
set -e
|
|
|
|
set -o xtrace
|
|
|
|
|
|
|
|
apt-get -y install ca-certificates
|
2019-10-10 09:56:08 +01:00
|
|
|
sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list
|
2021-03-19 11:52:35 +00:00
|
|
|
echo 'deb https://deb.debian.org/debian buster main' >/etc/apt/sources.list.d/buster.list
|
2019-10-10 09:56:08 +01:00
|
|
|
apt-get update
|
2021-04-07 13:54:50 +01:00
|
|
|
|
2022-07-27 16:38:09 +01:00
|
|
|
# Ephemeral packages (installed for this script and removed again at
|
|
|
|
# the end)
|
|
|
|
STABLE_EPHEMERAL=" \
|
|
|
|
libssl-dev \
|
|
|
|
"
|
|
|
|
|
2019-10-10 09:56:08 +01:00
|
|
|
apt-get -y install \
|
2022-03-29 12:47:52 +01:00
|
|
|
${EXTRA_LOCAL_PACKAGES} \
|
2022-07-27 16:38:09 +01:00
|
|
|
${STABLE_EPHEMERAL} \
|
2020-01-28 14:19:53 +00:00
|
|
|
autoconf \
|
|
|
|
automake \
|
2019-10-09 17:48:17 +01:00
|
|
|
bc \
|
|
|
|
bison \
|
2019-10-08 18:46:11 +01:00
|
|
|
ccache \
|
2019-12-17 10:50:14 +00:00
|
|
|
cmake \
|
2023-01-18 23:26:03 +00:00
|
|
|
curl \
|
2019-12-17 10:50:14 +00:00
|
|
|
debootstrap \
|
2020-03-03 22:38:09 +00:00
|
|
|
fastboot \
|
2019-10-09 17:48:17 +01:00
|
|
|
flex \
|
2019-06-29 00:35:32 +01:00
|
|
|
g++ \
|
2019-12-17 10:50:14 +00:00
|
|
|
git \
|
2022-04-24 14:11:37 +01:00
|
|
|
glslang-tools \
|
2020-11-04 09:06:20 +00:00
|
|
|
kmod \
|
2021-03-19 11:52:35 +00:00
|
|
|
libasan6 \
|
2020-01-28 14:19:53 +00:00
|
|
|
libdrm-dev \
|
2019-10-08 18:46:11 +01:00
|
|
|
libelf-dev \
|
|
|
|
libexpat1-dev \
|
2022-06-20 17:48:11 +01:00
|
|
|
libvulkan-dev \
|
2020-10-17 13:00:45 +01:00
|
|
|
libx11-dev \
|
|
|
|
libx11-xcb-dev \
|
|
|
|
libxcb-dri2-0-dev \
|
|
|
|
libxcb-dri3-dev \
|
|
|
|
libxcb-glx0-dev \
|
|
|
|
libxcb-present-dev \
|
|
|
|
libxcb-randr0-dev \
|
|
|
|
libxcb-shm0-dev \
|
|
|
|
libxcb-xfixes0-dev \
|
|
|
|
libxdamage-dev \
|
|
|
|
libxext-dev \
|
|
|
|
libxrandr-dev \
|
|
|
|
libxshmfence-dev \
|
|
|
|
libxxf86vm-dev \
|
2022-12-27 16:50:01 +00:00
|
|
|
libwayland-dev \
|
2021-03-19 11:52:35 +00:00
|
|
|
llvm-11-dev \
|
2022-11-24 22:44:47 +00:00
|
|
|
ninja-build \
|
2019-06-29 00:35:32 +01:00
|
|
|
pkg-config \
|
2019-10-08 18:46:11 +01:00
|
|
|
python3-mako \
|
2020-01-28 14:19:53 +00:00
|
|
|
python3-pil \
|
2020-04-01 12:07:46 +01:00
|
|
|
python3-pip \
|
2020-11-11 16:15:25 +00:00
|
|
|
python3-requests \
|
2020-04-01 12:07:46 +01:00
|
|
|
python3-setuptools \
|
2021-03-29 14:09:06 +01:00
|
|
|
u-boot-tools \
|
2020-03-03 22:38:09 +00:00
|
|
|
xz-utils \
|
2022-07-28 00:19:21 +01:00
|
|
|
zlib1g-dev \
|
|
|
|
zstd
|
2019-06-29 00:35:32 +01:00
|
|
|
|
2021-03-19 11:52:35 +00:00
|
|
|
# Not available anymore in bullseye
|
|
|
|
apt-get install -y --no-remove -t buster \
|
|
|
|
android-sdk-ext4-utils
|
2020-04-01 12:07:46 +01:00
|
|
|
|
2022-10-20 07:03:08 +01:00
|
|
|
pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates@ffe4d1b10aab7534489f0c4bbc4c5899df17d3f2
|
2020-04-24 18:58:53 +01:00
|
|
|
|
2022-11-24 22:44:47 +00:00
|
|
|
# We need at least 0.61.4 for proper Rust; 0.62 for modern meson env2mfile
|
|
|
|
pip3 install meson==0.63.3
|
|
|
|
|
2020-04-01 12:07:46 +01:00
|
|
|
arch=armhf
|
|
|
|
. .gitlab-ci/container/cross_build.sh
|
|
|
|
|
2020-03-06 21:23:20 +00:00
|
|
|
. .gitlab-ci/container/container_pre_build.sh
|
|
|
|
|
2022-07-27 16:38:09 +01:00
|
|
|
. .gitlab-ci/container/build-mold.sh
|
|
|
|
|
2019-11-12 13:56:35 +00:00
|
|
|
# dependencies where we want a specific version
|
2020-07-27 13:42:42 +01:00
|
|
|
EXTRA_MESON_ARGS=
|
2021-01-27 15:38:01 +00:00
|
|
|
. .gitlab-ci/container/build-libdrm.sh
|
2019-11-12 13:56:35 +00:00
|
|
|
|
2022-12-27 16:50:01 +00:00
|
|
|
. .gitlab-ci/container/build-wayland.sh
|
|
|
|
|
2022-07-27 16:38:09 +01:00
|
|
|
apt-get purge -y $STABLE_EPHEMERAL
|
|
|
|
|
2020-03-06 21:23:20 +00:00
|
|
|
. .gitlab-ci/container/container_post_build.sh
|