]> code.ossystems Code Review - meta-freescale.git/commitdiff
isp-imx: Cleanup packaging
authorTom Hochstein <tom.hochstein@nxp.com>
Tue, 27 Apr 2021 22:38:20 +0000 (17:38 -0500)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 30 Apr 2021 18:09:16 +0000 (15:09 -0300)
Rework the packaging section of the recipe, reducing the packaging
overrides to a minimum to handle a) installation to /opt, and b) the
mix of versioned and unversioned libraries.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
recipes-bsp/isp-imx/isp-imx_4.2.2.11.0.bb

index 53894baf88f2560d8158f0c014e880642bf3af15..b106b985f69c3ad0df7e8116eb2f46107b48700c 100644 (file)
@@ -70,12 +70,16 @@ do_install() {
 
 RDEPENDS_${PN} = "libdrm libpython3"
 
-PACKAGES = "${PN} ${PN}-dev ${PN}-dbg"
-
-FILES_${PN} = "${libdir} /opt ${systemd_system_unitdir}/imx8-isp.service"
-FILES_${PN}-dbg += "${libdir}/.debug"
+# The build contains a mix of versioned and unversioned libraries, so
+# the default packaging configuration needs some modifications
+FILES_SOLIBSDEV = ""
+FILES_${PN} += "/opt ${libdir}/lib*${SOLIBSDEV}"
+FILES_${PN}-dev += " \
+    ${libdir}/libjsoncpp.so \
+    ${libdir}/libos08a20.so \
+    ${libdir}/libov2775.so \
+"
 
-INSANE_SKIP_${PN} += "rpaths dev-deps dev-so"
-INSANE_SKIP_${PN}-dev += "rpaths dev-elf"
+INSANE_SKIP_${PN} = "rpaths"
 
 COMPATIBLE_MACHINE = "(imx|use-nxp-bsp)"