From patchwork Mon Mar 31 20:06:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bernd Kuhls X-Patchwork-Id: 335578 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 6CEA9140092 for ; Tue, 1 Apr 2014 07:07:33 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D42158B7FA; Mon, 31 Mar 2014 20:07:18 +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 S2pKxjZ6xaXX; Mon, 31 Mar 2014 20:07:17 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id F415B8B66A; Mon, 31 Mar 2014 20:07:11 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id B21391BF992 for ; Mon, 31 Mar 2014 20:06:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id AC5D830CBF for ; Mon, 31 Mar 2014 20:06:49 +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 EVNyO3JAT6sJ for ; Mon, 31 Mar 2014 20:06:49 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailout03.t-online.de (mailout03.t-online.de [194.25.134.81]) by silver.osuosl.org (Postfix) with ESMTPS id F08632427C for ; Mon, 31 Mar 2014 20:06:48 +0000 (UTC) Received: from fwd23.aul.t-online.de (fwd23.aul.t-online.de [172.20.26.128]) by mailout03.t-online.de (Postfix) with SMTP id 8AE2152F026 for ; Mon, 31 Mar 2014 22:06:47 +0200 (CEST) Received: from fli4l.lan.fli4l (JOsbJeZE8h6lvtiJsRrSqStIj5E7fnMwnrdUnD-XNLnkDNcpmQ-fnRyy-OuecnpQEf@[87.146.222.86]) by fwd23.t-online.de with esmtp id 1WUiTh-0XkcBU0; Mon, 31 Mar 2014 22:06:41 +0200 Received: from [192.168.1.122] (port=41152 helo=fli4lbuild64.lan.fli4l) by fli4l.lan.fli4l with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.80.1) (envelope-from ) id 1WUiTg-00055d-St; Mon, 31 Mar 2014 22:06:41 +0200 From: Bernd Kuhls To: buildroot@buildroot.org Date: Mon, 31 Mar 2014 22:06:27 +0200 Message-Id: <1396296389-28821-15-git-send-email-bernd.kuhls@t-online.de> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1396296389-28821-1-git-send-email-bernd.kuhls@t-online.de> References: <1396296389-28821-1-git-send-email-bernd.kuhls@t-online.de> X-ID: JOsbJeZE8h6lvtiJsRrSqStIj5E7fnMwnrdUnD-XNLnkDNcpmQ-fnRyy-OuecnpQEf X-TOI-MSGID: a985c6ba-796a-41d0-91fc-e5f4b78c187a Cc: Bernd Kuhls Subject: [Buildroot] [PATCH 14/16] opengl: New virtual package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net Signed-off-by: Bernd Kuhls --- package/mesa3d/Config.in | 4 ++++ package/opengl/Config.in | 1 + package/opengl/libgl/Config.in | 6 ++++++ package/opengl/libgl/libgl.mk | 16 ++++++++++++++++ 4 files changed, 27 insertions(+) create mode 100644 package/opengl/libgl/Config.in create mode 100644 package/opengl/libgl/libgl.mk diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in index 8ed0c07..d735e76 100644 --- a/package/mesa3d/Config.in +++ b/package/mesa3d/Config.in @@ -34,6 +34,7 @@ comment "DRI drivers need shared libdrm" config BR2_PACKAGE_MESA3D_DRIVER bool + select BR2_PACKAGE_HAS_OPENGL_GL menu "Drivers" @@ -106,6 +107,9 @@ config BR2_PACKAGE_MESA3D_OPENGL_ES endmenu +config BR2_PACKAGE_PROVIDES_OPENGL_GL + default "mesa3d" if BR2_PACKAGE_MESA3D_DRIVER + config BR2_PACKAGE_PROVIDES_OPENGL_EGL default "mesa3d" if BR2_PACKAGE_MESA3D_OPENGL_EGL diff --git a/package/opengl/Config.in b/package/opengl/Config.in index ed81835..02010a9 100644 --- a/package/opengl/Config.in +++ b/package/opengl/Config.in @@ -1,4 +1,5 @@ source "package/opengl/libegl/Config.in" +source "package/opengl/libgl/Config.in" source "package/opengl/libgles/Config.in" source "package/opengl/libopenvg/Config.in" source "package/opengl/libopenmax/Config.in" diff --git a/package/opengl/libgl/Config.in b/package/opengl/libgl/Config.in new file mode 100644 index 0000000..5421c86 --- /dev/null +++ b/package/opengl/libgl/Config.in @@ -0,0 +1,6 @@ +config BR2_PACKAGE_HAS_OPENGL_GL + bool + +config BR2_PACKAGE_PROVIDES_OPENGL_GL + depends on BR2_PACKAGE_HAS_OPENGL_GL + string diff --git a/package/opengl/libgl/libgl.mk b/package/opengl/libgl/libgl.mk new file mode 100644 index 0000000..66346d6 --- /dev/null +++ b/package/opengl/libgl/libgl.mk @@ -0,0 +1,16 @@ +################################################################################ +# +# libgl +# +################################################################################ + +LIBGL_SOURCE = +LIBGL_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_OPENGL_GL)) + +ifeq ($(BR2_PACKAGE_HAS_OPENGL_GL),y) +ifeq ($(LIBGL_DEPENDENCIES),) +$(error No libGL implementation selected. Configuration error.) +endif +endif + +$(eval $(generic-package))