summaryrefslogtreecommitdiff
path: root/baserock/strata/mesa-common/mesa.morph
diff options
context:
space:
mode:
Diffstat (limited to 'baserock/strata/mesa-common/mesa.morph')
-rw-r--r--baserock/strata/mesa-common/mesa.morph22
1 files changed, 22 insertions, 0 deletions
diff --git a/baserock/strata/mesa-common/mesa.morph b/baserock/strata/mesa-common/mesa.morph
new file mode 100644
index 00000000..2a3fe96a
--- /dev/null
+++ b/baserock/strata/mesa-common/mesa.morph
@@ -0,0 +1,22 @@
+name: mesa
+kind: chunk
+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"