summaryrefslogtreecommitdiff
path: root/.gitlab-ci/container/build-libdrm.sh
blob: 299bbf47ec59e336a49b6bea4356777a7997f64e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash
# shellcheck disable=SC2086 # we want word splitting

set -ex

export LIBDRM_VERSION=libdrm-2.4.114

curl -L -O --retry 4 -f --retry-all-errors --retry-delay 60 \
    https://dri.freedesktop.org/libdrm/"$LIBDRM_VERSION".tar.xz
tar -xvf "$LIBDRM_VERSION".tar.xz && rm "$LIBDRM_VERSION".tar.xz
cd "$LIBDRM_VERSION"
meson setup build -D vc4=disabled -D freedreno=disabled -D etnaviv=disabled $EXTRA_MESON_ARGS
meson install -C build
cd ..
rm -rf "$LIBDRM_VERSION"