gitlab-ci: build a specific libdrm version for ARM64
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 12 Nov 2019 13:56:35 +0000 (14:56 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 13 Nov 2019 09:52:08 +0000 (10:52 +0100)
RADV requires libdrm-2.4.100 but the distrib package is too old.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
.gitlab-ci.yml
.gitlab-ci/debian-arm64-install.sh

index b7eb604fb214a50e6acd7384b8d79b8d9bc8b567..78358841116ab7ccd246a3df268fa9001421d3aa 100644 (file)
@@ -16,7 +16,7 @@ variables:
   UPSTREAM_REPO: mesa/mesa
   DEBIAN_TAG: "amd64-2019-11-13-2"
   DEBIAN_TEST_TAG: "amd64-test-2019-11-12-2"
-  DEBIAN_ARM64_TAG: "arm64v8-2019-11-06"
+  DEBIAN_ARM64_TAG: "arm64v8-2019-11-13"
   DEBIAN_ARM64_TEST_TAG: "arm64v8-test-2019-11-12-2"
   STRETCH_TAG: "2019-09-18"
   DEBIAN_VERSION: buster-slim
index 3f068f6dddf32a3341613e92b6011b284f18cd2a..c08746b1df24297bb50be1fac644e90cb4425a19 100644 (file)
@@ -17,7 +17,6 @@ apt-get -y install \
        flex \
        g++ \
        gettext \
-       libdrm-dev \
        libdrm-dev:armhf \
        libelf-dev \
        libelf-dev:armhf \
@@ -33,6 +32,14 @@ apt-get -y install \
        wget \
        zlib1g-dev
 
+# dependencies where we want a specific version
+export LIBDRM_VERSION=libdrm-2.4.100
+
+wget https://dri.freedesktop.org/libdrm/$LIBDRM_VERSION.tar.bz2
+tar -xvf $LIBDRM_VERSION.tar.bz2 && rm $LIBDRM_VERSION.tar.bz2
+cd $LIBDRM_VERSION; meson build -D vc4=true -D freedreno=true -D etnaviv=true; ninja -j4 -C build install; cd ..
+rm -rf $LIBDRM_VERSION
+
 ############### Generate cross build file for Meson
 
 cross_file="/cross_file-armhf.txt"