From 5494d046d3442e31cadfe11b614d020028eada29 Mon Sep 17 00:00:00 2001 From: Carlos Rafael Giani Date: Thu, 30 Mar 2023 23:00:37 +0200 Subject: imx-vpu-hantro-vc: add do_install function The encoding library was not previously being installed. (Backported original commit 1acf098972f9f86b26eee815827667dbd2fcdeaf to dunfell) Signed-off-by: Chris Dimich Signed-off-by: Carlos Rafael Giani --- .../imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.1.0.bb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.1.0.bb b/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.1.0.bb index a44c9027..286f3c87 100644 --- a/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.1.0.bb +++ b/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.1.0.bb @@ -13,4 +13,23 @@ S = "${WORKDIR}/${BPN}-${PV}" SRC_URI[md5sum] = "5c254523ae4c44491ea838e84e9aee49" SRC_URI[sha256sum] = "c5dd1fbf8c9776d7a2844a225e0aa2e489aa24eaab8f55cb48a6e3184def235d" +# SCR is the location and name of the Software Content Register file +# relative to ${D}${D_SUBDIR}. +SCR = "SCR.txt" + +do_install () { + install -d ${D}${D_SUBDIR} + cp -r ${S}/* ${D}${D_SUBDIR} + if [ -d "${D}/usr/lib" ] && [ "${D}/usr/lib" != "${D}${libdir}" ]; then + mv ${D}/usr/lib ${D}${libdir} + fi + rm ${D}${D_SUBDIR}/COPYING + if [ ! -f ${D}${D_SUBDIR}/${SCR} ]; then + bbfatal "Missing Software Content Register \"${D}${D_SUBDIR}/${SCR}\"" + fi + rm ${D}${D_SUBDIR}/${SCR} +} + +FILES_${PN} = "/" + COMPATIBLE_MACHINE = "(mx8mp)" -- cgit v1.2.3-54-g00ecf