iris: add identifier BO
[mesa.git] / .gitlab-ci / container / x86_cross_arm_test.sh
1 #!/bin/bash
2
3 set -e
4 set -o xtrace
5
6 # etnaviv will eventually need armhf too.
7 CROSS_ARCHITECTURES="arm64"
8
9 for arch in $CROSS_ARCHITECTURES; do
10 dpkg --add-architecture $arch
11 done
12
13 ############### Install packages for building
14 apt-get install -y ca-certificates
15 sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list
16 echo 'deb https://deb.debian.org/debian buster-backports main' >/etc/apt/sources.list.d/backports.list
17 apt-get update
18
19 apt-get install -y --no-remove \
20 abootimg \
21 android-sdk-ext4-utils \
22 bc \
23 bison \
24 bzip2 \
25 ccache \
26 cmake \
27 cpio \
28 g++ \
29 debootstrap \
30 fastboot \
31 flex \
32 git \
33 meson \
34 netcat \
35 python3-distutils \
36 python3-minimal \
37 python3-serial \
38 python3.7 \
39 pkg-config \
40 procps \
41 unzip
42
43 # Cross-build test deps
44 for arch in $CROSS_ARCHITECTURES; do
45 apt-get install -y --no-remove \
46 crossbuild-essential-${arch} \
47 libdrm-dev:${arch} \
48 libegl1-mesa-dev:${arch} \
49 libelf-dev:${arch} \
50 libexpat1-dev:${arch} \
51 libffi-dev:${arch} \
52 libgbm-dev:${arch} \
53 libgles2-mesa-dev:${arch} \
54 libpng-dev:${arch} \
55 libstdc++6:${arch} \
56 libtinfo-dev:${arch} \
57 libegl1-mesa-dev:${arch} \
58 libvulkan-dev:${arch}
59
60 mkdir /var/cache/apt/archives/${arch}
61 done
62
63 . .gitlab-ci/container/container_pre_build.sh
64
65 ############### Create rootfs
66
67 for arch in $CROSS_ARCHITECTURES; do
68 . .gitlab-ci/create-cross-file.sh $arch
69
70 DEBIAN_ARCH=$arch . .gitlab-ci/container/lava_arm.sh
71 done
72
73 ############### Uninstall the build software
74
75 ccache --show-stats
76
77 apt-get purge -y \
78 bc \
79 bison \
80 bzip2 \
81 ccache \
82 cmake \
83 g++ \
84 flex \
85 git \
86 meson \
87 pkg-config \
88 python3-distutils \
89 procps
90
91 for arch in $CROSS_ARCHITECTURES; do
92 apt-get purge -y ".*:${arch}"
93 done
94
95 apt-get autoremove -y --purge