From patchwork Sat Oct 3 17:21:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Zwing?= X-Patchwork-Id: 525971 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id CF1331402A8 for ; Sun, 4 Oct 2015 04:22:09 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=dawncrow.de header.i=@dawncrow.de header.b=m9++XS0H; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 19E6730F13; Sat, 3 Oct 2015 17:22:09 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kXMIx4M6822W; Sat, 3 Oct 2015 17:22:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 8461230F26; Sat, 3 Oct 2015 17:22:02 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id CDC7F1BF83A for ; Sat, 3 Oct 2015 17:22:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id C9F1230BCE for ; Sat, 3 Oct 2015 17:22:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HejSIrSglFeJ for ; Sat, 3 Oct 2015 17:21:59 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [81.169.146.163]) by silver.osuosl.org (Postfix) with ESMTPS id B89DA2E420 for ; Sat, 3 Oct 2015 17:21:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1443892916; l=1181; s=domk; d=dawncrow.de; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date:To:Subject: From; bh=e6602UaK8g7geiqD3p+LmC4XeJTC+iSdsQIiwZtNiLo=; b=m9++XS0HQY2g7Stauu4tJwDJN4/AuHKKIUpycPcUJfMb87tQ0KeZYze1a4Sq5Fy20yz KIs17Y0wv8Q17QE7vwn83YNCML9Y25Ll9SnovIoNHauaEUsPgx531YBd7gdmbju7HoBuR 5VdcxqtL/2Sf734P0dN3/Ff9jPMumi0bp78= X-RZG-AUTH: :ImkWY2CseuihIZy6ZWWciR6unPh5JPSWE7VxbdUCFBN5njG7Q28CH4dMe3vtXw== X-RZG-CLASS-ID: mo00 Received: from [192.168.178.40] ([185.61.122.208]) by smtp.strato.de (RZmta 37.12 AUTH) with ESMTPSA id z07486r93HLu2gM (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Sat, 3 Oct 2015 19:21:56 +0200 (CEST) From: =?UTF-8?Q?Andr=c3=a9_Hentschel?= To: buildroot@buildroot.org Message-ID: <56100EB3.2000300@dawncrow.de> Date: Sat, 3 Oct 2015 19:21:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/mesa3d: Add option to build OSMesa 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: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: André Hentschel Signed-off-by: André Hentschel Reviewed-by: Bernd Kuhls --- package/mesa3d/Config.in | 7 +++++++ package/mesa3d/mesa3d.mk | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in index a658986..fdeb599 100644 --- a/package/mesa3d/Config.in +++ b/package/mesa3d/Config.in @@ -117,6 +117,13 @@ config BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON endif # BR2_PACKAGE_XORG7 +comment "Off-screen Rendering" + +config BR2_PACKAGE_MESA3D_OSMESA + bool "OSMesa library" + help + The OSMesa API provides functions for making off-screen renderings. + if BR2_PACKAGE_MESA3D_DRIVER comment "Additional API Support" diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk index f7feb0f..70ec2ec 100644 --- a/package/mesa3d/mesa3d.mk +++ b/package/mesa3d/mesa3d.mk @@ -110,6 +110,12 @@ endif # APIs +ifeq ($(BR2_PACKAGE_MESA3D_OSMESA),y) +MESA3D_CONF_OPTS += --enable-osmesa +else +MESA3D_CONF_OPTS += --disable-osmesa +endif + # Always enable OpenGL: # - it is needed for GLES (mesa3d's ./configure is a bit weird) # - but if no DRI driver is enabled, then libgl is not built,