diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2012-11-08 21:43:56 -0600 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2012-11-23 09:18:55 -0200 |
commit | 7c3ed85b91cd42753ac94734e938f3fb98699701 (patch) | |
tree | ca7034bce9b925f3d4a2b5c11571e13bfd1ba127 | |
parent | 981ec6abdf60586dc9d3b5b50f45be27410ea39e (diff) | |
download | meta-fsl-arm-7c3ed85b91cd42753ac94734e938f3fb98699701.tar.gz |
gpu-viv-bin-mx6q: Add Vivante GPU libraries
This recipe provides the binary libraries for use with iMX6 CPUs.
Change-Id: If21cf21535fc8ec4a0a1117974a8cb1f43499f66
Signed-off-by: Adrian Alonso <aalonso00@gmail.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
-rw-r--r-- | recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc | 144 | ||||
-rw-r--r-- | recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_12.09.01.bb | 9 |
2 files changed, 153 insertions, 0 deletions
diff --git a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc new file mode 100644 index 0000000..83ab75a --- /dev/null +++ b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc | |||
@@ -0,0 +1,144 @@ | |||
1 | # Copyright (C) 2012 Freescale Semiconductor | ||
2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
3 | |||
4 | DESCRIPTION = "GPU driver and apps for imx6" | ||
5 | SECTION = "libs" | ||
6 | LICENSE = "Proprietary" | ||
7 | LIC_FILES_CHKSUM = "file://usr/include/gc_vdk.h;endline=11;md5=092bc28e13d678ceaebe1a40559275fb" | ||
8 | PROVIDES += "virtual/libgal-x11 virtual/egl virtual/libgles1 virtual/libgles2 libvivante-dri-mx6" | ||
9 | |||
10 | INC_PR = "r0" | ||
11 | |||
12 | inherit fsl-eula-unpack | ||
13 | |||
14 | SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true" | ||
15 | |||
16 | PACKAGES =+ "libclc-mx6 libclc-mx6-dev libclc-mx6-dbg \ | ||
17 | libegl-fb-mx6 libegl-fb-mx6-dev libegl-fb-mx6-dbg \ | ||
18 | libegl-x11-mx6 libegl-x11-mx6-dev libegl-x11-mx6-dbg \ | ||
19 | libegl-common-mx6 libegl-common-mx6-dev libegl-common-mx6-dbg \ | ||
20 | libgal-fb-mx6 libgal-fb-mx6-dev libgal-fb-mx6-dbg \ | ||
21 | libgal-x11-mx6 libgal-x11-mx6-dev libgal-x11-mx6-dbg \ | ||
22 | libgal-common-mx6 libgal-common-mx6-dev libgal-common-mx6-dbg \ | ||
23 | libgles-mx6 libgles-mx6-dev libgles-mx6-dbg \ | ||
24 | libgles2-mx6 libgles2-mx6-dev libgles2-mx6-dbg \ | ||
25 | libgl-mx6 libgl-mx6-dev libgl-mx6-dbg \ | ||
26 | libglslc-mx6 libglslc-mx6-dev libglslc-mx6-dbg \ | ||
27 | libopencl-mx6 libopencl-mx6-dev libopencl-mx6-dbg \ | ||
28 | libopenvg-mx6 libopenvg-mx6-dev libopenvg-mx6-dbg \ | ||
29 | libvdk-mx6 libvdk-mx6-dev libvdk-mx6-dbg \ | ||
30 | libvivante-x11-mx6 libvivante-x11-mx6-dev libvivante-x11-mx6-dbg \ | ||
31 | libvivante-fb-mx6 libvivante-fb-mx6-dev libvivante-fb-mx6-dbg \ | ||
32 | libvivante-dri-mx6 libvivante-dri-mx6-dev libvivante-dri-mx6-dbg \ | ||
33 | libvivante-common-mx6 libvivante-common-mx6-dev libvivante-common-mx6-dbg \ | ||
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 | SOLIBS = "${SOLIBSDEV}" | ||
39 | |||
40 | # FIXME: All binaries lack GNU_HASH in elf binary but as we don't have | ||
41 | # the source we cannot fix it. Disable the insane check for now. | ||
42 | python __anonymous() { | ||
43 | packages = d.getVar('PACKAGES', True).split() | ||
44 | for p in packages: | ||
45 | d.setVar("INSANE_SKIP_%s" % p, "ldflags") | ||
46 | } | ||
47 | |||
48 | do_install () { | ||
49 | install -d ${D}${libdir}/dri | ||
50 | install -d ${D}${includedir} | ||
51 | |||
52 | cp ${S}/usr/lib/*.so ${D}${libdir} | ||
53 | cp -axr ${S}/usr/include/* ${D}${includedir} | ||
54 | |||
55 | cp -axr ${S}/opt ${D} | ||
56 | |||
57 | # Move DRI library to proper path | ||
58 | mv ${D}${libdir}/vivante_dri.so ${D}${libdir}/dri | ||
59 | |||
60 | find ${D}${libdir} -type f -exec chmod 644 {} \; | ||
61 | find ${D}${includedir} -type f -exec chmod 644 {} \; | ||
62 | } | ||
63 | |||
64 | S = "${WORKDIR}/${PN}-${PV}" | ||
65 | |||
66 | FILES_${PN} += "/opt" | ||
67 | FILES_${PN}-dev = "${includedir}" | ||
68 | FILES_${PN}-dbg = "${libdir}/.debug ${libdir}/dri/.debug \ | ||
69 | /opt/viv_samples/*/*/.debug" | ||
70 | |||
71 | FILES_libclc-mx6 = "${libdir}/libCLC${SOLIBS}" | ||
72 | FILES_libclc-mx6-dev = "${includedir}/CL ${libdir}/libCLC${SOLIBSDEV}" | ||
73 | FILES_libclc-mx6-dbg = "${libdir}/.debug/libCLC${SOLIBS}" | ||
74 | |||
75 | FILES_libegl-common-mx6 = "${libdir}/libEGL${SOLIBS}" | ||
76 | FILES_libegl-common-mx6-dev = "${includedir}/EGL ${libdir}/libEGL${SOLIBSDEV}" | ||
77 | FILES_libegl-common-mx6-dbg = "${libdir}/.debug/libEGL${SOLIBS}" | ||
78 | |||
79 | FILES_libegl-fb-mx6 = "${libdir}/libEGL-fb${SOLIBS}" | ||
80 | FILES_libegl-fb-mx6-dev = "${libdir}/libEGL-fb${SOLIBSDEV}" | ||
81 | FILES_libegl-fb-mx6-dbg = "${libdir}/.debug/libEGL-fb${SOLIBS}" | ||
82 | |||
83 | FILES_libegl-x11-mx6 = "${libdir}/libEGL-x11${SOLIBS}" | ||
84 | FILES_libegl-x11-mx6-dev = "${libdir}/libEGL-x11${SOLIBSDEV}" | ||
85 | FILES_libegl-x11-mx6-dbg = "${libdir}/.debug/libEGL-x11${SOLIBS}" | ||
86 | |||
87 | FILES_libgal-common-mx6 = "${libdir}/libGAL${SOLIBS}" | ||
88 | FILES_libgal-common-mx6-dev = "${includedir}/HAL ${libdir}/libGAL${SOLIBSDEV}" | ||
89 | FILES_libgal-common-mx6-dbg = "${libdir}/.debug/libGAL${SOLIBS}" | ||
90 | |||
91 | FILES_libgal-fb-mx6 = "${libdir}/libGAL-fb${SOLIBS}" | ||
92 | FILES_libgal-fb-mx6-dev = "${libdir}/libGAL-fb${SOLIBSDEV}" | ||
93 | FILES_libgal-fb-mx6-dbg = "${libdir}/.debug/libGAL-fb${SOLIBS}" | ||
94 | |||
95 | FILES_libgal-x11-mx6 = "${libdir}/libGAL-x11${SOLIBS}" | ||
96 | FILES_libgal-x11-mx6-dev = "${libdir}/libGAL-x11${SOLIBSDEV}" | ||
97 | FILES_libgal-x11-mx6-dbg = "${libdir}/.debug/libGAL-x11${SOLIBS}" | ||
98 | |||
99 | FILES_libgles-mx6 = "${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBS}" | ||
100 | FILES_libgles-mx6-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBSDEV}" | ||
101 | FILES_libgles-mx6-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS} ${libdir}/.debug/libGLES_*${SOLIBS}" | ||
102 | |||
103 | FILES_libgles2-mx6 = "${libdir}/libGLESv2${SOLIBS}" | ||
104 | FILES_libgles2-mx6-dev = "${includedir}/GLES2 ${libdir}/libGLESv2${SOLIBSDEV}" | ||
105 | FILES_libgles2-mx6-dbg = "${libdir}/.debug/libGLESv2${SOLIBS}" | ||
106 | |||
107 | FILES_libgl-mx6 = "${libdir}/libGL${SOLIBS}" | ||
108 | FILES_libgl-mx6-dev = "${includedir}/GL ${libdir}/libGL${SOLIBSDEV}" | ||
109 | FILES_libgl-mx6-dbg = "${libdir}/.debug/libGL${SOLIBS}" | ||
110 | |||
111 | FILES_libglslc-mx6 = "${libdir}/libGLSLC${SOLIBS}" | ||
112 | FILES_libglslc-mx6-dev = "${includedir}/CL ${libdir}/libGLSLC${SOLIBSDEV}" | ||
113 | FILES_libglslc-mx6-dbg = "${libdir}/.debug/libGLSLC${SOLIBS}" | ||
114 | |||
115 | FILES_libopencl-mx6 = "${libdir}/libOpenCL${SOLIBS}" | ||
116 | FILES_libopencl-mx6-dev = "${includedir}/CL ${libdir}/libOpenCL${SOLIBSDEV}" | ||
117 | FILES_libopencl-mx6-dbg = "${libdir}/.debug/libOpenCL${SOLIBS}" | ||
118 | |||
119 | FILES_libopenvg-mx6 = "${libdir}/libOpenVG*${SOLIBS}" | ||
120 | FILES_libopenvg-mx6-dev = "${includedir}/VG ${libdir}/libOpenVG*${SOLIBSDEV}" | ||
121 | FILES_libopenvg-mx6-dbg = "${libdir}/.debug/libOpenVG*${SOLIBS}" | ||
122 | |||
123 | FILES_libvdk-mx6 = "${libdir}/libVDK${SOLIBS}" | ||
124 | FILES_libvdk-mx6-dev = "${includedir}/*vdk.h ${libdir}/libVDK${SOLIBSDEV}" | ||
125 | FILES_libvdk-mx6-dbg = "${libdir}/.debug/libVDK${SOLIBS}" | ||
126 | |||
127 | FILES_libvivante-common-mx6 = "${libdir}/libVIVANTE${SOLIBS}" | ||
128 | FILES_libvivante-common-mx6-dev = "${includedir}/HAL ${libdir}/libVIVANTE${SOLIBSDEV}" | ||
129 | FILES_libvivante-common-mx6-dbg = "${libdir}/.debug/libVIVANTE${SOLIBS}" | ||
130 | |||
131 | FILES_libvivante-fb-mx6 = "${libdir}/libVIVANTE-fb${SOLIBS}" | ||
132 | FILES_libvivante-fb-mx6-dev = "${libdir}/libVIVANTE-fb${SOLIBSDEV}" | ||
133 | FILES_libvivante-fb-mx6-dbg = "${libdir}/.debug/libVIVANTE-fb${SOLIBS}" | ||
134 | |||
135 | FILES_libvivante-x11-mx6 = "${libdir}/libVIVANTE-x11${SOLIBS}" | ||
136 | FILES_libvivante-x11-mx6-dev = "${libdir}/libVIVANTE-x11${SOLIBSDEV}" | ||
137 | FILES_libvivante-x11-mx6-dbg = "${libdir}/.debug/libVIVANTE-x11${SOLIBS}" | ||
138 | |||
139 | FILES_libvivante-dri-mx6 = "${libdir}/dri/vivante_dri${SOLIBS}" | ||
140 | FILES_libvivante-dri-mx6-dev = "" | ||
141 | FILES_libvivante-dri-mx6-dbg = "${libdir}/dri/.debug/vivante_dri${SOLIBS}" | ||
142 | |||
143 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
144 | COMPATIBLE_MACHINE = "(mx6)" | ||
diff --git a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_12.09.01.bb b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_12.09.01.bb new file mode 100644 index 0000000..c54ad19 --- /dev/null +++ b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q_12.09.01.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | # Copyright (C) 2012 Freescale Semiconductor | ||
2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
3 | |||
4 | PR = "${INC_PR}.0" | ||
5 | |||
6 | include gpu-viv-bin-mx6q.inc | ||
7 | |||
8 | SRC_URI[md5sum] = "9f2c43b6eae468df6cc6fd75efd00bc5" | ||
9 | SRC_URI[sha256sum] = "2cec10c1d69bce75a7c2a4482eb3ed29b171578c3b01c5b4ef2cc868ca327330" | ||