From patchwork Fri Jan 5 14:39:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 856065 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=boundarydevices-com.20150623.gappssmtp.com header.i=@boundarydevices-com.20150623.gappssmtp.com header.b="if818rTe"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zCnQ34nlcz9s7g for ; Sat, 6 Jan 2018 01:40:11 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1C6678A293; Fri, 5 Jan 2018 14:40:09 +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 gk17uFO5Fa3s; Fri, 5 Jan 2018 14:40:03 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 816228A351; Fri, 5 Jan 2018 14:40:03 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 777E31BFF0C for ; Fri, 5 Jan 2018 14:40:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6B71889CB4 for ; Fri, 5 Jan 2018 14:40: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 1BD9tsVnbr6G for ; Fri, 5 Jan 2018 14:40:00 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) by whitealder.osuosl.org (Postfix) with ESMTPS id 650C189CB0 for ; Fri, 5 Jan 2018 14:39:59 +0000 (UTC) Received: by mail-lf0-f48.google.com with SMTP id f3so5367129lfe.4 for ; Fri, 05 Jan 2018 06:39:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Uj7afX2uAlAX+z6ZjYErTzNNat1nTdlsr0CHZrbkqX0=; b=if818rTeeAs0XX3Yhr59UOcLKaFh42TbYL3QlhHOyTZYdzLIIiyJ7+MqaJhDutrwsO d9tr8f8rZTHfuuAMP8AThG4tuUvlhYHDm5kMY/aRs835gQpoeztWilMHlq2aYYPAoTBJ W/Z5p+cwu/r8ALqgXnbD4WKIX+3fszDdzsOO3YZ5MN9/WWQv063rBm+mRp8Z8gRF7IF9 H33cdDNUhsiHwgnHBwObLv4AhtJqfD8gsEIYV0wMffS2qEM/Vj1brPv2Mo96YeYuDGJr j5w+Raxnxrq5ihomM0I8DjnMnqXBPk0WxY0Hvds5GXmniD6mnRpJK3KvwpN6RmQPhy7u P9tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Uj7afX2uAlAX+z6ZjYErTzNNat1nTdlsr0CHZrbkqX0=; b=pLf5aXjGhjVG/BGYdk30sowQXWgX3lbOvFmr1lDCXjJUPV+oO3njMV91dgZSJhRo0U 1hn/nXWfZ3shZNOo4VV0N1hOHUdTseF8w5rB79PvMn7gtuA6EZzqAmqsPuBJAWXBmdRW wYjA8+1WDQXczkToyBnLrkdkstIG6t7EywC/rCH+jVgDCF+zYIgkkBnTqFUdOlsG3Xwg 1aceGx6a4nw7wr3dHJTN+2q4xpPbNJ/99iA76UXg+cu5MRAnwqTDY3oD5llBAaoo81Wx pgvABquKF1rYRvFqFiXhrCjZDqvR0QwFbHlvwzbBkLgubrB/zJQG05+TWjLUP0q3Odvk lAeQ== X-Gm-Message-State: AKGB3mKtEVghl2jXCmFGhprh3UfvJRv7M8PL9JW6Y/qxLFYlVb7G3qQg Fo/eyDb38xzu62Oy9zOEqFjHwsj1 X-Google-Smtp-Source: ACJfBosap29tUNCRrrr72CZ9Qs/ZessBJiKUpYMSvQcTBdv3AnPZpOSTPgYqE/2lQzKUSUegUJQ3Qw== X-Received: by 10.46.53.7 with SMTP id z7mr2018850ljz.4.1515163197495; Fri, 05 Jan 2018 06:39:57 -0800 (PST) Received: from t450s.lan (89-92-157-126.hfc.dyn.abo.bbox.fr. [89.92.157.126]) by smtp.googlemail.com with ESMTPSA id i1sm1035158lji.22.2018.01.05.06.39.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jan 2018 06:39:56 -0800 (PST) From: Gary Bisson To: buildroot@buildroot.org Date: Fri, 5 Jan 2018 15:39:35 +0100 Message-Id: <20180105143947.26934-4-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180105143947.26934-1-gary.bisson@boundarydevices.com> References: <20180105143947.26934-1-gary.bisson@boundarydevices.com> Subject: [Buildroot] [PATCH v2 03/15] imx-gpu-g2d: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: thomas.petazzoni@free-electrons.com MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Up until now, the G2D libraries were included inside the imx-gpu-viv package. However, since next version of the i.MX will use a new hardware IP to do 2D rendering (DPU), the GPU 2D libraries have been separated from the 3D GPU package. Tested with the following commands: # /usr/share/examples/g2d_samples/g2d_multiblit_test # /usr/share/examples/g2d_samples/g2d_overlay_test # /usr/share/examples/g2d_samples/g2d_test # gst-launch-1.0 videotestsrc ! imxg2dvideosink Signed-off-by: Gary Bisson --- package/freescale-imx/Config.in | 1 + package/freescale-imx/imx-gpu-g2d/Config.in | 25 +++++++++++++++ package/freescale-imx/imx-gpu-g2d/imx-gpu-g2d.hash | 1 + package/freescale-imx/imx-gpu-g2d/imx-gpu-g2d.mk | 37 ++++++++++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 package/freescale-imx/imx-gpu-g2d/Config.in create mode 100644 package/freescale-imx/imx-gpu-g2d/imx-gpu-g2d.hash create mode 100644 package/freescale-imx/imx-gpu-g2d/imx-gpu-g2d.mk diff --git a/package/freescale-imx/Config.in b/package/freescale-imx/Config.in index e02adf51e3..e1dbdfb3e2 100644 --- a/package/freescale-imx/Config.in +++ b/package/freescale-imx/Config.in @@ -82,6 +82,7 @@ source "package/freescale-imx/gpu-amd-bin-mx51/Config.in" source "package/freescale-imx/libz160/Config.in" endif if BR2_PACKAGE_FREESCALE_IMX_HAS_VIV_GPU +source "package/freescale-imx/imx-gpu-g2d/Config.in" source "package/freescale-imx/imx-gpu-viv/Config.in" source "package/freescale-imx/kernel-module-imx-gpu-viv/Config.in" endif diff --git a/package/freescale-imx/imx-gpu-g2d/Config.in b/package/freescale-imx/imx-gpu-g2d/Config.in new file mode 100644 index 0000000000..47375788d1 --- /dev/null +++ b/package/freescale-imx/imx-gpu-g2d/Config.in @@ -0,0 +1,25 @@ +comment "imx-gpu-g2d needs a glibc toolchain with armhf enabled" + depends on BR2_arm + depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_ARM_EABIHF + +config BR2_PACKAGE_IMX_GPU_G2D + bool "imx-gpu-g2d" + # Pre-built binaries only available for ARM EABIhf + depends on BR2_ARM_EABIHF + # Library binaries are linked against libc.so.6 + depends on BR2_TOOLCHAIN_USES_GLIBC + select BR2_PACKAGE_IMX_GPU_VIV + help + Userspace 2D libraries for Vivante GPU on i.MX platforms. + + This library is provided by NXP as-is and doesn't have an + upstream. + +if BR2_PACKAGE_IMX_GPU_G2D + +config BR2_PACKAGE_IMX_GPU_G2D_EXAMPLES + bool "install examples" + help + Copy the Vivante G2D examples to the target. + +endif diff --git a/package/freescale-imx/imx-gpu-g2d/imx-gpu-g2d.hash b/package/freescale-imx/imx-gpu-g2d/imx-gpu-g2d.hash new file mode 100644 index 0000000000..299ec703f5 --- /dev/null +++ b/package/freescale-imx/imx-gpu-g2d/imx-gpu-g2d.hash @@ -0,0 +1 @@ +sha256 070a95aa9942bd67e8ba4012962df74143bffb9998301ac097dab5e1437000d8 imx-gpu-g2d-6.2.2.p0.bin diff --git a/package/freescale-imx/imx-gpu-g2d/imx-gpu-g2d.mk b/package/freescale-imx/imx-gpu-g2d/imx-gpu-g2d.mk new file mode 100644 index 0000000000..0c92b826c4 --- /dev/null +++ b/package/freescale-imx/imx-gpu-g2d/imx-gpu-g2d.mk @@ -0,0 +1,37 @@ +################################################################################ +# +# imx-gpu-g2d +# +################################################################################ + +IMX_GPU_G2D_VERSION = 6.2.2.p0 +IMX_GPU_G2D_SITE = $(FREESCALE_IMX_SITE) +IMX_GPU_G2D_SOURCE = imx-gpu-g2d-$(IMX_GPU_G2D_VERSION).bin +IMX_GPU_G2D_DEPENDENCIES = imx-gpu-viv +IMX_GPU_G2D_INSTALL_STAGING = YES + +IMX_GPU_G2D_LICENSE = NXP Semiconductor Software License Agreement +IMX_GPU_G2D_LICENSE_FILES = EULA COPYING +IMX_GPU_G2D_REDISTRIBUTE = NO + +define IMX_GPU_G2D_EXTRACT_CMDS + $(call FREESCALE_IMX_EXTRACT_HELPER,$(DL_DIR)/$(IMX_GPU_G2D_SOURCE)) +endef + +define IMX_GPU_G2D_INSTALL_STAGING_CMDS + cp -a $(@D)/g2d/usr/* $(STAGING_DIR)/usr +endef + +ifeq ($(BR2_PACKAGE_IMX_GPU_G2D_EXAMPLES),y) +define IMX_GPU_G2D_INSTALL_EXAMPLES + mkdir -p $(TARGET_DIR)/usr/share/examples/ + cp -a $(@D)/gpu-demos/opt/* $(TARGET_DIR)/usr/share/examples/ +endef +endif + +define IMX_GPU_G2D_INSTALL_TARGET_CMDS + $(IMX_GPU_G2D_INSTALL_EXAMPLES) + cp -a $(@D)/g2d/usr/lib $(TARGET_DIR)/usr +endef + +$(eval $(generic-package))