]> code.ossystems Code Review - openembedded-core.git/commitdiff
ptest.bbclass: don't add to PACKAGES if disabled
authorChristopher Larson <chris_larson@mentor.com>
Wed, 16 Jan 2013 20:31:36 +0000 (13:31 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 18 Jan 2013 13:00:40 +0000 (13:00 +0000)
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>
meta/classes/ptest.bbclass

index 8bde489e90d0e2943858fdcf76ed4136305536e2..361de786a857b1704725c72fd6a28be0f7547c78 100644 (file)
@@ -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 \