From patchwork Tue Feb 17 22:02:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 440716 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 0A6DB1401F0 for ; Wed, 18 Feb 2015 09:03:01 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id BB722A2E3F; Tue, 17 Feb 2015 22:02:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TMgrElC9-N03; Tue, 17 Feb 2015 22:02:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id A61D1A2E68; Tue, 17 Feb 2015 22:02:58 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id B437D1C294E for ; Tue, 17 Feb 2015 22:02:54 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id AEA8891734 for ; Tue, 17 Feb 2015 22:02:54 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T-jnNhF0SV8f for ; Tue, 17 Feb 2015 22:02:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from marvin.crapouillou.net (rev33.vpn.fdn.fr [80.67.179.33]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2EFA19171E for ; Tue, 17 Feb 2015 22:02:54 +0000 (UTC) Received: from [95.90.198.252] (helo=debian.hitronhub.home) by marvin.crapouillou.net with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA256:128) (Exim 4.80) (envelope-from ) id 1YNqEE-0001Gf-Oo; Tue, 17 Feb 2015 23:02:50 +0100 From: Paul Cercueil To: buildroot@busybox.net Date: Tue, 17 Feb 2015 23:02:56 +0100 Message-Id: <1424210576-18526-3-git-send-email-paul@crapouillou.net> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1424210576-18526-1-git-send-email-paul@crapouillou.net> References: <1424210576-18526-1-git-send-email-paul@crapouillou.net> Cc: Paul Cercueil Subject: [Buildroot] [PATCH 2/2] [RFC] mesa3d: Use LLVM as the shader compiler when applicable X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Paul Cercueil --- package/mesa3d/mesa3d.mk | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk index eb38a9a..7a825f3 100644 --- a/package/mesa3d/mesa3d.mk +++ b/package/mesa3d/mesa3d.mk @@ -24,6 +24,17 @@ MESA3D_DEPENDENCIES = \ host-xutil_makedepend \ libdrm +ifeq ($(BR2_PACKAGE_HOST_LLVM),y) +MESA3D_DEPENDENCIES += elfutils host-llvm +MESA3D_CONF_OPTS += --enable-gallium-llvm=yes \ + --enable-r600-llvm-compiler=yes \ + --with-llvm-prefix=$(HOST_DIR)/usr +else +MESA3D_CONF_OPTS += --enable-llvm-shared-libs=no \ + --enable-r600-llvm-compiler=no \ + --enable-gallium-llvm=no +endif + ifeq ($(BR2_PACKAGE_XORG7),y) MESA3D_DEPENDENCIES += \ xproto_xf86driproto \