mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-12-05 08:14:57 +08:00
8588fb65d6
Replace the expect-based script to turn on/off the Raspberry Pi devices using a python-based script. v2: - Fix small nitpicks (Juan) - Limit line length (Andres) v3: - Bump image tags (Eric, Andres) v4: - Bump image tags (Eric) Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com> Acked-by: Andres Gomez <agomez@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8362>
47 lines
1.0 KiB
Bash
47 lines
1.0 KiB
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
set -o xtrace
|
|
|
|
############### Install packages for building
|
|
apt-get install -y ca-certificates
|
|
sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list
|
|
echo 'deb https://deb.debian.org/debian buster-backports main' >/etc/apt/sources.list.d/backports.list
|
|
apt-get update
|
|
|
|
apt-get install -y --no-remove \
|
|
abootimg \
|
|
android-sdk-ext4-utils \
|
|
bc \
|
|
bison \
|
|
bzip2 \
|
|
ccache \
|
|
cmake \
|
|
cpio \
|
|
debootstrap \
|
|
fastboot \
|
|
flex \
|
|
g++ \
|
|
git \
|
|
netcat \
|
|
nginx-full \
|
|
pkg-config \
|
|
procps \
|
|
python3-distutils \
|
|
python3-minimal \
|
|
python3-serial \
|
|
python3.7 \
|
|
rsync \
|
|
telnet \
|
|
u-boot-tools \
|
|
unzip
|
|
|
|
apt install -t buster-backports -y --no-remove \
|
|
meson
|
|
|
|
# setup nginx
|
|
sed -i '/gzip_/ s/#\ //g' /etc/nginx/nginx.conf
|
|
cp .gitlab-ci/bare-metal/nginx-default-site /etc/nginx/sites-enabled/default
|
|
|
|
. .gitlab-ci/container/container_post_build.sh
|