From patchwork Sun Jan 18 12:11:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 430184 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 9651F1401DA for ; Sun, 18 Jan 2015 23:12:03 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D3DC9927D7; Sun, 18 Jan 2015 12:12:02 +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 SKhbPUwnBu+0; Sun, 18 Jan 2015 12:11:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 630AB927A6; Sun, 18 Jan 2015 12:11:49 +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 1F3981C2209 for ; Sun, 18 Jan 2015 12:11:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 1AC4630BA7 for ; Sun, 18 Jan 2015 12:11:46 +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 mx111b2PqtiV for ; Sun, 18 Jan 2015 12:11:45 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f179.google.com (mail-we0-f179.google.com [74.125.82.179]) by silver.osuosl.org (Postfix) with ESMTPS id C7DCA309D5 for ; Sun, 18 Jan 2015 12:11:44 +0000 (UTC) Received: by mail-we0-f179.google.com with SMTP id q59so3497716wes.10 for ; Sun, 18 Jan 2015 04:11:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=4FxFD5mElbEg9OIBgedOb2mbDycf0i7MnN6/D3/Iuks=; b=J6B1V82o9L1vpNyNiv80hMStapnGAqVgM7TwBteUz2BCZJiGN1sZNLCctt13/stTOP iFni5FnSL/N2feUGXIOnVU/jRJMoPtoguGftzhYHzweQnmS6OMum4hrrZMyiTzqy0fQx S3hNCD6ovjS4wab6nn3K3FM+rvcyUemWzVBo6HsMM392rWU1gPM6XLwfwerB8rT0eZQy 7B8OhPqJNjXwXLmWlmFjbYyMSYAH+lYwOJE2lFpL/6AnB5JtWjBkOBl0dlh00FZsmIWN LKCYdAd2T4KEODX/YVt3/dSnLMX7FheAX60GirsAk1GwrMlYU041tmKr04vi95Tdnp0r dhTA== X-Received: by 10.194.178.5 with SMTP id cu5mr10041776wjc.81.1421583103333; Sun, 18 Jan 2015 04:11:43 -0800 (PST) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id l9sm10070685wic.21.2015.01.18.04.11.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Jan 2015 04:11:42 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sun, 18 Jan 2015 13:11:27 +0100 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH 05/11 v4] package/openmax-registry: new package 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" The OpenMAX Registry provides all OpenMAX headers, directly from the Khronos group. Those headers are needed when an OpenMAX implementation does not provide them, like the NVidia binary blob. Signed-off-by: "Yann E. MORIN" Cc: Nicolas Serafini --- package/opengl/khronos-registry/Config.in | 1 + .../khronos-registry/openmax-registry/Config.in | 20 ++++++++++++++++ .../openmax-registry/opengl-registry.hash | 3 +++ .../openmax-registry/opengl-registry.mk | 27 ++++++++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 package/opengl/khronos-registry/openmax-registry/Config.in create mode 100644 package/opengl/khronos-registry/openmax-registry/opengl-registry.hash create mode 100644 package/opengl/khronos-registry/openmax-registry/opengl-registry.mk diff --git a/package/opengl/khronos-registry/Config.in b/package/opengl/khronos-registry/Config.in index ee550e9..e936b9e 100644 --- a/package/opengl/khronos-registry/Config.in +++ b/package/opengl/khronos-registry/Config.in @@ -1,3 +1,4 @@ source "package/opengl/khronos-registry/khrplatform-registry/Config.in" source "package/opengl/khronos-registry/openkode-registry/Config.in" source "package/opengl/khronos-registry/opengl-registry/Config.in" +source "package/opengl/khronos-registry/openmax-registry/Config.in" diff --git a/package/opengl/khronos-registry/openmax-registry/Config.in b/package/opengl/khronos-registry/openmax-registry/Config.in new file mode 100644 index 0000000..c9af0bb --- /dev/null +++ b/package/opengl/khronos-registry/openmax-registry/Config.in @@ -0,0 +1,20 @@ +# Note: this package has no prompt, because it is to be selected by +# packages that need it, and does not make sense on its own. +# Further more, we want to avoid it being enabled alongside any other +# package that provide their own OpenMAX headers, like rpi-userland... + +config BR2_PACKAGE_OPENMAX_REGISTRY + bool + select BR2_PACKAGE_KHRPLATFORM_REGISTRY + help + The OpenMAX IL registry contains specifications of the core API; + specifications of Khronos- and vendor-approved OpenMAX IL extensions; + header files corresponding to the specifications; and other related + documentation. + + This package installs the OpenMAX header files. You do not need them + if the OpenMAX implementation provides its own headers. + Currently, the only known implementation requiring OpenGL Resgistry + is the NVidia proprietary driver. + + https://www.khronos.org/registry/omxil/ diff --git a/package/opengl/khronos-registry/openmax-registry/opengl-registry.hash b/package/opengl/khronos-registry/openmax-registry/opengl-registry.hash new file mode 100644 index 0000000..e2f5014 --- /dev/null +++ b/package/opengl/khronos-registry/openmax-registry/opengl-registry.hash @@ -0,0 +1,3 @@ +# Locally computed: +sha1 35b2c565a050b4235feac3f22bbbf4bf80092a00 OpenMAX_IL_1_1_2_Header.zip +sha256 9e8aee85f37946202ff15a52836233f983e90a751c0816ba341ba0c1ffedf99e OpenMAX_IL_1_1_2_Header.zip diff --git a/package/opengl/khronos-registry/openmax-registry/opengl-registry.mk b/package/opengl/khronos-registry/openmax-registry/opengl-registry.mk new file mode 100644 index 0000000..aecca00 --- /dev/null +++ b/package/opengl/khronos-registry/openmax-registry/opengl-registry.mk @@ -0,0 +1,27 @@ +################################################################################ +# +# openmax-registry +# +################################################################################ + +# Using last revision at which the 'api' directory was *changed* +OPENMAX_REGISTRY_VERSION = 1.1.2 +OPENMAX_REGISTRY_SOURCE = OpenMAX_IL_$(subst .,_,$(OPENMAX_REGISTRY_VERSION))_Header.zip +OPENMAX_REGISTRY_SITE = https://www.khronos.org/registry/omxil/api/$(OPENMAX_REGISTRY_VERSION) +OPENMAX_REGISTRY_LICENSE = MIT + +# The registry only installs header files +OPENMAX_REGISTRY_INSTALL_STAGING = YES +OPENMAX_REGISTRY_INSTALL_TARGET = NO + +define OPENMAX_REGISTRY_EXTRACT_CMDS + $(UNZIP) $(DL_DIR)/$(OPENMAX_REGISTRY_SOURCE) -d $(@D) +endef + +define OPENMAX_REGISTRY_INSTALL_STAGING_CMDS + for h in $(@D)/*.h; do \ + $(INSTALL) -D -m 0644 $${h} $(STAGING_DIR)/usr/include/$${h##*/} || exit 1; \ + done +endef + +$(eval $(generic-package))