]> code.ossystems Code Review - meta-freescale.git/commitdiff
clutter-1.0: Add support for Vivante GPU
authorOtavio Salvador <otavio@ossystems.com.br>
Tue, 1 Oct 2013 16:44:56 +0000 (11:44 -0500)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 6 Jan 2014 16:11:47 +0000 (14:11 -0200)
Add support for Vivante GPU for use with X11 and Wayland backends. In
case 'x11' and 'wayland' distro features are both enabled, it defaults
for X11 support.

Change-Id: I437e9803214c8d1ea3febed3ed318a29bc667eed
Signed-off-by: Lauren Post <lauren.post@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
meta-fsl-arm/recipes-graphics/clutter/clutter-1.0_1.16.2.bbappend [new file with mode: 0644]

diff --git a/meta-fsl-arm/recipes-graphics/clutter/clutter-1.0_1.16.2.bbappend b/meta-fsl-arm/recipes-graphics/clutter/clutter-1.0_1.16.2.bbappend
new file mode 100644 (file)
index 0000000..a4e6f46
--- /dev/null
@@ -0,0 +1,9 @@
+# Provide the need flags and backend settings to work with Vivante GPU
+CFLAGS_append_mx6 = " -DLINUX \
+                      ${@base_contains('DISTRO_FEATURES', 'x11', '-DEGL_API_FB', \
+                                       base_contains('DISTRO_FEATURES', 'wayland', \
+                                                     '-DEGL_API_WL', '', d), d)}"
+
+PACKAGECONFIG_mx6 ??= "${base_contains('DISTRO_FEATURES', 'x11', 'glx x11', \
+                                       base_contains('DISTRO_FEATURES', 'wayland', \
+                                                     'wayland egl', '', d), d)}"