]> code.ossystems Code Review - meta-freescale.git/commitdiff
mesa: fix configuration rewrite
authorMatt Madison <matt@madison.systems>
Tue, 16 May 2017 15:15:10 +0000 (08:15 -0700)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 19 May 2017 10:57:09 +0000 (07:57 -0300)
to change just the PACKAGECONFIG[x11] setting (without
expansion), instead of overwriting EXTRA_OECONF (with
expansion).

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

index 7d9d34593c6dba3b215c578a68a9d1d9532353b5..eaa94eef13995fd2366b50b67befda51e6bd590d 100644 (file)
@@ -9,9 +9,8 @@ python () {
     if "imxgpu2d" 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)
+    x11flag = d.getVarFlag("PACKAGECONFIG", "x11", False)
+    d.setVarFlag("PACKAGECONFIG", "x11", x11flag.replace("--enable-glx-tls", "--enable-glx"))
 }
 
 # Enable Etnaviv support