packagegroup-core-tools-testapps: isolate x11 dependent tools
authorRogerio Nunes <rogerio.nunes@freescale.com>
Wed, 31 Jul 2013 21:15:15 +0000 (17:15 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 3 Aug 2013 09:33:12 +0000 (10:33 +0100)
This patch groups x11 dependent tools in a separete variable,
and when DISTRO_FEATURES does not contain x11, this group is
not included in the package RDEPENDS.

(From OE-Core rev: 8253abeee10189b828336b791c3421d240a2e69b)

Signed-off-by: Rogerio Nunes <rogerio.nunes@freescale.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/packagegroups/packagegroup-core-tools-testapps.bb

index 343ae1c..1861ebe 100644 (file)
@@ -24,24 +24,28 @@ KEXECTOOLS_powerpc ?= ""
 KEXECTOOLS_e5500-64b ?= ""
 KEXECTOOLS_aarch64 ?= ""
 
+X11TOOLS = "\
+    fstests \
+    owl-video \
+    mesa-demos \
+    x11perf \
+    xrestop \
+    xwininfo \
+    xprop \
+    xvideo-tests \
+    "
+
 RDEPENDS_${PN} = "\
     blktool \
-    fstests \
     tslib-calibrate \
     tslib-tests \
     lrzsz \
     ${KEXECTOOLS} \
     alsa-utils-amixer \
     alsa-utils-aplay \
-    owl-video \
     gst-meta-video \
     gst-meta-audio \
-    mesa-demos \
-    x11perf \
-    xrestop \
-    xwininfo \
-    xprop \
-    xvideo-tests \
     ltp \
     connman-client \
+    ${@base_contains('DISTRO_FEATURES', 'x11', "${X11TOOLS}", "", d)} \
     "