summaryrefslogtreecommitdiff
path: root/meta/classes/ptest.bbclass
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2013-01-16 13:31:36 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-18 13:00:40 +0000
commit7bf5ee91aa84a6fa85d6da361b64139889faa172 (patch)
treea3385af1d4863f6b33deebd118f3b7ba988d2034 /meta/classes/ptest.bbclass
parent94fcb80121b64974ff57b76275addaa684c559cf (diff)
downloadopenembedded-core-7bf5ee91aa84a6fa85d6da361b64139889faa172.tar.gz
openembedded-core-7bf5ee91aa84a6fa85d6da361b64139889faa172.tar.bz2
openembedded-core-7bf5ee91aa84a6fa85d6da361b64139889faa172.zip
ptest.bbclass: don't add to PACKAGES if disabled
Without this, we have excessive dependencies leaking into the build. In particular, glib-2.0 was sucking in python modules even if ptest wasn't in DISTRO_FEATURES. Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/classes/ptest.bbclass')
-rw-r--r--meta/classes/ptest.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass
index 8bde489e90..361de786a8 100644
--- a/meta/classes/ptest.bbclass
+++ b/meta/classes/ptest.bbclass
@@ -14,7 +14,7 @@ PTEST_ENABLED = "${@base_contains("DISTRO_FEATURES", "ptest", "1", "0", d)}"
RDEPENDS_${PN}-ptest_virtclass-native = ""
RDEPENDS_${PN}-ptest_virtclass-nativesdk = ""
-PACKAGES += "${PN}-ptest"
+PACKAGES += "${@base_contains('DISTRO_FEATURES', 'ptest', '${PN}-ptest', '', d)}"
FILES_${PN}-dbg += "${PTEST_PATH}/*/.debug \
${PTEST_PATH}/*/*/.debug \