Patchwork [meta-fsl-arm,2/5] cogl-1.0: Add need flags for use with Vivante GPU

login
register
mail settings
Submitter Otavio Salvador
Date Jan. 6, 2014, 3:37 p.m.
Message ID <1389022636-24794-2-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/64153/
State Changes Requested
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - Jan. 6, 2014, 3:37 p.m.
Change-Id: I180b92818a3081c861b7f29fc35bbc75e2b56b9d
Signed-off-by: Lauren Post <lauren.post@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 recipes-graphics/cogl/cogl-1.0_1.16.0.bbappend | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 recipes-graphics/cogl/cogl-1.0_1.16.0.bbappend

Patch

diff --git a/recipes-graphics/cogl/cogl-1.0_1.16.0.bbappend b/recipes-graphics/cogl/cogl-1.0_1.16.0.bbappend
new file mode 100644
index 0000000..9de6ceb
--- /dev/null
+++ b/recipes-graphics/cogl/cogl-1.0_1.16.0.bbappend
@@ -0,0 +1,10 @@ 
+# 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 ??= "cogl-pango gles2 \
+                       ${@base_contains('DISTRO_FEATURES', 'x11', 'egl-x11', \
+                                         base_contains('DISTRO_FEATURES', 'wayland', \
+                                                       'egl-wayland', '', d), d)}"