diff options
author | Neena Busireddy <neena.busireddy@freescale.com> | 2015-01-23 22:44:01 -0600 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2015-01-27 09:10:44 -0200 |
commit | 74c86aa9639f6f20991ab64ea75177a017f8749a (patch) | |
tree | c50f748bb8630976e145460a382ef1306d7e7188 /recipes-graphics/imx-gpu-viv | |
parent | f2c1da83567bddded0f764dcc136c753df753d62 (diff) | |
download | meta-fsl-arm-74c86aa9639f6f20991ab64ea75177a017f8749a.tar.gz |
imx-gpu-viv: Upgrade to 3.10.53-1.1.0 GA release
- Graphics recipe is renamed from gpu-viv-bin-mx6q to imx-gpu-viv
- Recipe version is changed to use Vivante version
- gpu-viv-g2d shares same package with imx-gpu-viv
- imx-gpu-viv includes separate sub packages for demos and tools
to support flexible package additions
- Graphics package is reorganized to improve library layout
- New GPU tool apitrace is added - supported only for X11 backend
Signed-off-by: Neena Busireddy <neena.busireddy@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'recipes-graphics/imx-gpu-viv')
6 files changed, 395 insertions, 0 deletions
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc new file mode 100644 index 0000000..020250e --- /dev/null +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv.inc | |||
@@ -0,0 +1,336 @@ | |||
1 | # Copyright (C) 2012-2015 Freescale Semiconductor | ||
2 | # Copyright (C) 2012-2014 O.S. Systems Software LTDA. | ||
3 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
4 | |||
5 | DESCRIPTION = "GPU driver and apps for imx6" | ||
6 | SECTION = "libs" | ||
7 | LICENSE = "Proprietary" | ||
8 | LIC_FILES_CHKSUM = "file://gpu-core/usr/include/gc_vdk.h;endline=11;md5=c4713c78d7f52bf2f92688a6f8f0cc93" | ||
9 | |||
10 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxdamage libxext libxfixes mesa', \ | ||
11 | base_contains('DISTRO_FEATURES', 'wayland', 'wayland', \ | ||
12 | '', d), d)}" | ||
13 | |||
14 | PROVIDES += "virtual/wayland-egl virtual/libgal-x11 virtual/egl virtual/libopenvg virtual/libg2d" | ||
15 | PROVIDES_append_mx6q = " virtual/libgl virtual/libgles1 virtual/libgles2" | ||
16 | PROVIDES_append_mx6dl = " virtual/libgl virtual/libgles1 virtual/libgles2" | ||
17 | PROVIDES_append_mx6sx = " virtual/libgl virtual/libgles1 virtual/libgles2" | ||
18 | |||
19 | PE = "1" | ||
20 | |||
21 | inherit fsl-eula-unpack | ||
22 | |||
23 | SRC_URI = "${FSL_MIRROR}/${PN}-${PV}.bin;fsl-eula=true \ | ||
24 | file://egl_linuxfb.pc \ | ||
25 | file://egl_directfb.pc \ | ||
26 | file://egl_wayland.pc \ | ||
27 | " | ||
28 | PACKAGES =+ "libclc-mx6 libclc-mx6-dev libclc-mx6-dbg \ | ||
29 | libgl-mx6 libgl-mx6-dev libgl-mx6-dbg \ | ||
30 | libgles-mx6 libgles-mx6-dev libgles-mx6-dbg \ | ||
31 | libgles2-mx6 libgles2-mx6-dev libgles2-mx6-dbg \ | ||
32 | libgles3-mx6-dev \ | ||
33 | libglslc-mx6 libglslc-mx6-dev libglslc-mx6-dbg \ | ||
34 | libopencl-mx6 libopencl-mx6-dev libopencl-mx6-dbg \ | ||
35 | libopenvg-mx6 libopenvg-mx6-dev libopenvg-mx6-dbg \ | ||
36 | libvdk-mx6 libvdk-mx6-dev libvdk-mx6-dbg \ | ||
37 | libegl-mx6 libegl-mx6-dev libegl-mx6-dbg \ | ||
38 | libgal-mx6 libgal-mx6-dev libgal-mx6-dbg \ | ||
39 | libvivante-mx6 libvivante-mx6-dev libvivante-mx6-dbg \ | ||
40 | libvivante-dri-mx6 \ | ||
41 | libvivante-dfb-mx6 \ | ||
42 | libvsc-mx6 \ | ||
43 | libwayland-viv-mx6 libwayland-viv-mx6-dev libwayland-viv-mx6-dbg \ | ||
44 | libgc-wayland-protocol-mx6 libgc-wayland-protocol-mx6-dev libgc-wayland-protocol-mx6-dbg \ | ||
45 | libwayland-egl-mx6-dev \ | ||
46 | imx-gpu-viv-g2d imx-gpu-viv-g2d-dev imx-gpu-viv-g2d-dbg \ | ||
47 | imx-gpu-viv-tools imx-gpu-viv-tools-dbg\ | ||
48 | imx-gpu-viv-tools-apitrace imx-gpu-viv-tools-apitrace-dbg\ | ||
49 | imx-gpu-viv-demos imx-gpu-viv-demos-dbg \ | ||
50 | " | ||
51 | |||
52 | # Skip package if it does not match the machine float-point type in use | ||
53 | python __anonymous () { | ||
54 | is_machine_hardfp = base_contains("TUNE_FEATURES", "callconvention-hard", True, False, d) | ||
55 | is_package_hardfp = d.getVar("PACKAGE_FP_TYPE", True) == "hardfp" | ||
56 | |||
57 | if is_package_hardfp != is_machine_hardfp: | ||
58 | PN = d.getVar("PN", True) | ||
59 | PV = d.getVar("PV", True) | ||
60 | bb.debug(1, "Skipping %s (%s) as machine and package float-point does not match" % (PN, PV)) | ||
61 | raise bb.parse.SkipPackage("Package Float-Point is not compatible with the machine") | ||
62 | } | ||
63 | |||
64 | USE_X11 = "${@base_contains("DISTRO_FEATURES", "x11", "yes", "no", d)}" | ||
65 | USE_DFB = "${@base_contains("DISTRO_FEATURES", "directfb", "yes", "no", d)}" | ||
66 | USE_WL = "${@base_contains("DISTRO_FEATURES", "wayland", "yes", "no", d)}" | ||
67 | |||
68 | # Inhibit warnings about files being stripped. | ||
69 | INHIBIT_PACKAGE_STRIP = "1" | ||
70 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
71 | |||
72 | # FIXME: The provided binary doesn't provide soname. If in future BSP | ||
73 | # release the libraries are fixed, we can drop this hack. | ||
74 | REALSOLIBS := "${SOLIBS}" | ||
75 | SOLIBS = "${SOLIBSDEV}" | ||
76 | |||
77 | # For the packages that make up the OpenGL interfaces, inject variables so that | ||
78 | # they don't get Debian-renamed (which would remove the -mx6 suffix). | ||
79 | # | ||
80 | # FIXME: All binaries lack GNU_HASH in elf binary but as we don't have | ||
81 | # the source we cannot fix it. Disable the insane check for now. | ||
82 | python __anonymous() { | ||
83 | packages = d.getVar('PACKAGES', True).split() | ||
84 | for p in packages: | ||
85 | d.appendVar("INSANE_SKIP_%s" % p, " ldflags") | ||
86 | |||
87 | for p in (("libegl", "libegl1"), ("libgl", "libgl1"), | ||
88 | ("libgles1", "libglesv1-cm1"), ("libgles2", "libglesv2-2"), | ||
89 | ("libgles3",)): | ||
90 | fullp = p[0] + "-mx6" | ||
91 | pkgs = " ".join(p) | ||
92 | d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1") | ||
93 | d.appendVar("RREPLACES_" + fullp, pkgs) | ||
94 | d.appendVar("RPROVIDES_" + fullp, pkgs) | ||
95 | d.appendVar("RCONFLICTS_" + fullp, pkgs) | ||
96 | |||
97 | # For -dev, the first element is both the Debian and original name | ||
98 | fullp += "-dev" | ||
99 | pkgs = p[0] + "-dev" | ||
100 | d.setVar("DEBIAN_NOAUTONAME_" + fullp, "1") | ||
101 | d.appendVar("RREPLACES_" + fullp, pkgs) | ||
102 | d.appendVar("RPROVIDES_" + fullp, pkgs) | ||
103 | d.appendVar("RCONFLICTS_" + fullp, pkgs) | ||
104 | } | ||
105 | |||
106 | IS_MX6SL = "0" | ||
107 | IS_MX6SL_mx6sl = "1" | ||
108 | |||
109 | do_install () { | ||
110 | install -d ${D}${libdir} | ||
111 | install -d ${D}${includedir} | ||
112 | install -d ${D}${bindir} | ||
113 | |||
114 | cp -P ${S}/gpu-core/usr/lib/*.so* ${D}${libdir} | ||
115 | cp ${S}/g2d/usr/lib/*.so* ${D}${libdir} | ||
116 | cp -r ${S}/gpu-core/usr/include/* ${D}${includedir} | ||
117 | cp -Pr ${S}/g2d/usr/include/* ${D}${includedir} | ||
118 | cp -r ${S}/gpu-demos/opt ${D} | ||
119 | cp -axr ${S}/gpu-tools/gmem-info/usr/bin/* ${D}${bindir} | ||
120 | cp -axr ${S}/apitrace/usr/lib/* ${D}${libdir} | ||
121 | cp -axr ${S}/apitrace/usr/bin/* ${D}${bindir} | ||
122 | |||
123 | install -d ${D}${libdir}/pkgconfig | ||
124 | |||
125 | # The preference order, based in DISTRO_FEATURES, is x11, wayland, directfb and fb | ||
126 | if [ "${USE_X11}" = "yes" ]; then | ||
127 | cp -r ${S}/gpu-core/usr/lib/dri ${D}${libdir} | ||
128 | |||
129 | backend=x11 | ||
130 | |||
131 | install -m 0644 ${S}/gpu-core/usr/lib/pkgconfig/egl_x11.pc ${D}${libdir}/pkgconfig/egl.pc | ||
132 | install -m 0644 ${S}/gpu-core/usr/lib/pkgconfig/glesv1_cm_x11.pc ${D}${libdir}/pkgconfig/glesv1_cm.pc | ||
133 | install -m 0644 ${S}/gpu-core/usr/lib/pkgconfig/glesv2_x11.pc ${D}${libdir}/pkgconfig/glesv2.pc | ||
134 | install -m 0644 ${S}/gpu-core/usr/lib/pkgconfig/vg_x11.pc ${D}${libdir}/pkgconfig/vg.pc | ||
135 | mv ${D}${libdir}/libGAL_egl.dri.so ${D}${libdir}/libGAL_egl.so | ||
136 | #FIXME: WL & X11 is not currently functional | ||
137 | #if [ "${USE_WL}" = "yes" ]; then | ||
138 | # install -m 0644 ${S}/gpu-core/usr/lib/pkgconfig/gc_wayland_protocol.pc ${D}${libdir}/pkgconfig/gc_wayland_protocol.pc | ||
139 | # install -m 0644 ${S}/gpu-core/usr/lib/pkgconfig/wayland-egl.pc ${D}${libdir}/pkgconfig/wayland-egl.pc | ||
140 | # install -m 0644 ${S}/gpu-core/usr/lib/pkgconfig/wayland-viv.pc ${D}${libdir}/pkgconfig/wayland-viv.pc | ||
141 | #fi | ||
142 | elif [ "${USE_WL}" = "yes" ]; then | ||
143 | backend=wl | ||
144 | |||
145 | install -m 0644 ${WORKDIR}/egl_wayland.pc ${D}${libdir}/pkgconfig/egl.pc | ||
146 | install -m 0644 ${S}/gpu-core/usr/lib/pkgconfig/glesv1_cm.pc ${D}${libdir}/pkgconfig/glesv1_cm.pc | ||
147 | install -m 0644 ${S}/gpu-core/usr/lib/pkgconfig/glesv2.pc ${D}${libdir}/pkgconfig/glesv2.pc | ||
148 | install -m 0644 ${S}/gpu-core/usr/lib/pkgconfig/vg.pc ${D}${libdir}/pkgconfig/vg.pc | ||
149 | install -m 0644 ${S}/gpu-core/usr/lib/pkgconfig/gc_wayland_protocol.pc ${D}${libdir}/pkgconfig/gc_wayland_protocol.pc | ||
150 | install -m 0644 ${S}/gpu-core/usr/lib/pkgconfig/wayland-egl.pc ${D}${libdir}/pkgconfig/wayland-egl.pc | ||
151 | install -m 0644 ${S}/gpu-core/usr/lib/pkgconfig/wayland-viv.pc ${D}${libdir}/pkgconfig/wayland-viv.pc | ||
152 | mv ${D}${libdir}/libGAL_egl.${backend}.so ${D}${libdir}/libGAL_egl.so | ||
153 | else | ||
154 | install -m 0644 ${S}/gpu-core/usr/lib/pkgconfig/glesv1_cm.pc ${D}${libdir}/pkgconfig/glesv1_cm.pc | ||
155 | install -m 0644 ${S}/gpu-core/usr/lib/pkgconfig/glesv2.pc ${D}${libdir}/pkgconfig/glesv2.pc | ||
156 | install -m 0644 ${S}/gpu-core/usr/lib/pkgconfig/vg.pc ${D}${libdir}/pkgconfig/vg.pc | ||
157 | |||
158 | if [ "${USE_DFB}" = "yes" ]; then | ||
159 | install -d ${D}/${sysconfdir} | ||
160 | install -m 644 ${S}/gpu-core/etc/directfbrc ${D}/${sysconfdir}/directfbrc | ||
161 | install -m 0644 ${WORKDIR}/egl_directfb.pc ${D}${libdir}/pkgconfig/egl.pc | ||
162 | |||
163 | cp -r ${S}/gpu-core/usr/lib/directfb-* ${D}${libdir} | ||
164 | backend=dfb | ||
165 | else | ||
166 | # Regular framebuffer | ||
167 | install -m 0644 ${WORKDIR}/egl_linuxfb.pc ${D}${libdir}/pkgconfig/egl.pc | ||
168 | backend=fb | ||
169 | fi | ||
170 | mv ${D}${libdir}/libGAL_egl.${backend}.so ${D}${libdir}/libGAL_egl.so | ||
171 | fi | ||
172 | |||
173 | # Install Vendor ICDs for OpenCL's installable client driver loader (ICDs Loader) | ||
174 | install -d ${D}${sysconfdir}/OpenCL/vendors/ | ||
175 | install -m 0644 ${S}/gpu-core/etc/Vivante.icd ${D}${sysconfdir}/OpenCL/vendors/Vivante.icd | ||
176 | |||
177 | # We'll only have one backend here so we rename it to generic name | ||
178 | # and avoid rework in other packages, when possible | ||
179 | mv ${D}${libdir}/libGL.so.1.2 ${D}${libdir}/libGL.so.1.2.0 | ||
180 | ln -sf libGL.so.1.2.0 ${D}${libdir}/libGL.so.1.2 | ||
181 | ln -sf libGL.so.1.2.0 ${D}${libdir}/libGL.so.1 | ||
182 | ln -sf libGL.so.1.2.0 ${D}${libdir}/libGL.so | ||
183 | mv ${D}${libdir}/libEGL-${backend}.so ${D}${libdir}/libEGL.so.1.0 | ||
184 | ln -sf libEGL.so.1.0 ${D}${libdir}/libEGL.so.1 | ||
185 | ln -sf libEGL.so.1.0 ${D}${libdir}/libEGL.so | ||
186 | mv ${D}${libdir}/libGAL-${backend}.so ${D}${libdir}/libGAL.so | ||
187 | mv ${D}${libdir}/libVIVANTE-${backend}.so ${D}${libdir}/libVIVANTE.so | ||
188 | |||
189 | # update libglesv2 as backend dependent | ||
190 | rm -rf ${D}${libdir}/libGLESv2* | ||
191 | cp ${S}/gpu-core/usr/lib/libGLESv2-${backend}.so ${D}${libdir}/libGLESv2.so.2.0.0 | ||
192 | ln -sf libGLESv2.so.2.0.0 ${D}${libdir}/libGLESv2.so.2 | ||
193 | ln -sf libGLESv2.so.2.0.0 ${D}${libdir}/libGLESv2.so | ||
194 | |||
195 | # FIXME: The libGL.so* libraries depend on the X11 libraries and | ||
196 | # libglapi.so from mesa. For non-X11 distros, neither of them are listed | ||
197 | # as build dependencies, which can lead to non-deterministic package | ||
198 | # dependencies. If the intention is that the GL backend should be usable | ||
199 | # without X11, the linking should be fixed. For now just skip | ||
200 | # packaging them. | ||
201 | if [ "${USE_X11}" = "no" ]; then | ||
202 | rm ${D}${libdir}/libGL.* | ||
203 | fi | ||
204 | |||
205 | # skip packaging wayland libraries if no support is requested | ||
206 | if [ "${USE_WL}" = "no" ]; then | ||
207 | rm ${D}${libdir}/libgc_wayland_protocol.* | ||
208 | rm ${D}${libdir}/libwayland-viv.* | ||
209 | fi | ||
210 | |||
211 | for backend in wl x11 fb dfb dri; do | ||
212 | find ${D}${libdir} -name "*-$backend.so" -exec rm '{}' ';' | ||
213 | find ${D}${libdir} -name "*.$backend.so" -exec rm '{}' ';' | ||
214 | done | ||
215 | |||
216 | # FIXME: MX6SL does not have 3D support; hack it for now | ||
217 | if [ "${IS_MX6SL}" = "1" ]; then | ||
218 | rm -rf ${D}${libdir}/libCLC* ${D}${includedir}/CL \ | ||
219 | \ | ||
220 | ${D}${libdir}/libGL* ${D}${includedir}/GL* \ | ||
221 | \ | ||
222 | ${D}${libdir}/libGLES* \ | ||
223 | \ | ||
224 | ${D}${libdir}/libOpenCL* ${D}${includedir}/CL \ | ||
225 | \ | ||
226 | ${D}${libdir}/libOpenVG.so ${D}${libdir}/libOpenVG.3d.so \ | ||
227 | \ | ||
228 | ${D}${libdir}/libVivanteOpenCL.so \ | ||
229 | \ | ||
230 | ${D}/opt/viv_samples/vdk \ | ||
231 | ${D}/opt/viv_samples/es20 ${D}/opt/viv_samples/cl11 | ||
232 | |||
233 | ln -sf libOpenVG.2d.so ${D}${libdir}/libOpenVG.so | ||
234 | fi | ||
235 | |||
236 | find ${D}${libdir} -type f -exec chmod 644 {} \; | ||
237 | find ${D}${includedir} -type f -exec chmod 644 {} \; | ||
238 | } | ||
239 | |||
240 | FILES_libclc-mx6 = "${libdir}/libCLC${SOLIBS}" | ||
241 | FILES_libclc-mx6-dev = "${includedir}/CL ${libdir}/libCLC${SOLIBSDEV}" | ||
242 | FILES_libclc-mx6-dbg = "${libdir}/.debug/libCLC${SOLIBS}" | ||
243 | |||
244 | # libEGL.so is used by some demo apps from Freescale | ||
245 | INSANE_SKIP_libegl-mx6 += "dev-so" | ||
246 | FILES_libegl-mx6 = "${libdir}/libEGL${REALSOLIBS} ${libdir}/libEGL${SOLIBSDEV} " | ||
247 | FILES_libegl-mx6-dev = "${includedir}/EGL ${includedir}/KHR ${libdir}/pkgconfig/egl.pc" | ||
248 | FILES_libegl-mx6-dbg = "${libdir}/.debug/libEGL${SOLIBS}" | ||
249 | |||
250 | FILES_libgal-mx6 = "${libdir}/libGAL${SOLIBS} ${libdir}/libGAL_egl${SOLIBS}" | ||
251 | FILES_libgal-mx6-dev = "${libdir}/libGAL${SOLIBSDEV} ${includedir}/HAL" | ||
252 | FILES_libgal-mx6-dbg = "${libdir}/.debug/libGAL${SOLIBS}" | ||
253 | |||
254 | FILES_libvsc-mx6 = "${libdir}/libVSC${SOLIBS}" | ||
255 | |||
256 | FILES_libgl-mx6 = "${libdir}/libGL${REALSOLIBS}" | ||
257 | FILES_libgl-mx6-dev = "${libdir}/libGL${SOLIBSDEV}" | ||
258 | FILES_libgl-mx6-dbg = "${libdir}/.debug/libGL.${SOLIBS}" | ||
259 | RDEPENDS_libgl-mx6 = "libglapi" | ||
260 | # Includes GL headers from mesa | ||
261 | RDEPENDS_libgl-mx6-dev += "libgl-mesa-dev" | ||
262 | |||
263 | # libEGL needs to open libGLESv1.so | ||
264 | INSANE_SKIP_libgles-mx6 += "dev-so" | ||
265 | FILES_libgles-mx6 = "${libdir}/libGLESv1*${REALSOLIBS} ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${REALSOLIBS} ${libdir}/libGLES_*${SOLIBS}" | ||
266 | FILES_libgles-mx6-dev = "${includedir}/GLES ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${SOLIBSDEV} ${libdir}/pkgconfig/glesv1_cm.pc" | ||
267 | FILES_libgles-mx6-dbg = "${libdir}/.debug/libGLESv1*${SOLIBS} ${libdir}/.debug/libGLES_*${SOLIBS}" | ||
268 | |||
269 | # libEGL needs to open libGLESv2.so | ||
270 | INSANE_SKIP_libgles2-mx6 += "dev-so" | ||
271 | FILES_libgles2-mx6 = "${libdir}/libGLESv2${REALSOLIBS} ${libdir}/libGLESv2${SOLIBS}" | ||
272 | FILES_libgles2-mx6-dev = "${includedir}/GLES2 ${libdir}/libGLESv2${SOLIBSDEV} ${libdir}/pkgconfig/glesv2.pc" | ||
273 | FILES_libgles2-mx6-dbg = "${libdir}/.debug/libGLESv2${SOLIBS}" | ||
274 | RDEPENDS_libgles2-mx6 = "libglslc-mx6" | ||
275 | |||
276 | FILES_libgles3-mx6-dev = "${includedir}/GLES3" | ||
277 | |||
278 | FILES_libglslc-mx6 = "${libdir}/libGLSLC${SOLIBS}" | ||
279 | FILES_libglslc-mx6-dev = "${includedir}/CL ${libdir}/libGLSLC${SOLIBSDEV}" | ||
280 | FILES_libglslc-mx6-dbg = "${libdir}/.debug/libGLSLC${SOLIBS}" | ||
281 | |||
282 | FILES_libopencl-mx6 = "${libdir}/libOpenCL${SOLIBS} \ | ||
283 | ${libdir}/libVivanteOpenCL${SOLIBS} \ | ||
284 | ${sysconfdir}/OpenCL/vendors/Vivante.icd" | ||
285 | FILES_libopencl-mx6-dev = "${includedir}/CL ${libdir}/libOpenCL${SOLIBSDEV}" | ||
286 | FILES_libopencl-mx6-dbg = "${libdir}/.debug/libOpenCL${SOLIBS}" | ||
287 | RDEPENDS_libopencl-mx6 = "libclc-mx6" | ||
288 | |||
289 | INSANE_SKIP_libopenvg-mx6 += "dev-so" | ||
290 | FILES_libopenvg-mx6 = "${libdir}/libOpenVG*${SOLIBS}" | ||
291 | FILES_libopenvg-mx6-dev = "${includedir}/VG ${libdir}/libOpenVG*${SOLIBSDEV} ${libdir}/pkgconfig/vg.pc" | ||
292 | FILES_libopenvg-mx6-dbg = "${libdir}/.debug/libOpenVG*${SOLIBS}" | ||
293 | |||
294 | FILES_libvdk-mx6 = "${libdir}/libVDK${SOLIBS}" | ||
295 | FILES_libvdk-mx6-dev = "${includedir}/*vdk*.h ${libdir}/libVDK${SOLIBSDEV}" | ||
296 | FILES_libvdk-mx6-dbg = "${libdir}/.debug/libVDK${SOLIBS}" | ||
297 | |||
298 | FILES_libvivante-mx6 = "${libdir}/libVIVANTE${SOLIBS}" | ||
299 | FILES_libvivante-mx6-dev = "${libdir}/libVIVANTE${SOLIBSDEV}" | ||
300 | FILES_libvivante-mx6-dbg = "${libdir}/.debug/libVIVANTE${SOLIBS}" | ||
301 | |||
302 | FILES_libvivante-dri-mx6 = "${libdir}/dri/vivante_dri.so" | ||
303 | RDEPENDS_libvivante-dri-mx6 = "libdrm" | ||
304 | |||
305 | FILES_libvivante-dfb-mx6 = "${libdir}/directfb-*/gfxdrivers/libdirectfb_gal.so" | ||
306 | |||
307 | INSANE_SKIP_libwayland-viv-mx6 += "dev-so" | ||
308 | FILES_libwayland-viv-mx6 = "${libdir}/libwayland-viv${REALSOLIBS} ${libdir}/libwayland-viv${SOLIBS}" | ||
309 | FILES_libwayland-viv-mx6-dev = "${includedir}/wayland-viv ${libdir})/libwayland-viv${SOLIBSDEV} ${libdir}/pkgconfig/wayland-viv.pc" | ||
310 | FILES_libwayland-viv-mx6-dbg = "${libdir}/.debug/libwayland-viv${SOLIBS}" | ||
311 | |||
312 | INSANE_SKIP_libgc-wayland-protocol-mx6 += "dev-so" | ||
313 | FILES_libgc-wayland-protocol-mx6 = "${libdir}/libgc_wayland_protocol${REALSOLIBS} ${libdir}/libgc_wayland_protocol${SOLIBS}" | ||
314 | FILES_libgc-wayland-protocol-mx6-dev = "${libdir}/libgc_wayland_protocol${SOLIBSDEV} ${libdir}/pkgconfig/gc_wayland_protocol.pc" | ||
315 | FILES_libgc-wayland-protocol-mx6-dbg = "${libdir}/libgc_wayland_protocol${SOLIBS}" | ||
316 | |||
317 | FILES_libwayland-egl-mx6-dev = "${libdir}/pkgconfig/wayland-egl.pc" | ||
318 | |||
319 | FILES_libvivante-dfb-mx6 += "${sysconfdir}/directfbrc" | ||
320 | |||
321 | INSANE_SKIP_imx-gpu-viv-g2d += "dev-so" | ||
322 | FILES_imx-gpu-viv-g2d = "${libdir}/libg2d* " | ||
323 | FILES_imx-gpu-viv-g2d-dev = "${includedir}/g2d.h" | ||
324 | FILES_imx-gpu-viv-g2d-dbg = "${libdir}/.debug/libg2d${SOLIBS}" | ||
325 | |||
326 | FILES_imx-gpu-viv-tools = "${bindir}/gmem_info" | ||
327 | FILES_imx-gpu-viv-tools-dbg = "${bindir}/gmem_info" | ||
328 | |||
329 | FILES_imx-gpu-viv-tools-apitrace = "${bindir} ${libdir}" | ||
330 | FILES_imx-gpu-viv-tools-apitrace-dbg = "${libdir}/*/*/.debug" | ||
331 | |||
332 | FILES_imx-gpu-viv-demos = "/opt" | ||
333 | FILES_imx-gpu-viv-demos-dbg = "/opt/viv_samples/*/*/.debug" | ||
334 | INSANE_SKIP_imx-gpu-viv-demos += "rpaths" | ||
335 | |||
336 | COMPATIBLE_MACHINE = "(mx6)" | ||
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv/egl_directfb.pc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv/egl_directfb.pc new file mode 100644 index 0000000..ff99007 --- /dev/null +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv/egl_directfb.pc | |||
@@ -0,0 +1,12 @@ | |||
1 | prefix=/usr | ||
2 | exec_prefix=${prefix} | ||
3 | libdir=/usr/lib | ||
4 | includedir=/usr/include | ||
5 | |||
6 | Name: egl | ||
7 | Description: Vivante EGL library | ||
8 | Requires.private: | ||
9 | Version: 8.0 | ||
10 | Libs: -L${libdir} -lEGL | ||
11 | Libs.private: -lm -lpthread -ldl | ||
12 | Cflags: -I${includedir} -DLINUX -DEGL_API_DFB | ||
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv/egl_linuxfb.pc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv/egl_linuxfb.pc new file mode 100644 index 0000000..8c2c8c6 --- /dev/null +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv/egl_linuxfb.pc | |||
@@ -0,0 +1,13 @@ | |||
1 | prefix=/usr | ||
2 | exec_prefix=${prefix} | ||
3 | libdir=/usr/lib | ||
4 | includedir=/usr/include | ||
5 | |||
6 | Name: egl | ||
7 | Description: Vivante EGL library | ||
8 | Requires.private: | ||
9 | Version: 8.0 | ||
10 | Libs: -L${libdir} -lEGL | ||
11 | Libs.private: -lm -lpthread -ldl | ||
12 | Cflags: -I${includedir} -DLINUX -DEGL_API_FB | ||
13 | |||
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv/egl_wayland.pc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv/egl_wayland.pc new file mode 100644 index 0000000..25bbea8 --- /dev/null +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv/egl_wayland.pc | |||
@@ -0,0 +1,13 @@ | |||
1 | prefix=/usr | ||
2 | exec_prefix=${prefix} | ||
3 | libdir=/usr/lib | ||
4 | includedir=/usr/include | ||
5 | |||
6 | Name: egl | ||
7 | Description: Vivante EGL library | ||
8 | Requires.private: | ||
9 | Version: 8.0 | ||
10 | Libs: -L${libdir} -lEGL | ||
11 | Libs.private: -lm -lpthread -ldl | ||
12 | Cflags: -I${includedir} -DLINUX -DEGL_API_FB -DWL_EGL_PLATFORM | ||
13 | |||
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p4.1-hfp.bb b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p4.1-hfp.bb new file mode 100644 index 0000000..c85e415 --- /dev/null +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p4.1-hfp.bb | |||
@@ -0,0 +1,9 @@ | |||
1 | # Copyright (C) 2013-2015 Freescale Semiconductor | ||
2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
3 | |||
4 | require imx-gpu-viv.inc | ||
5 | |||
6 | SRC_URI[md5sum] = "dd2093e6ec951fe843a2944af307d721" | ||
7 | SRC_URI[sha256sum] = "6c436ea127bc1423fbe092ee5eaa3a8513647dfe2aff79f446fa8d6b4d00bcac" | ||
8 | |||
9 | PACKAGE_FP_TYPE = "hardfp" | ||
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p4.1-sfp.bb b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p4.1-sfp.bb new file mode 100644 index 0000000..5f78d64 --- /dev/null +++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv_5.0.11.p4.1-sfp.bb | |||
@@ -0,0 +1,12 @@ | |||
1 | # Copyright (C) 2013-2015 Freescale Semiconductor | ||
2 | # Released under the MIT license (see COPYING.MIT for the terms) | ||
3 | |||
4 | require imx-gpu-viv.inc | ||
5 | |||
6 | SRC_URI[md5sum] = "386b66e25abfb962f8eaf54fa85e7c18" | ||
7 | SRC_URI[sha256sum] = "08349e3e6f23287f03e3a896c16938acc9cff44a1f6d624b23f7d348e09ab1ac" | ||
8 | |||
9 | # FIXME skip the QA error for viv-samples | ||
10 | INSANE_SKIP_${PN} += "rpaths" | ||
11 | |||
12 | PACKAGE_FP_TYPE = "softfp" | ||