Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Gary Bisson <gary.bisson@boundarydevices.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 05/16] imx-gpu-g2d: new package
Date: Wed,  3 Jan 2018 19:38:31 +0100	[thread overview]
Message-ID: <20180103183842.10182-6-gary.bisson@boundarydevices.com> (raw)
In-Reply-To: <20180103183842.10182-1-gary.bisson@boundarydevices.com>

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 <gary.bisson@boundarydevices.com>
---
 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))
-- 
2.15.1

  parent reply	other threads:[~2018-01-03 18:38 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-03 18:38 [Buildroot] [PATCH 00/16] imx: update packages to 4.9.x_1.0.0_ga release Gary Bisson
2018-01-03 18:38 ` [Buildroot] [PATCH 01/16] freescale-imx: add config options for i.MX6SL/SX and i.MX7D/ULP Gary Bisson
2018-01-03 18:38 ` [Buildroot] [PATCH 02/16] imx-lib: bump to version imx_4.9.11_1.0.0_ga Gary Bisson
2018-01-03 20:48   ` Thomas Petazzoni
2018-01-04  9:48     ` Gary Bisson
2018-01-04  9:58       ` Thomas Petazzoni
2018-01-03 18:38 ` [Buildroot] [PATCH 03/16] imx-gpu-viv: bump to version 6.2.2.p0 Gary Bisson
2018-01-03 20:47   ` Thomas Petazzoni
2018-01-03 18:38 ` [Buildroot] [PATCH 04/16] kernel-module-imx-gpu-viv: " Gary Bisson
2018-01-03 18:38 ` Gary Bisson [this message]
2018-01-03 18:38 ` [Buildroot] [PATCH 06/16] xdriver_xf86-video-imx-viv: " Gary Bisson
2018-01-03 20:50   ` Thomas Petazzoni
2018-01-04 10:32     ` Gary Bisson
2018-01-04 10:41       ` Thomas Petazzoni
2018-01-03 18:38 ` [Buildroot] [PATCH 07/16] gst1-imx: update g2d libraries dependencies Gary Bisson
2018-01-03 20:52   ` Thomas Petazzoni
2018-01-03 18:38 ` [Buildroot] [PATCH 08/16] firmware-imx: bump to version 6.0 Gary Bisson
2018-01-03 18:38 ` [Buildroot] [PATCH 09/16] imx-codec: bump to version 4.2.1 Gary Bisson
2018-01-03 18:54   ` Baruch Siach
2018-01-03 18:38 ` [Buildroot] [PATCH 10/16] imx-parser: " Gary Bisson
2018-01-03 20:53   ` Thomas Petazzoni
2018-01-03 18:38 ` [Buildroot] [PATCH 11/16] imx-vpu: bump to version 5.4.37 Gary Bisson
2018-01-03 18:38 ` [Buildroot] [PATCH 12/16] imx-kobs: bump revision to a0e9adce Gary Bisson
2018-01-03 18:38 ` [Buildroot] [PATCH 13/16] imx-uuc: bump revision to 2ae63428 Gary Bisson
2018-01-03 18:38 ` [Buildroot] [PATCH 14/16] configs: freescale_imx*: bump to version 4.9.x_1.0.0_ga Gary Bisson
2018-01-03 18:38 ` [Buildroot] [PATCH 15/16] configs: nitrogen*: bump kernel version to 4.9.x_1.0.0_ga Gary Bisson
2018-01-03 18:38 ` [Buildroot] [PATCH 16/16] configs: nitrogen*: bump u-boot version to 2017.07 Gary Bisson
2018-01-03 20:54 ` [Buildroot] [PATCH 00/16] imx: update packages to 4.9.x_1.0.0_ga release Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180103183842.10182-6-gary.bisson@boundarydevices.com \
    --to=gary.bisson@boundarydevices.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox