]> 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>
Tue, 23 May 2017 01:27:03 +0000 (22:27 -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 3005fd739efb987e0f257a8f77a80a131edc8529..863131d1d54f0429cf6c3f8893443b3c4e49fbef 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"))
 }
 
 # FIXME: Dirty hack to allow use of Vivante GPU libGL binary