]> code.ossystems Code Review - meta-freescale.git/commitdiff
mesa: Fix override of x11 GLX support for i.MX6
authorOtavio Salvador <otavio@ossystems.com.br>
Mon, 20 Jul 2015 23:50:36 +0000 (20:50 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 19 Apr 2016 18:03:13 +0000 (15:03 -0300)
The replacement of --enable-glx-tls for --enable-glx was not working
due the way the variables are expanded. To fix the issue an annonymous
function has been added to mangle it just before its use.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-graphics/mesa/mesa_%.bbappend

index 5030e7a377f34179d85a742106d77ca6ce0ac7c3..f8cf1bce9e7c956cf78a6f99c559fc4a217d05ad 100644 (file)
@@ -18,6 +18,17 @@ USE_VIV_LIBGL_mx6q = "yes"
 USE_VIV_LIBGL_mx6dl = "yes"
 USE_VIV_LIBGL_mx6sx = "yes"
 
+# FIXME: mesa should support 'x11-no-tls' option
+python () {
+    overrides = d.getVar("OVERRIDES", True).split(":")
+    if "mx6" not in overrides:
+        return
+
+    extra_oeconf = d.getVar("EXTRA_OECONF", True)
+    extra_oeconf = extra_oeconf.replace("--enable-glx-tls", "--enable-glx")
+    d.setVar("EXTRA_OECONF", extra_oeconf)
+}
+
 # FIXME: Dirty hack to allow use of Vivante GPU libGL binary
 do_install_append_mx6 () {
     if [ "${USE_VIV_LIBGL}" = "yes" ]; then
@@ -26,4 +37,3 @@ do_install_append_mx6 () {
               ${D}${includedir}/GL/glext.h
     fi
 }
-EXTRA_OECONF_mx6 := "${@'${EXTRA_OECONF}'.replace('--enable-glx-tls','--enable-glx')}"