[meta-freescale] [meta-fsl-arm][PATCH] fsl-mm-flv-codeclib: Fix packaging

Otavio Salvador otavio at ossystems.com.br
Tue Jan 8 05:11:27 PST 2013


This patch address many packaging issues which are required to allow
development using those libraries. The changes were:

* The pkgconfig file provided is the same provided by
  fsl-mm-codeclib-dev so we cannot duplicate this file, instead we add a
  depends on fsl-mm-codeclib-dev to provide a single pkgconfig file;

* Disable debug split as the binaries are stripped;

* Set PACKAGE_ARCH to MACHINE_ARCH as this binaries are machine
  specific;

* Fix libraries installation as the binary filenames doesn't follow
  the standard naming;

Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
Reported-by: Javier Viguera <javier.viguera at digi.com>
---
 .../fsl-mm-core/fsl-mm-flv-codeclib_2.0.3.bb            |   15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/recipes-multimedia/fsl-mm-core/fsl-mm-flv-codeclib_2.0.3.bb b/recipes-multimedia/fsl-mm-core/fsl-mm-flv-codeclib_2.0.3.bb
index 7509589..731dd2e 100644
--- a/recipes-multimedia/fsl-mm-core/fsl-mm-flv-codeclib_2.0.3.bb
+++ b/recipes-multimedia/fsl-mm-core/fsl-mm-flv-codeclib_2.0.3.bb
@@ -1,11 +1,11 @@
-# Copyright (C) 2011, 2012 Freescale Semicondutors <aalonso at freescale.com>
+# Copyright (C) 2011-2013 Freescale Semicondutors <aalonso at freescale.com>
 # Released under the MIT license (see COPYING.MIT for the terms)
 
 DESCRIPTION = "Freescale Multimedia codec libs"
 LICENSE = "Proprietary"
 SECTION = "multimedia"
 
-PR = "r1"
+PR = "r2"
 
 LIC_FILES_CHKSUM = "file://ghdr/common/fsl_types.h;endline=13;md5=b805ce4a390c94d002ef86bd15ceafd4"
 
@@ -15,17 +15,20 @@ SRC_URI[sha256sum] = "737399c76e8b991ebb76c07599b83da6a185211d88b95d9a9b4245f6d7
 
 inherit fsl-eula-unpack
 
+INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
+
 do_install () {
     install -d ${D}${libdir}
-    install -d ${D}${libdir}/pkgconfig
     install -d ${D}${includedir}/mm_ghdr
-    install -m 0755 ${S}/release/lib/*.so* ${D}${libdir}
+    install -m 0644 ${S}/release/lib/* ${D}${libdir}
     install -m 0644 ${S}/ghdr/common/*.h ${D}${includedir}/mm_ghdr
-    install -m 0644 ${S}/pkgconfig/*.pc ${D}${libdir}/pkgconfig
 }
 
-FILES_${PN} += "${libdir}/*.so* ${libdir}/pkgconfig/*.pc"
+FILES_${PN} += "${libdir}/lib_*"
 INSANE_SKIP_${PN} = "ldflags"
 
 FILES_${PN}-dev += "${includedir}/mm_ghdr/*.h"
 INSANE_SKIP_${PN}-dev = "ldflags"
+RDEPENDS_${PN}-dev = "fsl-mm-codeclib-dev"
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
-- 
1.7.10.4




More information about the meta-freescale mailing list