* [PATCH] ptest.bbclass: don't add to PACKAGES if disabled
@ 2013-01-16 20:31 Christopher Larson
0 siblings, 0 replies; only message in thread
From: Christopher Larson @ 2013-01-16 20:31 UTC (permalink / raw)
To: openembedded-core; +Cc: Christopher Larson
From: Christopher Larson <chris_larson@mentor.com>
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>
---
meta/classes/ptest.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass
index 8bde489..361de78 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 \
--
1.8.0.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-01-16 20:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-16 20:31 [PATCH] ptest.bbclass: don't add to PACKAGES if disabled Christopher Larson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox