gitlab-ci: Replay traces on lava devices
[mesa.git] / .gitlab-ci / container / arm_build.sh
1 #!/bin/bash
2
3 set -e
4 set -o xtrace
5
6 apt-get -y install ca-certificates
7 sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list
8 echo 'deb https://deb.debian.org/debian buster-backports main' >/etc/apt/sources.list.d/backports.list
9 apt-get update
10 apt-get -y install \
11 abootimg \
12 android-sdk-ext4-utils \
13 autoconf \
14 automake \
15 bc \
16 bison \
17 ccache \
18 cmake \
19 cpio \
20 debootstrap \
21 fastboot \
22 flex \
23 g++ \
24 git \
25 lavacli \
26 libdrm-dev \
27 libelf-dev \
28 libexpat1-dev \
29 llvm-8-dev \
30 pkg-config \
31 python \
32 python3-mako \
33 python3-pil \
34 python3-requests \
35 python3-pip \
36 python3-setuptools \
37 unzip \
38 wget \
39 xz-utils \
40 zlib1g-dev
41
42 pip3 install git+http://gitlab.freedesktop.org/freedesktop/ci-templates@6f5af7e5574509726c79109e3c147cee95e81366
43
44 apt install -y --no-remove -t buster-backports \
45 meson
46
47 arch=armhf
48 . .gitlab-ci/container/cross_build.sh
49
50 . .gitlab-ci/container/container_pre_build.sh
51
52 # dependencies where we want a specific version
53 export LIBDRM_VERSION=libdrm-2.4.102
54
55 wget https://dri.freedesktop.org/libdrm/$LIBDRM_VERSION.tar.xz
56 tar -xvf $LIBDRM_VERSION.tar.xz && rm $LIBDRM_VERSION.tar.xz
57 cd $LIBDRM_VERSION; meson build -D vc4=true -D freedreno=true -D etnaviv=true; ninja -C build install; cd ..
58 rm -rf $LIBDRM_VERSION
59
60 . .gitlab-ci/container/container_post_build.sh