CI: Disable Panfrost Mali-T820, Lima Mali-400 and Lima Mali-450 jobs
[mesa.git] / .gitlab-ci / container / cross_build.sh
1 #!/bin/bash
2
3 set -e
4 set -o xtrace
5
6 export DEBIAN_FRONTEND=noninteractive
7
8 # Ephemeral packages (installed for this script and removed again at the end)
9 STABLE_EPHEMERAL=" \
10 libpciaccess-dev:$arch \
11 wget \
12 "
13
14 dpkg --add-architecture $arch
15 apt-get update
16
17 apt-get install -y --no-remove \
18 $STABLE_EPHEMERAL \
19 crossbuild-essential-$arch \
20 libelf-dev:$arch \
21 libexpat1-dev:$arch \
22 libffi-dev:$arch \
23 libstdc++6:$arch \
24 libtinfo-dev:$arch
25
26 apt-get install -y --no-remove -t buster-backports \
27 llvm-8-dev:$arch
28
29 . .gitlab-ci/create-cross-file.sh $arch
30
31
32 . .gitlab-ci/container/container_pre_build.sh
33
34
35 # dependencies where we want a specific version
36 export LIBDRM_VERSION=libdrm-2.4.100
37
38 wget https://dri.freedesktop.org/libdrm/$LIBDRM_VERSION.tar.bz2
39 tar -xvf $LIBDRM_VERSION.tar.bz2 && rm $LIBDRM_VERSION.tar.bz2
40 cd $LIBDRM_VERSION
41 meson --cross-file=/cross_file-${arch}.txt build -D libdir=lib/$(dpkg-architecture -A $arch -qDEB_TARGET_MULTIARCH)
42 ninja -C build install
43 cd ..
44 rm -rf $LIBDRM_VERSION
45
46
47 apt-get purge -y \
48 $STABLE_EPHEMERAL
49
50 . .gitlab-ci/container/container_post_build.sh