diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-06 14:48:37 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-06-17 08:58:54 +0100 |
commit | 3103f04a3028bb5ca02b943e21ef2dbe2cf79e14 (patch) | |
tree | 014275c3ce246247d248884f1191837bd022337f /meta | |
parent | bb27ca7562982c4e6ff333c09a56e83f0daaeb3f (diff) | |
download | poky-3103f04a3028bb5ca02b943e21ef2dbe2cf79e14.tar.gz |
ptest: Work from PTEST_ENABLED, not DISTRO_FEATURES
Some classes of recipe disable ptest even though its in DISTRO_FEATURES
(e.g. nativesdk). We shouldn't attempt to build ptest packages when
its disabled. This replaces some DISTRO_FEATURE checks with PTEST_ENABLED
checks instead.
(From OE-Core rev: d1369fe95ac6732e5747873eccd6a1e74359cea4)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/ptest.bbclass | 2 | ||||
-rw-r--r-- | meta/recipes-core/dbus/dbus.inc | 2 | ||||
-rw-r--r-- | meta/recipes-core/glib-2.0/glib.inc | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass index 5c5505d9b2..ea4a38b954 100644 --- a/meta/classes/ptest.bbclass +++ b/meta/classes/ptest.bbclass | |||
@@ -13,7 +13,7 @@ PTEST_ENABLED_class-cross-canadian = "" | |||
13 | RDEPENDS_${PN}-ptest_class-native = "" | 13 | RDEPENDS_${PN}-ptest_class-native = "" |
14 | RDEPENDS_${PN}-ptest_class-nativesdk = "" | 14 | RDEPENDS_${PN}-ptest_class-nativesdk = "" |
15 | 15 | ||
16 | PACKAGES =+ "${@base_contains('DISTRO_FEATURES', 'ptest', '${PN}-ptest', '', d)}" | 16 | PACKAGES =+ "${@bb.utils.contains('PTEST_ENABLED', '1', '${PN}-ptest', '', d)}" |
17 | 17 | ||
18 | do_configure_ptest() { | 18 | do_configure_ptest() { |
19 | : | 19 | : |
diff --git a/meta/recipes-core/dbus/dbus.inc b/meta/recipes-core/dbus/dbus.inc index 8c456f8411..035221f61b 100644 --- a/meta/recipes-core/dbus/dbus.inc +++ b/meta/recipes-core/dbus/dbus.inc | |||
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=10dded3b58148f3f1fd804b26354af3e \ | |||
8 | DEPENDS = "expat virtual/libintl" | 8 | DEPENDS = "expat virtual/libintl" |
9 | RDEPENDS_dbus_class-native = "" | 9 | RDEPENDS_dbus_class-native = "" |
10 | RDEPENDS_dbus_class-nativesdk = "" | 10 | RDEPENDS_dbus_class-nativesdk = "" |
11 | PACKAGES += "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'dbus-ptest', '', d)}" | 11 | PACKAGES += "${@bb.utils.contains('PTEST_ENABLED', '1', 'dbus-ptest', '', d)}" |
12 | ALLOW_EMPTY_dbus-ptest = "1" | 12 | ALLOW_EMPTY_dbus-ptest = "1" |
13 | RDEPENDS_dbus-ptest_class-target = "dbus-test-ptest" | 13 | RDEPENDS_dbus-ptest_class-target = "dbus-test-ptest" |
14 | 14 | ||
diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc index cb07665d23..66bf290c2f 100644 --- a/meta/recipes-core/glib-2.0/glib.inc +++ b/meta/recipes-core/glib-2.0/glib.inc | |||
@@ -31,7 +31,7 @@ S = "${WORKDIR}/glib-${PV}" | |||
31 | 31 | ||
32 | CORECONF = "--disable-dtrace --disable-fam --disable-libelf --disable-systemtap --disable-man" | 32 | CORECONF = "--disable-dtrace --disable-fam --disable-libelf --disable-systemtap --disable-man" |
33 | 33 | ||
34 | PTEST_CONF = "${@base_contains('DISTRO_FEATURES', 'ptest', '--enable-installed-tests', '--disable-installed-tests', d)}" | 34 | PTEST_CONF = "${@bb.utils.contains('PTEST_ENABLED', '1', '--enable-installed-tests', '--disable-installed-tests', d)}" |
35 | EXTRA_OECONF = "--enable-included-printf=no ${CORECONF} ${PTEST_CONF}" | 35 | EXTRA_OECONF = "--enable-included-printf=no ${CORECONF} ${PTEST_CONF}" |
36 | EXTRA_OECONF_class-native = "${CORECONF} --disable-selinux" | 36 | EXTRA_OECONF_class-native = "${CORECONF} --disable-selinux" |
37 | EXTRA_OECONF_append_libc-uclibc = " --with-libiconv=gnu" | 37 | EXTRA_OECONF_append_libc-uclibc = " --with-libiconv=gnu" |