aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/libfslcodec
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2013-05-21 03:47:07 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2013-05-28 11:00:49 -0300
commit46fce80dd94c370ea90a9956c9137f877778bbba (patch)
tree1a7ab3568298e13e697fc8abff451e24d614613a /recipes-multimedia/libfslcodec
parent44af5989e7c8b4dfa581cb0a84e509730cd10477 (diff)
downloadmeta-fsl-arm-46fce80dd94c370ea90a9956c9137f877778bbba.tar.gz
meta-fsl-arm-46fce80dd94c370ea90a9956c9137f877778bbba.tar.bz2
meta-fsl-arm-46fce80dd94c370ea90a9956c9137f877778bbba.zip
libfslcodec: Group ARM12, ARM11 and ARM9 packages
This rework the packages so we have all instruction set packages in same binary, with respective 'wrap' libraries. The complexity to proper choose it is not worth and error prone so we avoid it. This also fixes the 'wrap' libraries path as they should be inside 'imx-mm' directory. Change-Id: I7f375b612807a429727c971083e19773b45691d3 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-multimedia/libfslcodec')
-rw-r--r--recipes-multimedia/libfslcodec/libfslcodec.inc37
1 files changed, 17 insertions, 20 deletions
diff --git a/recipes-multimedia/libfslcodec/libfslcodec.inc b/recipes-multimedia/libfslcodec/libfslcodec.inc
index 8b01887..5c0130b 100644
--- a/recipes-multimedia/libfslcodec/libfslcodec.inc
+++ b/recipes-multimedia/libfslcodec/libfslcodec.inc
@@ -18,41 +18,38 @@ do_install_append() {
# FIXME: This link points to nowhere
rm ${D}${libdir}/imx-mm/audio-codec/lib_src_ppp_arm11_elinux.so
- # LTIB move the files around or gst-fsl-plugin won't find them
- for p in $(find ${D}${libdir}/imx-mm -mindepth 1 -maxdepth 1 -type d); do
- mv $p/* ${D}${libdir}
- rmdir $p
- done
- rmdir ${D}${libdir}/imx-mm
+ # LTIB move the files around or gst-fsl-plugin won't find them
+ for p in $(find ${D}${libdir}/imx-mm -mindepth 2 -maxdepth 2 -not -type d); do
+ mv $p ${D}${libdir}
+ done
+ rmdir ${D}${libdir}/imx-mm/video-codec
# FIXME: Drop examples
rm -r ${D}${datadir}/imx-mm
}
python populate_packages_prepend() {
- do_split_packages(d, d.getVar('libdir', True), '^lib_(.*)_elinux\.so\..*',
- aux_files_pattern_verbatim='${libdir}/lib_%s_elinux.so.*',
- output_pattern='libfslcodec-audio-%s',
- description='Freescale IMX Codec (%s)',
- extra_depends='', prepend=True)
-
- wrapdir = bb.data.expand('${libdir}/wrap', d)
- do_split_packages(d, wrapdir, '^lib_(.*)_elinux\.so\..*',
- aux_files_pattern_verbatim='${libdir}/wrap/lib_%s_elinux.so.*',
- output_pattern='libfslcodec-audio-wrap-%s',
- description='Freescale IMX Codec Wrap (%s)',
- extra_depends='', prepend=True)
+ codecdir = bb.data.expand('${libdir}', d)
+ do_split_packages(d, codecdir, '^lib_([^_]*).*_arm.*_elinux\.so\..*',
+ aux_files_pattern='${libdir}/imx-mm/audio-codec/wrap/lib_%sd_wrap_arm*_elinux.so.*',
+ output_pattern='libfslcodec-%s',
+ description='Freescale i.MX Codec (%s)',
+ extra_depends='')
# FIXME: All binaries lack GNU_HASH in elf binary but as we don't have
# the source we cannot fix it. Disable the insane check for now.
for p in d.getVar('PACKAGES', True).split():
d.setVar("INSANE_SKIP_%s" % p, "ldflags textrel")
+ d.setVar("DEBIAN_NOAUTONAME_%s" % p, "1")
}
# Ensure we get warnings if we miss something
FILES_${PN} = ""
-FILES_${PN}-dev += "${libdir}/*/*${SOLIBSDEV} \
- ${libdir}/*/*/*${SOLIBSDEV}"
+FILES_${PN}-dev += "${libdir}/imx-mm/*/*${SOLIBSDEV} \
+ ${libdir}/imx-mm/*/*/*${SOLIBSDEV}"
+
+# FIXME: The wrap and lib names does not match
+FILES_${PN}-oggvorbis += "${libdir}/imx-mm/audio-codec/wrap/lib_vorbisd_wrap_arm*_elinux.so.*"
PACKAGE_ARCH = "${MACHINE_ARCH}"