diff options
author | Daiane Angolini <daiane.angolini@freescale.com> | 2012-06-06 09:00:39 -0500 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2012-06-06 14:51:26 -0300 |
commit | c3739f571a5e9ab8072c78026e1fcacadc0a381f (patch) | |
tree | 23e18c81d39793512cf62f2b0060eded282c5d51 | |
parent | 8b39b81ae4b3c7e6c582ba034f67390027bb86b3 (diff) | |
download | meta-fsl-arm-c3739f571a5e9ab8072c78026e1fcacadc0a381f.tar.gz |
imx-lib: Move code to .inc file
Add imx-lib.inc to avoid duplication of code if a new imx-lib release
was included.
Change LICENSE field to LGPLv2.1.
Include PLATFORM variable to make easier to include a new platform.
Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
-rw-r--r-- | recipes-multimedia/fsl-mm-core/imx-lib.inc | 33 | ||||
-rw-r--r-- | recipes-multimedia/fsl-mm-core/imx-lib_11.09.01.bb | 37 |
2 files changed, 39 insertions, 31 deletions
diff --git a/recipes-multimedia/fsl-mm-core/imx-lib.inc b/recipes-multimedia/fsl-mm-core/imx-lib.inc new file mode 100644 index 0000000..52e25d0 --- /dev/null +++ b/recipes-multimedia/fsl-mm-core/imx-lib.inc | |||
@@ -0,0 +1,33 @@ | |||
1 | # Copyright (C) 2012 Freescale Semiconductor | ||
2 | |||
3 | DESCRIPTION = "Platform specific libraries for imx platform" | ||
4 | LICENSE = "LGPLv2.1" | ||
5 | SECTION = "multimedia" | ||
6 | DEPENDS = "virtual/kernel" | ||
7 | |||
8 | INC_PR = "r1" | ||
9 | |||
10 | LIC_FILES_CHKSUM = "file://ipu/mxc_ipu_hl_lib.h;endline=13;md5=6c7486b21a8524b1879fa159578da31e" | ||
11 | |||
12 | SRC_URI = "file://${PN}-${PV}.tar.gz" | ||
13 | |||
14 | PLATFORM_mx5 = "IMX51" | ||
15 | |||
16 | PARALLEL_MAKE="-j 1" | ||
17 | EXTRA_OEMAKE = "" | ||
18 | |||
19 | do_compile () { | ||
20 | INCLUDE_DIR="-I${STAGING_INCDIR} -I${STAGING_KERNEL_DIR}/drivers/mxc/security/rng/include \ | ||
21 | -I${STAGING_KERNEL_DIR}/drivers/mxc/security/sahara2/include \ | ||
22 | -I${STAGING_KERNEL_DIR}/include" | ||
23 | oe_runmake CROSS_COMPILE="${HOST_PREFIX}" PLATFORM="${PLATFORM}" INCLUDE="${INCLUDE_DIR}" all | ||
24 | } | ||
25 | |||
26 | do_install () { | ||
27 | oe_runmake DEST_DIR="${D}" install | ||
28 | } | ||
29 | |||
30 | FILES_${PN} += "${libdir}/*.so" | ||
31 | FILES_${PN}-dbg += "${libdir}/.debug" | ||
32 | FILES_${PN}-dev += "${libdir}/*.la ${libdir}/*.a" | ||
33 | |||
diff --git a/recipes-multimedia/fsl-mm-core/imx-lib_11.09.01.bb b/recipes-multimedia/fsl-mm-core/imx-lib_11.09.01.bb index a1b137a..843c1a7 100644 --- a/recipes-multimedia/fsl-mm-core/imx-lib_11.09.01.bb +++ b/recipes-multimedia/fsl-mm-core/imx-lib_11.09.01.bb | |||
@@ -1,36 +1,11 @@ | |||
1 | # Copyright (C) 2011 Freescale Semiconductor | 1 | include imx-lib.inc |
2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
3 | 2 | ||
4 | DESCRIPTION = "Platform specific libraries for imx platform" | 3 | PR = "${INC_PR}.0" |
5 | LICENSE = "LGPL" | ||
6 | SECTION = "multimedia" | ||
7 | DEPENDS = "virtual/kernel" | ||
8 | PR = "r1" | ||
9 | 4 | ||
10 | LIC_FILES_CHKSUM = "file://ipu/mxc_ipu_hl_lib.h;endline=13;md5=6c7486b21a8524b1879fa159578da31e" | 5 | COMPATIBLE_MACHINE = "(mx5)" |
11 | 6 | ||
12 | SRC_URI = "file://${PN}-${PV}.tar.gz \ | 7 | SRC_URI += " file://imx-lib-remove-shared-libs-symlinks.patch \ |
13 | file://imx-lib-remove-shared-libs-symlinks.patch \ | 8 | file://0001-ENGR00156800-vpu-Fix-decoding-mp4PackedPBFrame-strea.patch \ |
14 | file://0001-ENGR00156800-vpu-Fix-decoding-mp4PackedPBFrame-strea.patch \ | 9 | file://0002-ENGR00162690-vpu-Fix-the-issue-of-rotation-180-degre.patch" |
15 | file://0002-ENGR00162690-vpu-Fix-the-issue-of-rotation-180-degre.patch" | ||
16 | SRC_URI[md5sum] = "45574f8f32f7000ca11d585fa60dea8c" | 10 | SRC_URI[md5sum] = "45574f8f32f7000ca11d585fa60dea8c" |
17 | SRC_URI[sha256sum] = "f151a8bb3099b596b5834a1139c19e526802e6a0aa965018d16375e7e1f48f27" | 11 | SRC_URI[sha256sum] = "f151a8bb3099b596b5834a1139c19e526802e6a0aa965018d16375e7e1f48f27" |
18 | |||
19 | # override parallel make flags | ||
20 | PARALLEL_MAKE="-j 1" | ||
21 | EXTRA_OEMAKE = "" | ||
22 | |||
23 | do_compile () { | ||
24 | INCLUDE_DIR="-I${STAGING_INCDIR} -I${STAGING_KERNEL_DIR}/drivers/mxc/security/rng/include \ | ||
25 | -I${STAGING_KERNEL_DIR}/drivers/mxc/security/sahara2/include \ | ||
26 | -I${STAGING_KERNEL_DIR}/include" | ||
27 | oe_runmake CROSS_COMPILE="${HOST_PREFIX}" PLATFORM="IMX51" INCLUDE="${INCLUDE_DIR}" all | ||
28 | } | ||
29 | |||
30 | do_install () { | ||
31 | oe_runmake DEST_DIR="${D}" install | ||
32 | } | ||
33 | |||
34 | FILES_${PN} += "${libdir}/*.so" | ||
35 | FILES_${PN}-dbg += "${libdir}/.debug" | ||
36 | FILES_${PN}-dev += "${libdir}/*.la ${libdir}/*.a" | ||