diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2014-01-18 18:05:56 -0200 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2014-02-20 14:00:04 -0300 |
commit | 6e292ee2c0c97f873ef867fd69875be40d00863b (patch) | |
tree | 00d8f270e4184f1108b1a36fc7e05de9324c9513 | |
parent | 798a90ccd60fc78a2236098f86f95adbb2530140 (diff) | |
download | meta-fsl-arm-6e292ee2c0c97f873ef867fd69875be40d00863b.tar.gz |
libfslcodec: Add 'test-bin' and 'test-sources' packages
Add the libfslcodec-test-bin (with built binaries for testing) and
libfslcodec-test-sources (with testing applications source code).
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r-- | recipes-multimedia/libfslcodec/libfslcodec.inc | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/recipes-multimedia/libfslcodec/libfslcodec.inc b/recipes-multimedia/libfslcodec/libfslcodec.inc index 97e2281..8ce80bc 100644 --- a/recipes-multimedia/libfslcodec/libfslcodec.inc +++ b/recipes-multimedia/libfslcodec/libfslcodec.inc | |||
@@ -13,7 +13,7 @@ PACKAGES_DYNAMIC = "${PN}-*" | |||
13 | INHIBIT_PACKAGE_STRIP = "1" | 13 | INHIBIT_PACKAGE_STRIP = "1" |
14 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | 14 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" |
15 | 15 | ||
16 | PACKAGES += "${PN}-meta" | 16 | PACKAGES += "${PN}-meta ${PN}-test-bin ${PN}-test-source" |
17 | 17 | ||
18 | ALLOW_EMPTY_${PN} = "1" | 18 | ALLOW_EMPTY_${PN} = "1" |
19 | ALLOW_EMPTY_${PN}-meta = "1" | 19 | ALLOW_EMPTY_${PN}-meta = "1" |
@@ -38,8 +38,6 @@ do_install_append() { | |||
38 | done | 38 | done |
39 | rmdir ${D}${libdir}/imx-mm/video-codec | 39 | rmdir ${D}${libdir}/imx-mm/video-codec |
40 | 40 | ||
41 | # FIXME: Drop examples | ||
42 | rm -r ${D}${datadir}/imx-mm | ||
43 | } | 41 | } |
44 | 42 | ||
45 | python populate_packages_prepend() { | 43 | python populate_packages_prepend() { |
@@ -54,11 +52,18 @@ python populate_packages_prepend() { | |||
54 | # the source we cannot fix it. Disable the insane check for now. | 52 | # the source we cannot fix it. Disable the insane check for now. |
55 | for p in d.getVar('PACKAGES', True).split(): | 53 | for p in d.getVar('PACKAGES', True).split(): |
56 | d.setVar("DEBIAN_NOAUTONAME_%s" % p, "1") | 54 | d.setVar("DEBIAN_NOAUTONAME_%s" % p, "1") |
57 | d.setVar("INSANE_SKIP_%s" % p, "ldflags textrel") | 55 | |
56 | if p == 'libfslcodec-test-bin': | ||
57 | # FIXME: includes the DUT .so files so we need to deploy those | ||
58 | d.setVar("INSANE_SKIP_%s" % p, "ldflags textrel libdir") | ||
59 | else: | ||
60 | d.setVar("INSANE_SKIP_%s" % p, "ldflags textrel") | ||
58 | 61 | ||
59 | # Allow addition of all codecs in a image; useful specially for | 62 | # Allow addition of all codecs in a image; useful specially for |
60 | # debugging. | 63 | # debugging. |
61 | codec_pkgs = oe.utils.packages_filter_out_system(d) | 64 | codec_pkgs = oe.utils.packages_filter_out_system(d) |
65 | codec_pkgs = filter(lambda x: x not in ['libfslcodec-test-bin', 'libfslcodec-test-source'], | ||
66 | codec_pkgs) | ||
62 | d.appendVar('RDEPENDS_libfslcodec-meta', ' ' + ' '.join(codec_pkgs)) | 67 | d.appendVar('RDEPENDS_libfslcodec-meta', ' ' + ' '.join(codec_pkgs)) |
63 | } | 68 | } |
64 | 69 | ||
@@ -69,6 +74,10 @@ FILES_${PN}-dev += "${libdir}/imx-mm/*/*${SOLIBSDEV} \ | |||
69 | ${libdir}/imx-mm/*/*/*${SOLIBSDEV} \ | 74 | ${libdir}/imx-mm/*/*/*${SOLIBSDEV} \ |
70 | ${libdir}/pkgconfig/*.pc ${includedir}/imx-mm/*" | 75 | ${libdir}/pkgconfig/*.pc ${includedir}/imx-mm/*" |
71 | 76 | ||
77 | FILES_${PN}-test-bin += "${datadir}/imx-mm/*/examples/*/bin" | ||
78 | |||
79 | FILES_${PN}-test-source += "${datadir}/imx-mm/*" | ||
80 | |||
72 | # FIXME: The wrap and lib names does not match | 81 | # FIXME: The wrap and lib names does not match |
73 | FILES_${PN}-oggvorbis += "${libdir}/imx-mm/audio-codec/wrap/lib_vorbisd_wrap_arm*_elinux.so.*" | 82 | FILES_${PN}-oggvorbis += "${libdir}/imx-mm/audio-codec/wrap/lib_vorbisd_wrap_arm*_elinux.so.*" |
74 | 83 | ||