From patchwork Sun Jun 30 14:05:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 1124905 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=t-online.de Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45cC3J0cm6z9s3C for ; Mon, 1 Jul 2019 00:06:20 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 9130620432; Sun, 30 Jun 2019 14:06:18 +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 EuhS+z4lDNQP; Sun, 30 Jun 2019 14:06:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 76535203E5; Sun, 30 Jun 2019 14:06:16 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id D68E31BF336 for ; Sun, 30 Jun 2019 14:06:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D423187818 for ; Sun, 30 Jun 2019 14:06:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9m3fg5D6iXvb for ; Sun, 30 Jun 2019 14:06:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout10.t-online.de (mailout10.t-online.de [194.25.134.21]) by hemlock.osuosl.org (Postfix) with ESMTPS id 7F686876F4 for ; Sun, 30 Jun 2019 14:06:02 +0000 (UTC) Received: from fwd39.aul.t-online.de (fwd39.aul.t-online.de [172.20.27.138]) by mailout10.t-online.de (Postfix) with SMTP id A4F234125746 for ; Sun, 30 Jun 2019 16:06:00 +0200 (CEST) Received: from fli4l.lan.fli4l (VyuIQYZcghfxvfoLPAUhV+bqOj31nWZmXZrpzUTXmyCDifaS6S7fXbsmlFj4Tvmgi2@[91.58.12.45]) by fwd39.t-online.de with (TLSv1:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1hhaSr-0uGQRE0; Sun, 30 Jun 2019 16:05:57 +0200 Received: from mahler.lan.fli4l ([192.168.1.1]:48398) by fli4l.lan.fli4l with esmtp (Exim 4.92) (envelope-from ) id 1hhaSq-0001eG-I5 for buildroot@buildroot.org; Sun, 30 Jun 2019 16:05:56 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Sun, 30 Jun 2019 16:05:08 +0200 Message-Id: <20190630140525.6537-15-bernd.kuhls@t-online.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190630140525.6537-1-bernd.kuhls@t-online.de> References: <20190630140525.6537-1-bernd.kuhls@t-online.de> MIME-Version: 1.0 X-ID: VyuIQYZcghfxvfoLPAUhV+bqOj31nWZmXZrpzUTXmyCDifaS6S7fXbsmlFj4Tvmgi2 X-TOI-MSGID: 9e754617-a700-4761-a8c8-68abe1474fca Subject: [Buildroot] [PATCH 14/31] package/mesa3d: add option to configure gbm support X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 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" Kodi 18.0-Leia will implement stand-alone gbm support alongside x11 & wayland. To enable building gbm support in mesa3d without x11 & wayland we need to add a specific configure option for it. Signed-off-by: Bernd Kuhls --- package/mesa3d/Config.in | 6 ++++++ package/mesa3d/mesa3d.mk | 9 ++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in index 5dd3895956..cd6dc203c0 100644 --- a/package/mesa3d/Config.in +++ b/package/mesa3d/Config.in @@ -295,10 +295,16 @@ comment "OpenGL GLX support needs X11" comment "Additional API Support" +config BR2_PACKAGE_MESA3D_GBM + bool "gbm" + help + Enable Generic Buffer Management (gbm) + config BR2_PACKAGE_MESA3D_OPENGL_EGL bool "OpenGL EGL" select BR2_PACKAGE_HAS_LIBEGL select BR2_PACKAGE_HAS_LIBEGL_WAYLAND + select BR2_PACKAGE_MESA3D_GBM help Use the Khronos EGL APIs. EGL is a window manager for OpenGL applications similar to GLX, for X, and WGL, for Windows. diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk index 58f0351328..9dd9f4c299 100644 --- a/package/mesa3d/mesa3d.mk +++ b/package/mesa3d/mesa3d.mk @@ -202,10 +202,17 @@ endif MESA3D_CONF_OPTS += \ -Dplatforms=$(subst $(space),$(comma),$(MESA3D_PLATFORMS)) +ifeq ($(BR2_PACKAGE_MESA3D_GBM),y) +MESA3D_CONF_OPTS += \ + -Dgbm=true +else +MESA3D_CONF_OPTS += \ + -Dgbm=false +endif + ifeq ($(BR2_PACKAGE_MESA3D_OPENGL_EGL),y) MESA3D_PROVIDES += libegl MESA3D_CONF_OPTS += \ - -Dgbm=true \ -Degl=true else MESA3D_CONF_OPTS += \