diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2021-05-04 11:13:42 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2021-05-06 10:44:14 +0200 |
commit | 1df6586ddf02afe3833416604ccfa2eaf1d278a8 (patch) | |
tree | 821abf8ed055cbccf28f65db691a923239691268 /backports | |
parent | dc80e813d1e9dd11102d5a27a0cf27df8153d64d (diff) |
imx-vpu-hantro-vc: backport do_install change
Backport effect of meta-freescale commit 0a435d64 ("imx-vpu-hantro-vc:
add do_install function")
Related-to: ELB-3957
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'backports')
-rw-r--r-- | backports/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.3.0.bb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/backports/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.3.0.bb b/backports/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.3.0.bb index 22f620f..bd08789 100644 --- a/backports/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.3.0.bb +++ b/backports/recipes-bsp/imx-vpu-hantro-vc/imx-vpu-hantro-vc_1.3.0.bb @@ -13,4 +13,23 @@ S = "${WORKDIR}/${BPN}-${PV}" SRC_URI[md5sum] = "37c61718602ff08041b81319cfd6a8d9" SRC_URI[sha256sum] = "8425796fc63d7107f2f57c51497281c4d54c883b2670817347fbe55f39dc2b8c" +# 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)" |