Patchwork [meta-fsl-arm,v2,1/5] gpu-viv-bin-mx6q: Depends on 'wayland' when needed

login
register
mail settings
Submitter Otavio Salvador
Date March 17, 2014, 8:29 p.m.
Message ID <1395088180-7198-1-git-send-email-otavio@ossystems.com.br>
Download mbox | patch
Permalink /patch/68771/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Otavio Salvador - March 17, 2014, 8:29 p.m.
When using Wayland support, a dependency on 'wayland' is needed so the
shlib dependency can be done accordingly and we can have a
deterministic build.

Change-Id: Ief7caced3abf282d83fcd93c8bcb4a5622414c20
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
---
 recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

Patch

diff --git a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
index 32867e7..40fcb2f 100644
--- a/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
+++ b/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
@@ -6,7 +6,14 @@  DESCRIPTION = "GPU driver and apps for imx6"
 SECTION = "libs"
 LICENSE = "Proprietary"
 LIC_FILES_CHKSUM = "file://usr/include/gc_vdk.h;endline=11;md5=19f5925343fa3da65596eeaa4ddb5fd3"
-DEPENDS += "${@base_contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxdamage libxext libxfixes mesa', '', d)}"
+
+X11_DEPENDS = "virtual/libx11 libxdamage libxext libxfixes mesa"
+WL_DEPENDS = "wayland"
+
+DEPENDS += "${@base_contains('DISTRO_FEATURES', 'x11', '${X11_DEPENDS}', \
+                             base_contains('DISTRO_FEATURES', 'wayland', '${WL_DEPENDS}', \
+                                           '', d), d)}"
+
 PROVIDES += "virtual/wayland-egl virtual/libgl virtual/libgal-x11 virtual/egl virtual/libgles1 virtual/libgles2 virtual/libopenvg"
 
 PE = "1"