summaryrefslogtreecommitdiff
path: root/strata/mesa-common/mesa.def
diff options
context:
space:
mode:
Diffstat (limited to 'strata/mesa-common/mesa.def')
-rw-r--r--strata/mesa-common/mesa.def22
1 files changed, 22 insertions, 0 deletions
diff --git a/strata/mesa-common/mesa.def b/strata/mesa-common/mesa.def
new file mode 100644
index 00000000..c1c25812
--- /dev/null
+++ b/strata/mesa-common/mesa.def
@@ -0,0 +1,22 @@
+name: mesa
+build-system: autotools
+configure-commands:
+- |
+ cpu=$(echo $TARGET | cut -d '-' -f 1)
+ case "$cpu" in
+ armv7lhf)
+ DRIDRIVERS=no
+ GALLIUMDRIVERS=nouveau,freedreno,svga,swrast,vc4
+ ;;
+ *)
+ DRIDRIVERS=yes
+ GALLIUMDRIVERS=yes
+ ;;
+ esac
+ ./autogen.sh --prefix="$PREFIX" \
+ --enable-gles2 \
+ --disable-glx \
+ --with-egl-platforms=drm,wayland \
+ --with-gallium-drivers="$GALLIUMDRIVERS" \
+ --with-dri-drivers="$DRIDRIVERS" \
+ --enable-gallium-egl