Patchwork [meta-fsl-demos] packagegroup-fslc-gstreamer1.0: Fix DISTRO_FEATURE wayland check

login
register
mail settings
Submitter Daiane Angolini
Date Aug. 21, 2014, 1:47 p.m.
Message ID <1408628851-20559-1-git-send-email-daiane.angolini@freescale.com>
Download mbox | patch
Permalink /patch/78747/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Daiane Angolini - Aug. 21, 2014, 1:47 p.m.
The BSP present in meta-fsl-arm provides hardware acceleration
for wayland only in case 'wayland' is present in DISTRO_FEATURES
and 'x11' is not.

The default poky DISTRO_FEATURE has both 'wayland' and 'x11' at
same time. For this scenario, and it is a X11 hardware acceleration
for BSP from meta-fsl-arm.

It means that, only verify if 'wayland' is in DISTRO_FEATURE is not enough
to deferminate a Wayland distribution, when working with meta-fsl-arm.
It is needed to check if 'x11' is not.

Signed-off-by: Daiane Angolini <daiane.angolini@freescale.com>
---
 recipes-multimedia/packagegroups/packagegroup-fslc-gstreamer1.0.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch

diff --git a/recipes-multimedia/packagegroups/packagegroup-fslc-gstreamer1.0.bb b/recipes-multimedia/packagegroups/packagegroup-fslc-gstreamer1.0.bb
index 1a61244..7380f0b 100644
--- a/recipes-multimedia/packagegroups/packagegroup-fslc-gstreamer1.0.bb
+++ b/recipes-multimedia/packagegroups/packagegroup-fslc-gstreamer1.0.bb
@@ -52,7 +52,9 @@  RDEPENDS_${PN}-base = " \
     gstreamer1.0-plugins-base-volume \
     gstreamer1.0-plugins-good-autodetect \
     ${@base_contains('DISTRO_FEATURES', 'x11', '${GST_X11_PACKAGES}', '', d)} \
-    ${@base_contains('DISTRO_FEATURES', 'wayland', '${GST_WAYLAND_PACKAGES}', '', d)} \
+    ${@base_contains('DISTRO_FEATURES', 'x11', \
+                      base_contains('DISTRO_FEATURES', 'wayland', \
+                                    '', '${GST_WAYLAND_PACKAGES}', d), '', d)} \
 "
 
 # Basic audio plugins: parsers, demuxers, decoders