Patchwork [02/10] mesa: use PACKAGECONFIG instead of DISTRO_FEATURES to define EGL_PLATFORMS

login
register
mail settings
Submitter Martin Jansa
Date June 12, 2013, 11:19 p.m.
Message ID <2ef3f01e7c79bb7e499aa8790a25e25b54e6bf05.1371079127.git.Martin.Jansa@gmail.com>
Download mbox | patch
Permalink /patch/51635/
State Accepted
Commit 50dcfeab2b18422f3ab067893a0b68b17706d6e2
Headers show

Comments

Martin Jansa - June 12, 2013, 11:19 p.m.
* it makes it easier to change PACKAGECONFIG in .bbappend and get
  consistent EGL_PLATFORMS

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 meta/recipes-graphics/mesa/mesa.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 3f00237..74fddc2 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -42,8 +42,8 @@  EXTRA_OECONF += "--enable-gbm"
 PACKAGECONFIG[gles] = "--enable-gles1 --enable-gles2, --disable-gles1 --disable-gles2"
 
 EGL_PLATFORMS  = "drm"
-EGL_PLATFORMS .="${@base_contains('DISTRO_FEATURES', 'x11', ',x11', '', d)}"
-EGL_PLATFORMS .="${@base_contains('DISTRO_FEATURES', 'wayland', ',wayland', '', d)}"
+EGL_PLATFORMS .="${@base_contains('PACKAGECONFIG', 'x11', ',x11', '', d)}"
+EGL_PLATFORMS .="${@base_contains('PACKAGECONFIG', 'wayland', ',wayland', '', d)}"
 PACKAGECONFIG[egl] = "--enable-egl --with-egl-platforms=${EGL_PLATFORMS}, --disable-egl"
 
 # Multiple virtual/gl providers being built breaks staging