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 <ota...@ossystems.com.br> --- recipes-multimedia/libfslcodec/libfslcodec.inc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/recipes-multimedia/libfslcodec/libfslcodec.inc b/recipes-multimedia/libfslcodec/libfslcodec.inc index 35fc713..a935341 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.*" -- 1.8.5.3 _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core