diff options
Diffstat (limited to 'strata/mesa-common/mesa.morph')
-rw-r--r-- | strata/mesa-common/mesa.morph | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/strata/mesa-common/mesa.morph b/strata/mesa-common/mesa.morph new file mode 100644 index 00000000..abd58b87 --- /dev/null +++ b/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" |