diff options
author | Michael Drake <michael.drake@codethink.co.uk> | 2014-07-16 10:50:55 +0000 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2014-07-24 13:21:00 +0100 |
commit | e8bbcf9e52fbb3952690b9866e0edc83ffdc3cbe (patch) | |
tree | 1f5359e78571acbb58f50308dc5c0f83fa2837ab | |
parent | d6f213a3927d9f1e915985eb17440a05b040dd63 (diff) | |
download | mesa-baserock/gnome.tar.gz |
Make morphologies architecture agnostic.baserock/gnome
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 |