From 58184f4ec6e75aca9ace08363d77b751a65cfc8b Mon Sep 17 00:00:00 2001 From: Tom Hochstein Date: Wed, 11 May 2022 10:51:57 -0500 Subject: imx-dpu-g2d: Upgrade 1.9.4 -> 2.0.0 This version uses G2D API 2.0. The sample applications are moved to recipe imx-g2d-samples. Signed-off-by: Tom Hochstein (cherry picked from commit 015caea5c777384b44dda89e8c76dadaecc84ddc) --- recipes-graphics/imx-g2d/imx-dpu-g2d_1.9.4.bb | 35 --------------------------- recipes-graphics/imx-g2d/imx-dpu-g2d_2.0.0.bb | 27 +++++++++++++++++++++ 2 files changed, 27 insertions(+), 35 deletions(-) delete mode 100644 recipes-graphics/imx-g2d/imx-dpu-g2d_1.9.4.bb create mode 100644 recipes-graphics/imx-g2d/imx-dpu-g2d_2.0.0.bb (limited to 'recipes-graphics') diff --git a/recipes-graphics/imx-g2d/imx-dpu-g2d_1.9.4.bb b/recipes-graphics/imx-g2d/imx-dpu-g2d_1.9.4.bb deleted file mode 100644 index c340505e..00000000 --- a/recipes-graphics/imx-g2d/imx-dpu-g2d_1.9.4.bb +++ /dev/null @@ -1,35 +0,0 @@ -# Copyright (C) 2016 Freescale Semiconductor -# Copyright 2017-2021 NXP -# Released under the MIT license (see COPYING.MIT for the terms) - -DESCRIPTION = "GPU G2D library and apps for i.MX with 2D GPU and DPU" -LICENSE = "Proprietary" -LIC_FILES_CHKSUM = "file://COPYING;md5=e565271ec9a80ce47abbddc4bffe56fa" -PROVIDES += "virtual/libg2d" - -SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true" -SRC_URI[md5sum] = "0b7fc529b3af3ecc3087a99cca0c627d" -SRC_URI[sha256sum] = "42d470373fd72b2e2aa8d8a226e133c61b0a88e4e5bddbfec9509f7d2764f206" - -inherit fsl-eula-unpack - -do_install () { - install -d ${D}${libdir} - install -d ${D}${includedir} - cp -r ${S}/g2d/usr/lib/*.so* ${D}${libdir} - cp -Pr ${S}/g2d/usr/include/* ${D}${includedir} - cp -r ${S}/gpu-demos/opt ${D} -} - -FILES:${PN} = "${libdir}/libg2d* /opt" -FILES:${PN}-dev = "${libdir}/libg2d${SOLIBSDEV} ${includedir}" -INSANE_SKIP:${PN} += "ldflags" - -RDEPENDS:${PN} = "libgal-imx libdrm libopencl-imx" - -# This is required to provide support for VPU Amphion HEVC tile format -# From NXP [MGS-5547] (commit e175d6b4f78deab24d319b852998bef55cdecc99): -# VPU Amphion HEVC tile support was added using OpenCL, so add a dependency on libopencl-imx. -RDEPENDS:${PN} += "libopencl-imx" - -COMPATIBLE_MACHINE = "(imxdpu)" diff --git a/recipes-graphics/imx-g2d/imx-dpu-g2d_2.0.0.bb b/recipes-graphics/imx-g2d/imx-dpu-g2d_2.0.0.bb new file mode 100644 index 00000000..c8e4169d --- /dev/null +++ b/recipes-graphics/imx-g2d/imx-dpu-g2d_2.0.0.bb @@ -0,0 +1,27 @@ +# Copyright (C) 2016 Freescale Semiconductor +# Copyright 2017-2022 NXP +# Released under the MIT license (see COPYING.MIT for the terms) + +DESCRIPTION = "G2D library using i.MX DPU" +LICENSE = "Proprietary" +LIC_FILES_CHKSUM = "file://COPYING;md5=be5ff43682ed6c57dfcbeb97651c2829" + +DEPENDS = "libgal-imx libdrm" +PROVIDES += "virtual/libg2d" + +SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true" +SRC_URI[md5sum] = "96bc124401896dec1272a86cb2baef54" +SRC_URI[sha256sum] = "8e636b65b08cba6b4c2130c8dbff81ee1af42ef818c013aede81ab7e321899a4" + +inherit fsl-eula-unpack + +do_install () { + install -d ${D}${libdir} + install -d ${D}${includedir} + cp -r ${S}/g2d/usr/lib/*.so* ${D}${libdir} + cp -Pr ${S}/g2d/usr/include/* ${D}${includedir} +} + +INSANE_SKIP:${PN} += "ldflags" + +COMPATIBLE_MACHINE = "(imxdpu)" -- cgit v1.2.3-54-g00ecf