Patchwork [meta-fsl-arm,13/15] libfslcodec: Add 'test-bin' and 'test-sources' packages

login
register
mail settings
Submitter Otavio Salvador
Date Jan. 21, 2014, 2:29 p.m.
Message ID <1390314546-9473-14-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/65351/
State Superseded
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - Jan. 21, 2014, 2:29 p.m.
Add the libfslcodec-test-bin (with built binaries for testing) and
libfslcodec-test-sources (with testing applications source code).

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

Patch

diff --git a/recipes-multimedia/libfslcodec/libfslcodec.inc b/recipes-multimedia/libfslcodec/libfslcodec.inc
index 0012fdc..8659979 100644
--- a/recipes-multimedia/libfslcodec/libfslcodec.inc
+++ b/recipes-multimedia/libfslcodec/libfslcodec.inc
@@ -12,7 +12,7 @@  SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true"
 PACKAGES_DYNAMIC = "${PN}-*"
 INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
 
-PACKAGES += "${PN}-meta"
+PACKAGES += "${PN}-meta ${PN}-test-bin ${PN}-test-source"
 
 ALLOW_EMPTY_${PN} = "1"
 ALLOW_EMPTY_${PN}-meta = "1"
@@ -36,8 +36,6 @@  do_install_append() {
     done
     rmdir ${D}${libdir}/imx-mm/video-codec
 
-	# FIXME: Drop examples
-	rm -r ${D}${datadir}/imx-mm
 }
 
 python populate_packages_prepend() {
@@ -57,6 +55,8 @@  python populate_packages_prepend() {
     # Allow addition of all codecs in a image; useful specially for
     # debugging.
     codec_pkgs = oe.utils.packages_filter_out_system(d)
+    codec_pkgs = filter(lambda x: x not in ['libfslcodec-test-bin', 'libfslcodec-test-source'],
+                        codec_pkgs)
     d.appendVar('RDEPENDS_libfslcodec-meta', ' ' + ' '.join(codec_pkgs))
 }
 
@@ -67,6 +67,12 @@  FILES_${PN}-dev += "${libdir}/imx-mm/*/*${SOLIBSDEV} \
                     ${libdir}/imx-mm/*/*/*${SOLIBSDEV} \
                     ${libdir}/pkgconfig/*.pc ${includedir}/imx-mm/*"
 
+# FIXME: -test-bin includes the DUT .so files so we need to deploy those
+INSANE_SKIP_${PN}-test-bin_append = " libdir"
+FILES_${PN}-test-bin += "${datadir}/imx-mm/*/examples/*/bin"
+
+FILES_${PN}-test-source += "${datadir}/imx-mm/*"
+
 # FIXME: The wrap and lib names does not match
 FILES_${PN}-oggvorbis += "${libdir}/imx-mm/audio-codec/wrap/lib_vorbisd_wrap_arm*_elinux.so.*"