ci: add arm_test-base docker image
[mesa.git] / .gitlab-ci / container / 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 . .gitlab-ci/container/container_pre_build.sh
10
11 ############### Create rootfs
12
13 for arch in $CROSS_ARCHITECTURES; do
14 DEBIAN_ARCH=$arch . .gitlab-ci/container/lava_arm.sh
15 done
16
17 ############### Uninstall the build software
18
19 ccache --show-stats
20
21 apt-get purge -y \
22 bc \
23 bison \
24 bzip2 \
25 ccache \
26 cmake \
27 g++ \
28 flex \
29 git \
30 meson \
31 pkg-config \
32 python3-distutils \
33 procps \
34 u-boot-tools
35
36 for arch in $CROSS_ARCHITECTURES; do
37 apt-get purge -y ".*:${arch}"
38 done
39
40 apt-get autoremove -y --purge