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
18 crossbuild-essential-armhf \
45 ############### Generate cross build file for Meson
47 cross_file
="/cross_file-armhf.txt"
48 /usr
/share
/meson
/debcrossgen
--arch armhf
-o "$cross_file"
49 # Explicitly set ccache path for cross compilers
50 sed -i "s|/usr/bin/\([^-]*\)-linux-gnu\([^-]*\)-g|/usr/lib/ccache/\\1-linux-gnu\\2-g|g" "$cross_file"
51 # Don't need wrapper for armhf executables
52 sed -i -e '/\[properties\]/a\' -e "needs_exe_wrapper = False" "$cross_file"
54 export LIBDRM_VERSION=libdrm-2.4.99
56 ############### Build libdrm
58 wget https://dri.freedesktop.org/libdrm/$LIBDRM_VERSION.tar.bz2
59 tar -xvf $LIBDRM_VERSION.tar.bz2 && rm $LIBDRM_VERSION.tar.bz2
60 cd $LIBDRM_VERSION; meson build/ -Detnaviv=true; ninja -C build/ install; cd ..
61 rm -rf $LIBDRM_VERSION
63 ############### Build dEQP
65 git config --global user.email "mesa@example.com"
66 git config --global user.name "Mesa CI"
67 # XXX: Use --depth 1 once we can drop the cherry-picks.
69 https://github.com/KhronosGroup/VK-GL-CTS.git \
70 -b opengl-es-cts-3.2.5.1 \
73 # Fix surfaceless build
74 git cherry-pick -x 22f41e5e321c6dcd8569c4dad91bce89f06b3670
75 git cherry-pick -x 1daa8dff73161ea60ead965bd6c9f2a0a2165648
77 # surfaceless links against libkms and such despite not using it.
78 sed -i '/gbm
/d
' targets/surfaceless/surfaceless.cmake
79 sed -i '/libkms
/d
' targets/surfaceless/surfaceless.cmake
80 sed -i '/libgbm
/d
' targets/surfaceless/surfaceless.cmake
82 # --insecure is due to SSL cert failures hitting sourceforge for zlib and
83 # libpng (sigh). The archives get their checksums checked anyway, and git
84 # always goes through ssh or https.
85 python3 external/fetch_sources.py --insecure
90 -DDEQP_TARGET=surfaceless \
91 -DCMAKE_BUILD_TYPE=Release \
95 # Copy out the mustpass lists we want from a bunch of other junk.
97 for gles in gles2 gles3 gles31; do
99 /deqp/external/openglcts/modules/gl_cts/data/mustpass/gles/aosp_mustpass/3.2.5.x/$gles-master.txt \
100 /deqp/mustpass/$gles-master.txt
103 rm -rf /deqp/external
104 rm -rf /deqp/modules/internal
105 rm -rf /deqp/executor
106 rm -rf /deqp/execserver
107 rm -rf /deqp/modules/egl
108 rm -rf /deqp/framework
112 ############### Uninstall the build software
121 apt-get autoremove -y --purge