diff options
author | Yuqing Zhu <carol.zhu@nxp.com> | 2016-04-18 22:57:48 +0800 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2016-05-07 10:07:46 -0300 |
commit | 705623ad1e1e3dd11857ed89ca08fc4179958d78 (patch) | |
tree | 79f9cebfe972feaa911e1fcf47bc3238fe1a181a /recipes-multimedia/libfslcodec/libfslcodec.inc | |
parent | f32701a0f4b791d7f532e0bc1984b56ccf982286 (diff) | |
download | meta-freescale-705623ad1e1e3dd11857ed89ca08fc4179958d78.tar.gz |
imx-codec: Upgrade to v4.0.9
--Change the recipe name from "libfslcodec" to "imx-codec"
--Add RREPLACE/RPROVIDES/RCONFLICTS for backwards compatibility.
--[aac_dec] refine the code for pure c build
aac decoder c build need float point support, which use some
float point function.
Change-Id: Ie8071031b45038107d27b16e2c129376cf4f109d
Signed-off-by: Yuqing Zhu <carol.zhu@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-multimedia/libfslcodec/libfslcodec.inc')
-rw-r--r-- | recipes-multimedia/libfslcodec/libfslcodec.inc | 98 |
1 files changed, 0 insertions, 98 deletions
diff --git a/recipes-multimedia/libfslcodec/libfslcodec.inc b/recipes-multimedia/libfslcodec/libfslcodec.inc deleted file mode 100644 index 2f0bc445..00000000 --- a/recipes-multimedia/libfslcodec/libfslcodec.inc +++ /dev/null | |||
@@ -1,98 +0,0 @@ | |||
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://COPYING;md5=3880bb9c943b135a30fad5e8aabd3ee9" | ||
7 | |||
8 | inherit fsl-eula-unpack autotools pkgconfig | ||
9 | |||
10 | SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true" | ||
11 | |||
12 | # Choose between Soft Float-Point and Hard Float-Point | ||
13 | EXTRA_OECONF = "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '--enable-fhw', '', d)}" | ||
14 | |||
15 | PACKAGECONFIG ?= "" | ||
16 | PACKAGECONFIG_mx6q = "vpu" | ||
17 | PACKAGECONFIG_mx6dl = "vpu" | ||
18 | |||
19 | PACKAGECONFIG[vpu] = "--enable-vpu,--disable-vpu,imx-vpu" | ||
20 | |||
21 | do_install_append() { | ||
22 | # FIXME: This link points to nowhere | ||
23 | rm ${D}${libdir}/imx-mm/audio-codec/lib_src_ppp_arm11_elinux.so | ||
24 | |||
25 | # LTIB move the files around or gst-fsl-plugin won't find them | ||
26 | for p in $(find ${D}${libdir}/imx-mm -mindepth 2 -maxdepth 2 -not -type d); do | ||
27 | mv $p ${D}${libdir} | ||
28 | done | ||
29 | rmdir ${D}${libdir}/imx-mm/video-codec | ||
30 | |||
31 | } | ||
32 | |||
33 | python __set_insane_skip() { | ||
34 | # Ensure we have PACKAGES expanded | ||
35 | bb.build.exec_func("read_subpackage_metadata", d) | ||
36 | |||
37 | for p in d.getVar('PACKAGES', True).split(): | ||
38 | # Even though we are packaging libraries those are plugins so we | ||
39 | # shouldn't rename the packages to follow its sonames. | ||
40 | d.setVar("DEBIAN_NOAUTONAME_%s" % p, "1") | ||
41 | |||
42 | # FIXME: All binaries lack GNU_HASH in elf binary but as we don't have | ||
43 | # the source we cannot fix it. Disable the insane check for now. | ||
44 | if p == 'libfslcodec-test-bin': | ||
45 | # FIXME: includes the DUT .so files so we need to deploy those | ||
46 | d.setVar("INSANE_SKIP_%s" % p, "ldflags textrel libdir") | ||
47 | else: | ||
48 | d.setVar("INSANE_SKIP_%s" % p, "ldflags textrel") | ||
49 | } | ||
50 | |||
51 | do_package_qa[prefuncs] += "__set_insane_skip" | ||
52 | |||
53 | python __split_libfslcodec_plugins() { | ||
54 | codecdir = bb.data.expand('${libdir}', d) | ||
55 | do_split_packages(d, codecdir, '^lib_([^_]*).*_arm.*_elinux\.so\..*', | ||
56 | aux_files_pattern='${libdir}/imx-mm/audio-codec/wrap/lib_%sd_wrap_arm*_elinux.so.*', | ||
57 | output_pattern='libfslcodec-%s', | ||
58 | description='Freescale i.MX Codec (%s)', | ||
59 | extra_depends='') | ||
60 | } | ||
61 | |||
62 | python __set_metapkg_rdepends() { | ||
63 | # Allow addition of all codecs in a image; useful specially for | ||
64 | # debugging. | ||
65 | codec_pkgs = oe.utils.packages_filter_out_system(d) | ||
66 | codec_pkgs = filter(lambda x: x not in ['libfslcodec-test-bin', 'libfslcodec-test-source'], | ||
67 | codec_pkgs) | ||
68 | d.appendVar('RDEPENDS_libfslcodec-meta', ' ' + ' '.join(codec_pkgs)) | ||
69 | } | ||
70 | |||
71 | PACKAGESPLITFUNCS =+ "__split_libfslcodec_plugins __set_metapkg_rdepends" | ||
72 | |||
73 | PACKAGES_DYNAMIC = "${PN}-*" | ||
74 | INHIBIT_PACKAGE_STRIP = "1" | ||
75 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
76 | |||
77 | PACKAGES += "${PN}-meta ${PN}-test-bin ${PN}-test-source" | ||
78 | |||
79 | ALLOW_EMPTY_${PN} = "1" | ||
80 | ALLOW_EMPTY_${PN}-meta = "1" | ||
81 | |||
82 | # Ensure we get warnings if we miss something | ||
83 | FILES_${PN} = "" | ||
84 | |||
85 | FILES_${PN}-dev += "${libdir}/imx-mm/*/*${SOLIBSDEV} \ | ||
86 | ${libdir}/imx-mm/*/*/*${SOLIBSDEV} \ | ||
87 | ${libdir}/pkgconfig/*.pc ${includedir}/imx-mm/*" | ||
88 | |||
89 | FILES_${PN}-test-bin += "${datadir}/imx-mm/*/examples/*/bin" | ||
90 | |||
91 | FILES_${PN}-test-source += "${datadir}/imx-mm/*" | ||
92 | |||
93 | # FIXME: The wrap and lib names does not match | ||
94 | FILES_${PN}-oggvorbis += "${libdir}/imx-mm/audio-codec/wrap/lib_vorbisd_wrap_arm*_elinux.so.*" | ||
95 | FILES_${PN}-nb += "${libdir}/imx-mm/audio-codec/wrap/lib_nbamrd_wrap_arm*_elinux.so.*" | ||
96 | FILES_${PN}-wb += "${libdir}/imx-mm/audio-codec/wrap/lib_wbamrd_wrap_arm*_elinux.so.*" | ||
97 | |||
98 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||