summaryrefslogtreecommitdiff
path: root/old/strata/mesa-common/mesa.morph
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-07-07 10:01:07 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-07-07 10:01:07 +0000
commitf6046f9b54c1f14d12a67fa66ca0c881b49e8ceb (patch)
tree7c4d5b1aa87b991fecb0b2c585514069947c3f0a /old/strata/mesa-common/mesa.morph
parentdeba555368fd21316025c5ee0eaaf517b938775e (diff)
downloaddefinitions-f6046f9b54c1f14d12a67fa66ca0c881b49e8ceb.tar.gz
Move old Baserock format definitions into old/ directory
Diffstat (limited to 'old/strata/mesa-common/mesa.morph')
-rw-r--r--old/strata/mesa-common/mesa.morph24
1 files changed, 24 insertions, 0 deletions
diff --git a/old/strata/mesa-common/mesa.morph b/old/strata/mesa-common/mesa.morph
new file mode 100644
index 00000000..abd58b87
--- /dev/null
+++ b/old/strata/mesa-common/mesa.morph
@@ -0,0 +1,24 @@
+name: mesa
+kind: chunk
+build-system: autotools
+configure-commands:
+- |
+ cpu=$(echo $TARGET | cut -d '-' -f 1)
+ case "$cpu" in
+ arm*)
+ DRIDRIVERS=no
+ GALLIUMDRIVERS=nouveau,freedreno,svga,swrast,vc4
+ VULKANDRIVERS=no
+ ;;
+ *)
+ DRIDRIVERS=yes
+ GALLIUMDRIVERS=r300,svga,swrast,virgl,swr
+ VULKANDRIVERS=intel
+ ;;
+ esac
+ ./autogen.sh --prefix="$PREFIX" --sysconfdir=/etc \
+ --enable-gles2 \
+ --with-egl-platforms=drm,wayland,x11 \
+ --with-vulkan-drivers="$VULKANDRIVERS" \
+ --with-gallium-drivers="$GALLIUMDRIVERS" \
+ --with-dri-drivers="$DRIDRIVERS"