From eef582d3ce685214849aaa5a15898c3367554f3e Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Thu, 14 Apr 2016 22:17:55 +0100 Subject: mesa: Use architecture specific configure options. Only build the drivers available on aarch64. --- org.freedesktop.Sdk.json | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/org.freedesktop.Sdk.json b/org.freedesktop.Sdk.json index d3572fd..7a2abf4 100644 --- a/org.freedesktop.Sdk.json +++ b/org.freedesktop.Sdk.json @@ -941,7 +941,21 @@ { "name": "mesa", "build-options" : { - "cxxflags": "-O2 -g -fno-rtti -fno-exceptions" + "cxxflags": "-O2 -g -fno-rtti -fno-exceptions", + "arch" : { + "i386" : { + "config-opts" : [ + "--with-gallium-drivers=svga,swrast,nouveau,r600,r300,radeonsi", + "--with-dri-drivers=swrast,nouveau,radeon,r200,i915,i965" + ] + }, + "aarch64" : { + "config-opts" : [ + "--with-gallium-drivers=svga,swrast,nouveau,freedreno,vc4", + "--with-dri-drivers=swrast,nouveau,radeon,r200" + ] + } + } }, "config-opts": [ "--disable-selinux", @@ -960,9 +974,7 @@ "--enable-gallium-llvm", "--enable-llvm-shared-libs", "--enable-dri", - "--enable-sysfs", - "--with-gallium-drivers=svga,swrast,nouveau,r600,r300,radeonsi", - "--with-dri-drivers=swrast,nouveau,radeon,r200,i915,i965" + "--enable-sysfs" ], "make-args": [ "MKDEP=/bin/true"], "sources": [ -- cgit v1.2.3