From 8a5c4a3121bd2ee5f9212c505a3afc81155e64fe Mon Sep 17 00:00:00 2001 From: Hector Palacios Date: Mon, 18 Jun 2018 17:45:24 +0200 Subject: [PATCH] imx-dpu-g2d: add DPU recipe The Display Processing Unit (DPU) on the i.MX8 is what NXP used to call Image Processing Unit (IPU) on the i.MX6 family. Signed-off-by: Hector Palacios --- .../imx-dpu-g2d/imx-dpu-g2d_1.2.0.bb | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 meta-digi-dey/recipes-graphics/imx-dpu-g2d/imx-dpu-g2d_1.2.0.bb diff --git a/meta-digi-dey/recipes-graphics/imx-dpu-g2d/imx-dpu-g2d_1.2.0.bb b/meta-digi-dey/recipes-graphics/imx-dpu-g2d/imx-dpu-g2d_1.2.0.bb new file mode 100644 index 000000000..d12665fe0 --- /dev/null +++ b/meta-digi-dey/recipes-graphics/imx-dpu-g2d/imx-dpu-g2d_1.2.0.bb @@ -0,0 +1,38 @@ +# Copyright (C) 2016 Freescale Semiconductor +# Copyright 2017 NXP +# Released under the MIT license (see COPYING.MIT for the terms) + +DESCRIPTION = "GPU G2D library and apps for imx8" +LICENSE = "Proprietary" +LIC_FILES_CHKSUM = "file://COPYING;md5=08fd295cce89b0a9c74b9b83ed74f671" + +RDEPENDS_${PN} = "libgal-imx" + +PROVIDES += "virtual/libg2d" + +SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true" + +S="${WORKDIR}/${PN}-${PV}" + +inherit fsl-eula-unpack + +SRC_URI[md5sum] = "184d34978b65363bc1dcc885cb542f00" +SRC_URI[sha256sum] = "9d6de9dda50e30c9ef8453eb22533ce1d2bde5a85b14d39138005c3324d94da7" + +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} +} + +INSANE_SKIP_${PN} += "ldflags" + +FILES_${PN} = "${libdir}/libg2d* /opt" +FILES_${PN}-dev = "${libdir}/libg2d${SOLIBSDEV} ${includedir}" + +# Compatible only with i.MX DPU +COMPATIBLE_MACHINE = "(^$)" +COMPATIBLE_MACHINE_imxdpu = "${MACHINE}"