diff options
author | Daiane Angolini <daiane.angolini@freescale.com> | 2013-04-03 14:05:50 -0300 |
---|---|---|
committer | Daiane Angolini <angolini@gmail.com> | 2013-04-10 14:54:15 -0300 |
commit | 655db2429f71a6fd8a270736dd8cfda137435d00 (patch) | |
tree | ddf1d5e4bf74530777a2716f6ce380436370a2b6 /recipes-multimedia/libfslcodec | |
parent | 8e523b0f8bafcb62cd8c005a640a3cddc1326091 (diff) | |
download | meta-fsl-arm-655db2429f71a6fd8a270736dd8cfda137435d00.tar.gz |
libfslcodec: Add .inc file in order to reuse code
Include libfslcodec.inc file in order to reuse code
for future newer versions of this packaged to be added.
Change-Id: Ic9737f8a468680a9f8cb73baa59c4622655dc33a
Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
Diffstat (limited to 'recipes-multimedia/libfslcodec')
-rw-r--r-- | recipes-multimedia/libfslcodec/libfslcodec.inc | 58 | ||||
-rw-r--r-- | recipes-multimedia/libfslcodec/libfslcodec_3.0.5.bb | 56 |
2 files changed, 61 insertions, 53 deletions
diff --git a/recipes-multimedia/libfslcodec/libfslcodec.inc b/recipes-multimedia/libfslcodec/libfslcodec.inc new file mode 100644 index 0000000..8b01887 --- /dev/null +++ b/recipes-multimedia/libfslcodec/libfslcodec.inc | |||
@@ -0,0 +1,58 @@ | |||
1 | # Copyright (C) 2012-2013 Freescale Semicondutors | ||
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=ea4d5c069d7aef0838a110409ea78a01" | ||
7 | |||
8 | INC_PR = "r1" | ||
9 | |||
10 | inherit fsl-eula-unpack autotools pkgconfig | ||
11 | |||
12 | SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true" | ||
13 | |||
14 | PACKAGES_DYNAMIC = "${PN}-*" | ||
15 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
16 | |||
17 | do_install_append() { | ||
18 | # FIXME: This link points to nowhere | ||
19 | rm ${D}${libdir}/imx-mm/audio-codec/lib_src_ppp_arm11_elinux.so | ||
20 | |||
21 | # LTIB move the files around or gst-fsl-plugin won't find them | ||
22 | for p in $(find ${D}${libdir}/imx-mm -mindepth 1 -maxdepth 1 -type d); do | ||
23 | mv $p/* ${D}${libdir} | ||
24 | rmdir $p | ||
25 | done | ||
26 | rmdir ${D}${libdir}/imx-mm | ||
27 | |||
28 | # FIXME: Drop examples | ||
29 | rm -r ${D}${datadir}/imx-mm | ||
30 | } | ||
31 | |||
32 | python populate_packages_prepend() { | ||
33 | do_split_packages(d, d.getVar('libdir', True), '^lib_(.*)_elinux\.so\..*', | ||
34 | aux_files_pattern_verbatim='${libdir}/lib_%s_elinux.so.*', | ||
35 | output_pattern='libfslcodec-audio-%s', | ||
36 | description='Freescale IMX Codec (%s)', | ||
37 | extra_depends='', prepend=True) | ||
38 | |||
39 | wrapdir = bb.data.expand('${libdir}/wrap', d) | ||
40 | do_split_packages(d, wrapdir, '^lib_(.*)_elinux\.so\..*', | ||
41 | aux_files_pattern_verbatim='${libdir}/wrap/lib_%s_elinux.so.*', | ||
42 | output_pattern='libfslcodec-audio-wrap-%s', | ||
43 | description='Freescale IMX Codec Wrap (%s)', | ||
44 | extra_depends='', prepend=True) | ||
45 | |||
46 | # FIXME: All binaries lack GNU_HASH in elf binary but as we don't have | ||
47 | # the source we cannot fix it. Disable the insane check for now. | ||
48 | for p in d.getVar('PACKAGES', True).split(): | ||
49 | d.setVar("INSANE_SKIP_%s" % p, "ldflags textrel") | ||
50 | } | ||
51 | |||
52 | # Ensure we get warnings if we miss something | ||
53 | FILES_${PN} = "" | ||
54 | |||
55 | FILES_${PN}-dev += "${libdir}/*/*${SOLIBSDEV} \ | ||
56 | ${libdir}/*/*/*${SOLIBSDEV}" | ||
57 | |||
58 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
diff --git a/recipes-multimedia/libfslcodec/libfslcodec_3.0.5.bb b/recipes-multimedia/libfslcodec/libfslcodec_3.0.5.bb index adaf7db..6631525 100644 --- a/recipes-multimedia/libfslcodec/libfslcodec_3.0.5.bb +++ b/recipes-multimedia/libfslcodec/libfslcodec_3.0.5.bb | |||
@@ -1,61 +1,11 @@ | |||
1 | # Copyright (C) 2012 Freescale Semicondutors | 1 | # Copyright (C) 2012-2013 Freescale Semicondutors |
2 | # Released under the MIT license (see COPYING.MIT for the terms) | 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=ea4d5c069d7aef0838a110409ea78a01" | ||
7 | 3 | ||
8 | PR = "r1" | 4 | require libfslcodec.inc |
9 | 5 | ||
10 | inherit fsl-eula-unpack autotools pkgconfig | 6 | PR = "${INC_PR}.1" |
11 | 7 | ||
12 | SRC_URI[md5sum] = "dc08b569175981fc0bd5f97986cfd543" | 8 | SRC_URI[md5sum] = "dc08b569175981fc0bd5f97986cfd543" |
13 | SRC_URI[sha256sum] = "2a4a7248246ff37f30486f34918151f09493ecfcaeca0cd8155d5b5c93245138" | 9 | SRC_URI[sha256sum] = "2a4a7248246ff37f30486f34918151f09493ecfcaeca0cd8155d5b5c93245138" |
14 | SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true" | ||
15 | 10 | ||
16 | PACKAGES_DYNAMIC = "${PN}-*" | ||
17 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
18 | |||
19 | do_install_append() { | ||
20 | # FIXME: This link points to nowhere | ||
21 | rm ${D}${libdir}/imx-mm/audio-codec/lib_src_ppp_arm11_elinux.so | ||
22 | |||
23 | # LTIB move the files around or gst-fsl-plugin won't find them | ||
24 | for p in $(find ${D}${libdir}/imx-mm -mindepth 1 -maxdepth 1 -type d); do | ||
25 | mv $p/* ${D}${libdir} | ||
26 | rmdir $p | ||
27 | done | ||
28 | rmdir ${D}${libdir}/imx-mm | ||
29 | |||
30 | # FIXME: Drop examples | ||
31 | rm -r ${D}${datadir}/imx-mm | ||
32 | } | ||
33 | |||
34 | python populate_packages_prepend() { | ||
35 | do_split_packages(d, d.getVar('libdir', True), '^lib_(.*)_elinux\.so\..*', | ||
36 | aux_files_pattern_verbatim='${libdir}/lib_%s_elinux.so.*', | ||
37 | output_pattern='libfslcodec-audio-%s', | ||
38 | description='Freescale IMX Codec (%s)', | ||
39 | extra_depends='', prepend=True) | ||
40 | |||
41 | wrapdir = bb.data.expand('${libdir}/wrap', d) | ||
42 | do_split_packages(d, wrapdir, '^lib_(.*)_elinux\.so\..*', | ||
43 | aux_files_pattern_verbatim='${libdir}/wrap/lib_%s_elinux.so.*', | ||
44 | output_pattern='libfslcodec-audio-wrap-%s', | ||
45 | description='Freescale IMX Codec Wrap (%s)', | ||
46 | extra_depends='', prepend=True) | ||
47 | |||
48 | # FIXME: All binaries lack GNU_HASH in elf binary but as we don't have | ||
49 | # the source we cannot fix it. Disable the insane check for now. | ||
50 | for p in d.getVar('PACKAGES', True).split(): | ||
51 | d.setVar("INSANE_SKIP_%s" % p, "ldflags textrel") | ||
52 | } | ||
53 | |||
54 | # Ensure we get warnings if we miss something | ||
55 | FILES_${PN} = "" | ||
56 | |||
57 | FILES_${PN}-dev += "${libdir}/*/*${SOLIBSDEV} \ | ||
58 | ${libdir}/*/*/*${SOLIBSDEV}" | ||
59 | |||
60 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
61 | COMPATIBLE_MACHINE = "(mx6)" | 11 | COMPATIBLE_MACHINE = "(mx6)" |