diff options
Diffstat (limited to 'recipes-multimedia/imx-codec/imx-codec.inc')
| -rw-r--r-- | recipes-multimedia/imx-codec/imx-codec.inc | 114 |
1 files changed, 0 insertions, 114 deletions
diff --git a/recipes-multimedia/imx-codec/imx-codec.inc b/recipes-multimedia/imx-codec/imx-codec.inc deleted file mode 100644 index a42dcbc69..000000000 --- a/recipes-multimedia/imx-codec/imx-codec.inc +++ /dev/null | |||
| @@ -1,114 +0,0 @@ | |||
| 1 | # Copyright (C) 2012-2016 Freescale Semiconductor | ||
| 2 | # Copyright 2017 NXP | ||
| 3 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
| 4 | DESCRIPTION = "Freescale Multimedia codec libs" | ||
| 5 | LICENSE = "Proprietary" | ||
| 6 | SECTION = "multimedia" | ||
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=08fd295cce89b0a9c74b9b83ed74f671" | ||
| 8 | |||
| 9 | # Backward compatibility | ||
| 10 | PROVIDES += "libfslcodec" | ||
| 11 | |||
| 12 | inherit fsl-eula-unpack autotools pkgconfig | ||
| 13 | |||
| 14 | SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true" | ||
| 15 | |||
| 16 | # Choose between Soft Float-Point and Hard Float-Point | ||
| 17 | EXTRA_OECONF = "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '--enable-fhw', '', d)}" | ||
| 18 | |||
| 19 | PACKAGECONFIG ?= "" | ||
| 20 | PACKAGECONFIG_imxvpu = "vpu" | ||
| 21 | |||
| 22 | PACKAGECONFIG[vpu] = "--enable-vpu,--disable-vpu,imx-vpu" | ||
| 23 | |||
| 24 | do_install_append() { | ||
| 25 | # FIXME: This link points to nowhere | ||
| 26 | if [ -e ${D}${libdir}/imx-mm/audio-codec/lib_src_ppp_arm11_elinux.so ]; then | ||
| 27 | rm ${D}${libdir}/imx-mm/audio-codec/lib_src_ppp_arm11_elinux.so | ||
| 28 | fi | ||
| 29 | |||
| 30 | # LTIB move the files around or gst-fsl-plugin won't find them | ||
| 31 | for p in $(find ${D}${libdir}/imx-mm -mindepth 2 -maxdepth 2 -not -type d); do | ||
| 32 | mv $p ${D}${libdir} | ||
| 33 | done | ||
| 34 | rmdir ${D}${libdir}/imx-mm/video-codec | ||
| 35 | |||
| 36 | } | ||
| 37 | |||
| 38 | python __set_insane_skip() { | ||
| 39 | # Ensure we have PACKAGES expanded | ||
| 40 | bb.build.exec_func("read_subpackage_metadata", d) | ||
| 41 | |||
| 42 | for p in d.getVar('PACKAGES', True).split(): | ||
| 43 | # Even though we are packaging libraries those are plugins so we | ||
| 44 | # shouldn't rename the packages to follow its sonames. | ||
| 45 | d.setVar("DEBIAN_NOAUTONAME_%s" % p, "1") | ||
| 46 | |||
| 47 | # FIXME: All binaries lack GNU_HASH in elf binary but as we don't have | ||
| 48 | # the source we cannot fix it. Disable the insane check for now. | ||
| 49 | if p == 'imx-codec-test-bin': | ||
| 50 | # FIXME: includes the DUT .so files so we need to deploy those | ||
| 51 | d.setVar("INSANE_SKIP_%s" % p, "ldflags textrel libdir file-rdeps") | ||
| 52 | else: | ||
| 53 | d.setVar("INSANE_SKIP_%s" % p, "ldflags textrel") | ||
| 54 | } | ||
| 55 | |||
| 56 | do_package_qa[prefuncs] += "__set_insane_skip" | ||
| 57 | |||
| 58 | python __split_libfslcodec_plugins() { | ||
| 59 | codecdir = bb.data.expand('${libdir}', d) | ||
| 60 | do_split_packages(d, codecdir, '^lib_([^_]*).*_arm.*_elinux\.so\..*', | ||
| 61 | aux_files_pattern='${libdir}/imx-mm/audio-codec/wrap/lib_%sd_wrap_arm*_elinux.so.*', | ||
| 62 | output_pattern='imx-codec-%s', | ||
| 63 | description='Freescale i.MX Codec (%s)', | ||
| 64 | extra_depends='') | ||
| 65 | pkgs = d.getVar('PACKAGES', True).split() | ||
| 66 | for pkg in pkgs: | ||
| 67 | meta = pkg[10:] | ||
| 68 | if meta != '': | ||
| 69 | d.setVar('RREPLACES_%s' % pkg, ' libfslcodec-%s' % meta) | ||
| 70 | d.setVar('RPROVIDES_%s' % pkg, ' libfslcodec-%s' % meta) | ||
| 71 | d.setVar('RCONFLICTS_%s' % pkg, ' libfslcodec-%s' % meta) | ||
| 72 | else : | ||
| 73 | d.setVar('RREPLACES_%s' % pkg, ' libfslcodec') | ||
| 74 | d.setVar('RPROVIDES_%s' % pkg, ' libfslcodec') | ||
| 75 | d.setVar('RCONFLICTS_%s' % pkg, ' libfslcodec') | ||
| 76 | } | ||
| 77 | |||
| 78 | python __set_metapkg_rdepends() { | ||
| 79 | # Allow addition of all codecs in a image; useful specially for | ||
| 80 | # debugging. | ||
| 81 | codec_pkgs = oe.utils.packages_filter_out_system(d) | ||
| 82 | codec_pkgs = filter(lambda x: x not in ['imx-codec-test-bin', 'imx-codec-test-source'], | ||
| 83 | codec_pkgs) | ||
| 84 | d.appendVar('RDEPENDS_imx-codec-meta', ' ' + ' '.join(codec_pkgs)) | ||
| 85 | } | ||
| 86 | |||
| 87 | PACKAGESPLITFUNCS =+ "__split_libfslcodec_plugins __set_metapkg_rdepends" | ||
| 88 | |||
| 89 | PACKAGES_DYNAMIC = "${PN}-*" | ||
| 90 | INHIBIT_PACKAGE_STRIP = "1" | ||
| 91 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
| 92 | |||
| 93 | PACKAGES += "${PN}-meta ${PN}-test-bin ${PN}-test-source" | ||
| 94 | |||
| 95 | ALLOW_EMPTY_${PN} = "1" | ||
| 96 | ALLOW_EMPTY_${PN}-meta = "1" | ||
| 97 | |||
| 98 | # Ensure we get warnings if we miss something | ||
| 99 | FILES_${PN} = "" | ||
| 100 | |||
| 101 | FILES_${PN}-dev += "${libdir}/imx-mm/*/*${SOLIBSDEV} \ | ||
| 102 | ${libdir}/imx-mm/*/*/*${SOLIBSDEV} \ | ||
| 103 | ${libdir}/pkgconfig/*.pc ${includedir}/imx-mm/*" | ||
| 104 | |||
| 105 | FILES_${PN}-test-bin += "${datadir}/imx-mm/*/examples/*/bin" | ||
| 106 | |||
| 107 | FILES_${PN}-test-source += "${datadir}/imx-mm/*" | ||
| 108 | |||
| 109 | # FIXME: The wrap and lib names does not match | ||
| 110 | FILES_${PN}-oggvorbis += "${libdir}/imx-mm/audio-codec/wrap/lib_vorbisd_wrap_arm*_elinux.so.*" | ||
| 111 | FILES_${PN}-nb += "${libdir}/imx-mm/audio-codec/wrap/lib_nbamrd_wrap_arm*_elinux.so.*" | ||
| 112 | FILES_${PN}-wb += "${libdir}/imx-mm/audio-codec/wrap/lib_wbamrd_wrap_arm*_elinux.so.*" | ||
| 113 | |||
| 114 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
