]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-g2d-samples: New recipe for G2D sample apps
authorTom Hochstein <tom.hochstein@nxp.com>
Wed, 26 Jan 2022 23:39:29 +0000 (17:39 -0600)
committerTom Hochstein <tom.hochstein@nxp.com>
Sat, 29 Jan 2022 22:10:03 +0000 (16:10 -0600)
The G2D sample apps are now available as source. Note that the package
is currently limited to GPU-based G2D and is not compatible with
DPU-based G2D. A future release will add DPU support.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
recipes-graphics/imx-g2d/imx-g2d-samples_1.0.0.bb [new file with mode: 0644]

diff --git a/recipes-graphics/imx-g2d/imx-g2d-samples_1.0.0.bb b/recipes-graphics/imx-g2d/imx-g2d-samples_1.0.0.bb
new file mode 100644 (file)
index 0000000..b3f1051
--- /dev/null
@@ -0,0 +1,22 @@
+SUMMARY = "i.MX G2D Samples"
+DESCRIPTION = "Set of sample applications for i.MX G2D"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://COPYING;md5=0858ec9c7a80c4a2cf16e4f825a2cc91"
+
+# This package is currently only for GPU-based G2D. Support for DPU-based G2d is coming.
+DEPENDS = "imx-gpu-g2d"
+
+GPU_G2D_SAMPLES_SRC ?= "git://github.com/nxpmicro/g2d-samples.git;protocol=https"
+SRCBRANCH ?= "imx_1.0"
+SRC_URI = "${GPU_G2D_SAMPLES_SRC};branch=${SRCBRANCH}"
+SRCREV = "daf64d010666ef2458566573c074e238993f228c"
+
+S = "${WORKDIR}/git"
+
+do_configure[noexec] = "1"
+
+do_install() {
+    oe_runmake install DESTDIR=${D} PREFIX=${exec_prefix}
+}
+
+FILES:${PN} += "/opt"