aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/sysvinit
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-08 23:39:28 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-10 12:03:14 +0100
commit7f85e74d5c53b34e5f470967fdbdbd19fed1929a (patch)
tree0640946dcb9122b1418dd267f31bf37719fc9a40 /meta/recipes-core/sysvinit
parentb925be92e8be2ab3b945069a699859809615c78f (diff)
downloadopenembedded-core-contrib-7f85e74d5c53b34e5f470967fdbdbd19fed1929a.tar.gz
sysvinit: Only enable recipe in builds where its applicable
Similarly to systemd, only enable the recipe in builds where sysvinit is configured in DISTRO_FEATURES. This allows the new cleanup mechanism to handle it correctly in existing builds. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/sysvinit')
-rw-r--r--meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb b/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb
index 2c7e3ce6c2c..6709a9be3ac 100644
--- a/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb
+++ b/meta/recipes-core/sysvinit/sysvinit_2.88dsf.bb
@@ -100,3 +100,8 @@ do_install () {
chown root.shutdown ${D}${base_sbindir}/halt ${D}${base_sbindir}/shutdown
chmod o-x,u+s ${D}${base_sbindir}/halt ${D}${base_sbindir}/shutdown
}
+
+python () {
+ if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d):
+ raise bb.parse.SkipPackage("'sysvinit' not in DISTRO_FEATURES")
+}