summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Thomas <james.thomas@codethink.co.uk>2014-10-05 21:25:14 +0000
committerJames Thomas <james.thomas@codethink.co.uk>2014-10-05 21:25:14 +0000
commit245110c02117c6d2b8b3c713ead1fa2224965729 (patch)
tree7c7fd995a4a26a54c442c796f71ff2004b3d86e7
parent6a4a3200765d230cb11dd18fd91818ab38be91a3 (diff)
downloaddefinitions-245110c02117c6d2b8b3c713ead1fa2224965729.tar.gz
fix mesa
-rw-r--r--strata/mesa-common/mesa.morph23
1 files changed, 17 insertions, 6 deletions
diff --git a/strata/mesa-common/mesa.morph b/strata/mesa-common/mesa.morph
index 44a9af85..d31693f6 100644
--- a/strata/mesa-common/mesa.morph
+++ b/strata/mesa-common/mesa.morph
@@ -4,19 +4,30 @@ build-system: autotools
configure-commands:
- |
cpu=$(echo $TARGET | cut -d '-' -f 1)
+ EXTRAARGS=--enable-gallium-egl
case "$cpu" in
x86_32|x64_64)
- DRIDRIVERS=i915,i965,swrast,nouveau
+ DRIDRIVERS=intel,i915,i965,swrast
+ GALLIUMDRIVERS=swrast
+ EGLPLATFORMS=x11,wayland,drm
+ ;;
+ armv7lhf)
+ DRIDRIVERS=nouveau,swrast
+ GALLIUMDRIVERS=nouveau,swrast
+ EXTRAARGS="--with-state-trackers=egl --enable-gallium-egl"
+ EGLPLATFORMS=wayland,drm
;;
*)
- DRIDRIVERS=swrast,nouveau
+ DRIDRIVERS=swrast
+ GALLIUMDRIVERS=swrast
+ EGLPLATFORMS=x11,wayland,drm
;;
esac
./autogen.sh --prefix="$PREFIX" \
--enable-gles2 \
- --disable-gallium-egl \
- --with-egl-platforms=x11,drm,wayland \
+ --with-egl-platforms="$EGLPLATFORMS" \
--enable-gbm \
--enable-shared-glapi \
- --with-gallium-drivers=swrast \
- --with-dri-drivers="$DRIDRIVERS"
+ --with-gallium-drivers="$GALLIUMDRIVERS" \
+ --with-dri-drivers="$DRIDRIVERS" \
+ --disable-dri3 $EXTRAARGS