diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-08 23:39:28 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-10 12:03:19 +0100 |
commit | 062678c4ab88fa94ed38efa6520c3b4e2d88ca73 (patch) | |
tree | fe97134b3ff013efa307008e9926a4cd1d1f9ea6 /meta/recipes-core | |
parent | a3e60c3cbfb39d805b17061e6790f64ed54ef2ff (diff) | |
download | poky-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.bb | 5 |
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 | |||
104 | python () { | ||
105 | if not bb.utils.contains('DISTRO_FEATURES', 'sysvinit', True, False, d): | ||
106 | raise bb.parse.SkipPackage("'sysvinit' not in DISTRO_FEATURES") | ||
107 | } | ||