]> code.ossystems Code Review - meta-freescale.git/commitdiff
imx-vpu-hantro-vc: add do_install function
authorChris Dimich <Chris.Dimich@boundarydevices.com>
Mon, 8 Mar 2021 23:17:11 +0000 (15:17 -0800)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 10 Mar 2021 19:42:53 +0000 (16:42 -0300)
The encoding library was not previously being installed.

Signed-off-by: Chris Dimich <Chris.Dimich@boundarydevices.com>
(cherry picked from commit 0a435d64e588843f6943d6e5723e5ecc12990aa2)

recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.2.0.bb

index a38d064fae0509aeec1b9a19ca568a6d66362d1c..8414e53e10d851adbcb0c0d5abd7296470ab48b9 100644 (file)
@@ -13,4 +13,23 @@ S = "${WORKDIR}/${BPN}-${PV}"
 SRC_URI[md5sum] = "d2b7c0cfdb380e5a65a94251c2437a34"
 SRC_URI[sha256sum] = "10a7f60964feb9641291815876fb8110dfec603c6451ed9b9c7fe57c23afd10e"
 
+# 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)"