diff options
Diffstat (limited to 'recipes-graphics/gpu-viv-g2d/gpu-viv-g2d.inc')
-rw-r--r-- | recipes-graphics/gpu-viv-g2d/gpu-viv-g2d.inc | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/recipes-graphics/gpu-viv-g2d/gpu-viv-g2d.inc b/recipes-graphics/gpu-viv-g2d/gpu-viv-g2d.inc new file mode 100644 index 0000000..ce0c74f --- /dev/null +++ b/recipes-graphics/gpu-viv-g2d/gpu-viv-g2d.inc | |||
@@ -0,0 +1,45 @@ | |||
1 | # Copyright (C) 2013, 2014 Freescale Semiconductor | ||
2 | |||
3 | DESCRIPTION = "GPU Vivante G2D library and sample applications for imx6" | ||
4 | SECTION = "libs" | ||
5 | LICENSE = "Proprietary" | ||
6 | LIC_FILES_CHKSUM = "file://usr/include/g2d.h;endline=7;md5=861ebad4adc7236f8d1905338abd7eb2" | ||
7 | |||
8 | PROVIDES += "virtual/libg2d" | ||
9 | |||
10 | PACKAGES = "${PN} ${PN}-dev ${PN}-dbg" | ||
11 | |||
12 | inherit fsl-eula-unpack | ||
13 | |||
14 | PE = "1" | ||
15 | |||
16 | SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true" | ||
17 | |||
18 | PACKAGES += "libg2d" | ||
19 | |||
20 | # Inhibit warnings about files being stripped. | ||
21 | INHIBIT_PACKAGE_STRIP = "1" | ||
22 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
23 | |||
24 | do_install () { | ||
25 | install -d ${D}${libdir} | ||
26 | install -d ${D}${includedir} | ||
27 | |||
28 | cp ${S}/usr/lib/*.so ${D}${libdir} | ||
29 | cp -axr ${S}/usr/include/* ${D}${includedir} | ||
30 | cp -axr ${S}/opt ${D} | ||
31 | |||
32 | find ${D}${libdir} -type f -exec chmod 644 {} \; | ||
33 | find ${D}${includedir} -type f -exec chmod 644 {} \; | ||
34 | } | ||
35 | |||
36 | # FIXME: The provided binary doesn't provide soname. If in future BSP | ||
37 | # release the libraries are fixed, we can drop this hack. | ||
38 | REALSOLIBS := "${SOLIBS}" | ||
39 | SOLIBS = "${SOLIBSDEV}" | ||
40 | |||
41 | FILES_${PN} = "/opt" | ||
42 | FILES_libg2d = "${libdir}/libg2d-viv${SOLIBS} ${libdir}/libg2d${SOLIBS}" | ||
43 | FILES_${PN}-dev = "${includedir}" | ||
44 | |||
45 | COMPATIBLE_MACHINE = "(mx6)" | ||