Patchwork ptest.bbclass: don't add to PACKAGES if disabled

login
register
mail settings
Submitter Christopher Larson
Date Jan. 16, 2013, 8:31 p.m.
Message ID <1358368296-24597-1-git-send-email-kergoth@gmail.com>
Download mbox | patch
Permalink /patch/42751/
State Accepted
Commit 7bf5ee91aa84a6fa85d6da361b64139889faa172
Headers show

Comments

Christopher Larson - Jan. 16, 2013, 8:31 p.m.
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(-)

Patch

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 \