diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2014-07-16 10:50:55 +0000 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2014-07-16 10:50:55 +0000 |
commit | 29474313db473f2ca79381e721a3ebc34b3be780 (patch) | |
tree | 161e0bd402f32d00f443d74e1485ea4c80dc63a8 | |
parent | e96f3daac78e3971e4500a31e72c0a7e5845c3d1 (diff) | |
download | mesa-baserock/michaeldrake/architecture-agnostic-mesa.tar.gz |
Make morphologies architecture agnostic.baserock/michaeldrake/architecture-agnostic-mesabaserock/liw/x-consolidation
The intel, i915, and i965 dri drivers are only for x86 systems.
-rw-r--r-- | mesa-wayland.morph | 30 | ||||
-rw-r--r-- | mesa-x.morph | 30 |
2 files changed, 44 insertions, 16 deletions
diff --git a/mesa-wayland.morph b/mesa-wayland.morph index 8062a0d868d..7f51683be79 100644 --- a/mesa-wayland.morph +++ b/mesa-wayland.morph @@ -1,8 +1,22 @@ -{ - "name": "mesa-wayland", - "kind": "chunk", - "build-system": "autotools", - "configure-commands": [ - "./autogen.sh --prefix=\"$PREFIX\" --enable-gles2 --disable-gallium-egl --with-egl-platforms=wayland,drm --enable-gbm --enable-shared-glapi --with-gallium-drivers=swrast --with-dri-drivers=swrast" - ] -} +name: mesa-wayland +kind: chunk + +build-system: autotools +configure-commands: + - | + cpu=$(echo $TARGET | cut -d '-' -f 1) + case "$cpu" in + x86_32|x64_64) + DRIDRIVERS=intel,i915,i965,swrast + ;; + *) + DRIDRIVERS=swrast + ;; + esac + ./autogen.sh --prefix="$PREFIX" \ + --enable-gles2 \ + --disable-gallium-egl \ + --with-egl-platforms=wayland,drm \ + --enable-gbm --enable-shared-glapi \ + --with-gallium-drivers=swrast \ + --with-dri-drivers=$DRIDRIVERS diff --git a/mesa-x.morph b/mesa-x.morph index 654975bf389..1076b28406d 100644 --- a/mesa-x.morph +++ b/mesa-x.morph @@ -1,8 +1,22 @@ -{ - "name": "mesa-x", - "kind": "chunk", - "build-system": "autotools", - "configure-commands": [ - "./autogen.sh --prefix=\"$PREFIX\" --enable-gles2 --disable-gallium-egl --with-egl-platforms=x11,drm --enable-gbm --enable-shared-glapi --with-gallium-drivers=swrast --with-dri-drivers=swrast" - ] -} +name: mesa-x +kind: chunk + +build-system: autotools +configure-commands: + - | + cpu=$(echo $TARGET | cut -d '-' -f 1) + case "$cpu" in + x86_32|x64_64) + DRIDRIVERS=intel,i915,i965,swrast + ;; + *) + DRIDRIVERS=swrast + ;; + esac + ./autogen.sh --prefix="$PREFIX" \ + --enable-gles2 \ + --disable-gallium-egl \ + --with-egl-platforms=x11,drm \ + --enable-gbm --enable-shared-glapi \ + --with-gallium-drivers=swrast \ + --with-dri-drivers=$DRIDRIVERS |