summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-10-03 14:16:20 +0100
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-10-03 16:56:49 +0100
commit6192396b0515942344298b38d7bf906a6f60df77 (patch)
tree03c755013a6ffc23f6366b397666f468798af8b3
parent094ecc5f8a382109221f6e81ced42f26ad158249 (diff)
downloaddefinitions-baserock-14.40.tar.gz
Enable nouveau drivers in mesabaserock-14.40
-rw-r--r--strata/mesa-common/mesa.morph24
1 files changed, 18 insertions, 6 deletions
diff --git a/strata/mesa-common/mesa.morph b/strata/mesa-common/mesa.morph
index 44a9af85..9a528cbe 100644
--- a/strata/mesa-common/mesa.morph
+++ b/strata/mesa-common/mesa.morph
@@ -4,19 +4,31 @@ build-system: autotools
configure-commands:
- |
cpu=$(echo $TARGET | cut -d '-' -f 1)
+ EXTRAARGS=--disable-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
+