Patchwork [meta-fsl-arm,04/13] libfslcodec: Add libfslcodec-meta which includes all codecs

login
register
mail settings
Submitter Daiane Angolini
Date May 23, 2013, 7:22 p.m.
Message ID <1369336972-24042-5-git-send-email-daiane.angolini@freescale.com>
Download mbox | patch
Permalink /patch/50431/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Daiane Angolini - May 23, 2013, 7:22 p.m.
From: Otavio Salvador <otavio@ossystems.com.br>

The libfslcodec-meta is specially useful for debugging so we can test
if a failure is due a missing dependency across codecs or to provide
demo images which has a wide range of supported codecs.

Change-Id: Ic6deb1f7c1eab70405078ed79757dd57d9f29316
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 recipes-multimedia/libfslcodec/libfslcodec.inc |   10 ++++++++++
 1 file changed, 10 insertions(+)

Patch

diff --git a/recipes-multimedia/libfslcodec/libfslcodec.inc b/recipes-multimedia/libfslcodec/libfslcodec.inc
index 5c0130b..abf775a 100644
--- a/recipes-multimedia/libfslcodec/libfslcodec.inc
+++ b/recipes-multimedia/libfslcodec/libfslcodec.inc
@@ -14,6 +14,11 @@  SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true"
 PACKAGES_DYNAMIC = "${PN}-*"
 INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
 
+PACKAGES += "${PN}-meta"
+
+ALLOW_EMPTY_${PN} = "1"
+ALLOW_EMPTY_${PN}-meta = "1"
+
 do_install_append() {
 	# FIXME: This link points to nowhere
 	rm ${D}${libdir}/imx-mm/audio-codec/lib_src_ppp_arm11_elinux.so
@@ -41,6 +46,11 @@  python populate_packages_prepend() {
     for p in d.getVar('PACKAGES', True).split():
         d.setVar("INSANE_SKIP_%s" % p, "ldflags textrel")
         d.setVar("DEBIAN_NOAUTONAME_%s" % p, "1")
+
+    # Allow addition of all codecs in a image; useful specially for
+    # debugging.
+    codec_pkgs = oe.utils.packages_filter_out_system(d)
+    d.appendVar('RDEPENDS_libfslcodec-meta', ' ' + ' '.join(codec_pkgs))
 }
 
 # Ensure we get warnings if we miss something