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
32 export LIBDRM_VERSION
=libdrm-2.4
.99
34 ############### Build libdrm
36 wget https
://dri.freedesktop.org
/libdrm
/$LIBDRM_VERSION.
tar.bz2
37 tar -xvf $LIBDRM_VERSION.
tar.bz2
&& rm $LIBDRM_VERSION.
tar.bz2
38 cd $LIBDRM_VERSION; meson build
/ -Detnaviv=true
; ninja
-C build
/ install; cd ..
39 rm -rf $LIBDRM_VERSION
41 ############### Build dEQP
43 git config
--global user.email
"mesa@example.com"
44 git config
--global user.name
"Mesa CI"
45 # XXX: Use --depth 1 once we can drop the cherry-picks.
47 https
://github.com
/KhronosGroup
/VK-GL-CTS.git \
48 -b opengl-es-cts-3.2
.5.1 \
51 # Fix surfaceless build
52 git cherry-pick
-x 22f41e5e321c6dcd8569c4dad91bce89f06b3670
53 git cherry-pick
-x 1daa8dff73161ea60ead965bd6c9f2a0a2165648
55 # surfaceless links against libkms and such despite not using it.
56 sed -i '/gbm/d' targets
/surfaceless
/surfaceless.cmake
57 sed -i '/libkms/d' targets
/surfaceless
/surfaceless.cmake
58 sed -i '/libgbm/d' targets
/surfaceless
/surfaceless.cmake
60 # --insecure is due to SSL cert failures hitting sourceforge for zlib and
61 # libpng (sigh). The archives get their checksums checked anyway, and git
62 # always goes through ssh or https.
63 python3 external
/fetch_sources.py
--insecure
68 -DDEQP_TARGET=surfaceless \
69 -DCMAKE_BUILD_TYPE=Release \
73 # Copy out the mustpass lists we want from a bunch of other junk.
75 for gles
in gles2 gles3 gles31
; do
77 /deqp
/external
/openglcts
/modules
/gl_cts
/data
/mustpass
/gles
/aosp_mustpass
/3.2.5.x
/$gles-master.txt \
78 /deqp
/mustpass
/$gles-master.txt
82 rm -rf /deqp
/modules
/internal
84 rm -rf /deqp
/execserver
85 rm -rf /deqp
/modules
/egl
86 rm -rf /deqp
/framework
87 find -iname '*cmake*' -o -name '*ninja*' -o -name '*.o' -o -name '*.a' |
xargs rm -rf
88 strip modules
/*/deqp-
*
92 ############### Uninstall the build software
109 apt-get autoremove
-y --purge