mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
systemd: skip in non-systemd distros to fix world builds
(From OE-Core rev: a2553b5f8b80ca0cd578afa2d2857ebb2b70ee3c) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
a5358511b1
commit
148bcc1124
@@ -247,3 +247,11 @@ update-alternatives --remove reboot ${base_bindir}/systemctl
|
||||
update-alternatives --remove shutdown ${base_bindir}/systemctl
|
||||
update-alternatives --remove poweroff ${base_bindir}/systemctl
|
||||
}
|
||||
|
||||
|
||||
# As this recipe builds udev, respect the systemd DISTRO_FEATURE so we don't try
|
||||
# building udev and systemd in world builds.
|
||||
python () {
|
||||
if not oe.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d):
|
||||
raise bb.parse.SkipPackage("'systemd' not in DISTRO_FEATURES")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user