diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:19:58 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:19:58 +0200 |
commit | f98b448ee835646be48f530b3e6fe13b32b093f5 (patch) | |
tree | 9d1062f1e8893e72829df650f5e558c5fb255955 /recipes-multimedia/libfslcodec/libfslcodec.inc | |
download | meta-fsl-arm-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'recipes-multimedia/libfslcodec/libfslcodec.inc')
-rw-r--r-- | recipes-multimedia/libfslcodec/libfslcodec.inc | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/recipes-multimedia/libfslcodec/libfslcodec.inc b/recipes-multimedia/libfslcodec/libfslcodec.inc new file mode 100644 index 0000000..8ce80bc --- /dev/null +++ b/recipes-multimedia/libfslcodec/libfslcodec.inc | |||
@@ -0,0 +1,84 @@ | |||
1 | # Copyright (C) 2012-2014 Freescale Semiconductor | ||
2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
3 | DESCRIPTION = "Freescale Multimedia codec libs" | ||
4 | LICENSE = "Proprietary" | ||
5 | SECTION = "multimedia" | ||
6 | LIC_FILES_CHKSUM = "file://EULA.txt;md5=93b784b1c11b3fffb1638498a8dde3f6" | ||
7 | |||
8 | inherit fsl-eula-unpack autotools pkgconfig | ||
9 | |||
10 | SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true" | ||
11 | |||
12 | PACKAGES_DYNAMIC = "${PN}-*" | ||
13 | INHIBIT_PACKAGE_STRIP = "1" | ||
14 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
15 | |||
16 | PACKAGES += "${PN}-meta ${PN}-test-bin ${PN}-test-source" | ||
17 | |||
18 | ALLOW_EMPTY_${PN} = "1" | ||
19 | ALLOW_EMPTY_${PN}-meta = "1" | ||
20 | |||
21 | # Choose between Soft Float-Point and Hard Float-Point | ||
22 | EXTRA_OECONF = "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '--enable-fhw', '', d)}" | ||
23 | |||
24 | # VPU Hardware acceleration | ||
25 | VPU_SUPPORT = "--disable-vpu" | ||
26 | VPU_SUPPORT_mx6 = "--enable-vpu" | ||
27 | VPU_SUPPORT_mx6sl = "--disable-vpu" | ||
28 | VPU_SUPPORT_mx5 = "--enable-vpu" | ||
29 | EXTRA_OECONF += "${VPU_SUPPORT}" | ||
30 | |||
31 | do_install_append() { | ||
32 | # FIXME: This link points to nowhere | ||
33 | rm ${D}${libdir}/imx-mm/audio-codec/lib_src_ppp_arm11_elinux.so | ||
34 | |||
35 | # LTIB move the files around or gst-fsl-plugin won't find them | ||
36 | for p in $(find ${D}${libdir}/imx-mm -mindepth 2 -maxdepth 2 -not -type d); do | ||
37 | mv $p ${D}${libdir} | ||
38 | done | ||
39 | rmdir ${D}${libdir}/imx-mm/video-codec | ||
40 | |||
41 | } | ||
42 | |||
43 | python populate_packages_prepend() { | ||
44 | codecdir = bb.data.expand('${libdir}', d) | ||
45 | do_split_packages(d, codecdir, '^lib_([^_]*).*_arm.*_elinux\.so\..*', | ||
46 | aux_files_pattern='${libdir}/imx-mm/audio-codec/wrap/lib_%sd_wrap_arm*_elinux.so.*', | ||
47 | output_pattern='libfslcodec-%s', | ||
48 | description='Freescale i.MX Codec (%s)', | ||
49 | extra_depends='') | ||
50 | |||
51 | # FIXME: All binaries lack GNU_HASH in elf binary but as we don't have | ||
52 | # the source we cannot fix it. Disable the insane check for now. | ||
53 | for p in d.getVar('PACKAGES', True).split(): | ||
54 | d.setVar("DEBIAN_NOAUTONAME_%s" % p, "1") | ||
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") | ||
61 | |||
62 | # Allow addition of all codecs in a image; useful specially for | ||
63 | # debugging. | ||
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) | ||
67 | d.appendVar('RDEPENDS_libfslcodec-meta', ' ' + ' '.join(codec_pkgs)) | ||
68 | } | ||
69 | |||
70 | # Ensure we get warnings if we miss something | ||
71 | FILES_${PN} = "" | ||
72 | |||
73 | FILES_${PN}-dev += "${libdir}/imx-mm/*/*${SOLIBSDEV} \ | ||
74 | ${libdir}/imx-mm/*/*/*${SOLIBSDEV} \ | ||
75 | ${libdir}/pkgconfig/*.pc ${includedir}/imx-mm/*" | ||
76 | |||
77 | FILES_${PN}-test-bin += "${datadir}/imx-mm/*/examples/*/bin" | ||
78 | |||
79 | FILES_${PN}-test-source += "${datadir}/imx-mm/*" | ||
80 | |||
81 | # FIXME: The wrap and lib names does not match | ||
82 | FILES_${PN}-oggvorbis += "${libdir}/imx-mm/audio-codec/wrap/lib_vorbisd_wrap_arm*_elinux.so.*" | ||
83 | |||
84 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||