diff options
| author | Ross Burton <ross.burton@intel.com> | 2013-01-21 18:09:20 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-21 19:04:34 +0000 |
| commit | cd9483c9bf631b47a0c15f9bdbf4b027d349723c (patch) | |
| tree | 91b9e29d1ff3ca9952adf70aba6acc6ffe97398d | |
| parent | 1377a2dbb24652b1333f5d3ad7a7ad0e7e4d8b9b (diff) | |
| download | poky-cd9483c9bf631b47a0c15f9bdbf4b027d349723c.tar.gz | |
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>
| -rw-r--r-- | meta/recipes-core/systemd/systemd-serialgetty.bb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/recipes-core/systemd/systemd-serialgetty.bb b/meta/recipes-core/systemd/systemd-serialgetty.bb index 3e2a0e36f5..96cbf31470 100644 --- a/meta/recipes-core/systemd/systemd-serialgetty.bb +++ b/meta/recipes-core/systemd/systemd-serialgetty.bb | |||
| @@ -40,3 +40,9 @@ RDEPENDS_${PN} = "systemd" | |||
| 40 | # This is a machine specific file | 40 | # This is a machine specific file |
| 41 | FILES_${PN} = "${systemd_unitdir}/system/serial-getty@.service ${sysconfdir}" | 41 | FILES_${PN} = "${systemd_unitdir}/system/serial-getty@.service ${sysconfdir}" |
| 42 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 42 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 43 | |||
| 44 | # As this package is tied to systemd, only build it when we're also building systemd. | ||
| 45 | python () { | ||
| 46 | if not oe.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d): | ||
| 47 | raise bb.parse.SkipPackage("'systemd' not in DISTRO_FEATURES") | ||
| 48 | } | ||
