mirror of
https://git.yoctoproject.org/poky
synced 2026-03-19 13:49:41 +01:00
systemd-serialgetty: skip package when not using systemd
As this package RDEPENDS on systemd it wants to build systemd, but if systemd isn't a DISTRO_FEATURE then that package is skipped so world builds fail. Solve this by skipping this package too. (From OE-Core rev: 192efd033c38205e114f62e9f62696a9a49b0970) 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
1377a2dbb2
commit
cd9483c9bf
@@ -40,3 +40,9 @@ RDEPENDS_${PN} = "systemd"
|
||||
# This is a machine specific file
|
||||
FILES_${PN} = "${systemd_unitdir}/system/serial-getty@.service ${sysconfdir}"
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
# As this package is tied to systemd, only build it when we're also building systemd.
|
||||
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