freedreno/a6xx: Clear sysmem with CP_BLIT
[mesa.git] / .gitlab-ci / debian-arm64-install.sh
1 #!/bin/bash
2
3 set -e
4 set -o xtrace
5
6 ############### Install packages for building
7 apt-get -y install ca-certificates
8 sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list
9 echo 'deb https://deb.debian.org/debian buster-backports main' >/etc/apt/sources.list.d/backports.list
10 dpkg --add-architecture armhf
11 apt-get update
12 apt-get -y install \
13 bc \
14 bison \
15 ccache \
16 crossbuild-essential-armhf \
17 flex \
18 g++ \
19 gettext \
20 libdrm-dev \
21 libdrm-dev:armhf \
22 libelf-dev \
23 libelf-dev:armhf \
24 libexpat1-dev \
25 libexpat1-dev:armhf \
26 libssl-dev \
27 llvm-7-dev:armhf \
28 llvm-8-dev \
29 meson \
30 pkg-config \
31 python \
32 python3-mako \
33 wget \
34 zlib1g-dev
35
36 ############### Generate cross build file for Meson
37
38 cross_file="/cross_file-armhf.txt"
39 /usr/share/meson/debcrossgen --arch armhf -o "$cross_file"
40 # Explicitly set ccache path for cross compilers
41 sed -i "s|/usr/bin/\([^-]*\)-linux-gnu\([^-]*\)-g|/usr/lib/ccache/\\1-linux-gnu\\2-g|g" "$cross_file"
42 # Don't need wrapper for armhf executables
43 sed -i -e '/\[properties\]/a\' -e "needs_exe_wrapper = False" "$cross_file"
44
45 apt-get purge -y \
46 wget
47
48 apt-get autoremove -y --purge