summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
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:19 +0100
commit062678c4ab88fa94ed38efa6520c3b4e2d88ca73 (patch)
treefe97134b3ff013efa307008e9926a4cd1d1f9ea6 /meta/recipes-core
parenta3e60c3cbfb39d805b17061e6790f64ed54ef2ff (diff)
downloadpoky-062678c4ab88fa94ed38efa6520c3b4e2d88ca73.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. (From OE-Core rev: 7f85e74d5c53b34e5f470967fdbdbd19fed1929a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-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 2c7e3ce6c2..6709a9be3a 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 () {
100 chown root.shutdown ${D}${base_sbindir}/halt ${D}${base_sbindir}/shutdown 100 chown root.shutdown ${D}${base_sbindir}/halt ${D}${base_sbindir}/shutdown
101 chmod o-x,u+s ${D}${base_sbindir}/halt ${D}${base_sbindir}/shutdown 101 chmod o-x,u+s ${D}${base_sbindir}/halt ${D}${base_sbindir}/shutdown
102} 102}
103
104python () {
105 if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d):
106 raise bb.parse.SkipPackage("'sysvinit' not in DISTRO_FEATURES")
107}