mesa-dev-env-setup script
--- /dev/null
+#!/bin/bash
+if [ "$EUID" -ne 0 ]
+ then echo "Please run as root"
+ exit
+fi
+echo "deb http://deb.debian.org/debian buster-backports main" | tee \
+ -a /etc/apt/sources.list
+apt-get update -y
+apt-get upgrade -y
+apt-get install -y build-essential \
+ cmake \
+ git \
+ pkg-config \
+ libatomic-ops-dev \
+ libcairo2-dev \
+ libcunit1-dev \
+ libpciaccess-dev \
+ libunwind-dev \
+ llvm-8 \
+ llvm-8-dev \
+ python3.7 \
+ python3.7-dev \
+ python3-setuptools \
+ libzstd-dev \
+ libzstd1 \
+ zlib1g
+apt-get install -y -t buster-backports meson
+apt-get build-dep -y libdrm
+apt-get build-dep -y mesa
--- /dev/null
+#!/bin/bash
+mkdir -p ~/opt/lsoc_mesa
+cd ~/opt
+git clone https://gitlab.freedesktop.org/mesa/drm.git
+cd drm
+mkdir build && cd build
+meson -Dbuildtype=release -Dprefix=/home/$USER/opt/lsoc_mesa ..
+ninja install
+export PKG_CONFIG_PATH=~/opt/lsoc_mesa/lib/x86_64-linux-gnu/pkgconfig/
+cd ~/opt
+git clone https://gitlab.freedesktop.org/mesa/mesa.git
+cd mesa
+mkdir build && cd build
+meson -Dbuildtype=debug -Dprefix=/home/$USER/opt/lsoc_mesa
+ninja install