diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/systemd/systemd-serialgetty.bb | 10 | ||||
-rw-r--r-- | meta/recipes-core/systemd/systemd_234.bb | 13 | ||||
-rw-r--r-- | meta/recipes-core/udev/eudev_3.2.2.bb | 9 |
3 files changed, 12 insertions, 20 deletions
diff --git a/meta/recipes-core/systemd/systemd-serialgetty.bb b/meta/recipes-core/systemd/systemd-serialgetty.bb index d9347163b5..d67a3c91b4 100644 --- a/meta/recipes-core/systemd/systemd-serialgetty.bb +++ b/meta/recipes-core/systemd/systemd-serialgetty.bb | |||
@@ -11,6 +11,10 @@ SRC_URI = "file://serial-getty@.service" | |||
11 | 11 | ||
12 | S = "${WORKDIR}" | 12 | S = "${WORKDIR}" |
13 | 13 | ||
14 | # As this package is tied to systemd, only build it when we're also building systemd. | ||
15 | inherit distro_features_check | ||
16 | REQUIRED_DISTRO_FEATURES = "systemd" | ||
17 | |||
14 | do_install() { | 18 | do_install() { |
15 | if [ ! -z "${SERIAL_CONSOLES}" ] ; then | 19 | if [ ! -z "${SERIAL_CONSOLES}" ] ; then |
16 | default_baudrate=`echo "${SERIAL_CONSOLES}" | sed 's/\;.*//'` | 20 | default_baudrate=`echo "${SERIAL_CONSOLES}" | sed 's/\;.*//'` |
@@ -43,10 +47,4 @@ do_install() { | |||
43 | FILES_${PN} = "${systemd_unitdir}/system/*.service ${sysconfdir}" | 47 | FILES_${PN} = "${systemd_unitdir}/system/*.service ${sysconfdir}" |
44 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 48 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
45 | 49 | ||
46 | # As this package is tied to systemd, only build it when we're also building systemd. | ||
47 | python () { | ||
48 | if not bb.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d): | ||
49 | raise bb.parse.SkipPackage("'systemd' not in DISTRO_FEATURES") | ||
50 | } | ||
51 | |||
52 | ALLOW_EMPTY_${PN} = "1" | 50 | ALLOW_EMPTY_${PN} = "1" |
diff --git a/meta/recipes-core/systemd/systemd_234.bb b/meta/recipes-core/systemd/systemd_234.bb index 9a10a31881..4132cdf40f 100644 --- a/meta/recipes-core/systemd/systemd_234.bb +++ b/meta/recipes-core/systemd/systemd_234.bb | |||
@@ -8,7 +8,11 @@ DEPENDS = "kmod intltool-native gperf-native acl readline libcap libcgroup util- | |||
8 | 8 | ||
9 | SECTION = "base/shell" | 9 | SECTION = "base/shell" |
10 | 10 | ||
11 | inherit useradd pkgconfig autotools perlnative update-rc.d update-alternatives qemu systemd ptest gettext bash-completion manpages | 11 | inherit useradd pkgconfig autotools perlnative update-rc.d update-alternatives qemu systemd ptest gettext bash-completion manpages distro_features_check |
12 | |||
13 | # As this recipe builds udev, respect systemd being in DISTRO_FEATURES so | ||
14 | # that we don't build both udev and systemd in world builds. | ||
15 | REQUIRED_DISTRO_FEATURES = "systemd" | ||
12 | 16 | ||
13 | SRC_URI = "git://github.com/systemd/systemd.git;protocol=git \ | 17 | SRC_URI = "git://github.com/systemd/systemd.git;protocol=git \ |
14 | file://touchscreen.rules \ | 18 | file://touchscreen.rules \ |
@@ -630,10 +634,3 @@ pkg_postinst_udev-hwdb () { | |||
630 | pkg_prerm_udev-hwdb () { | 634 | pkg_prerm_udev-hwdb () { |
631 | rm -f $D${sysconfdir}/udev/hwdb.bin | 635 | rm -f $D${sysconfdir}/udev/hwdb.bin |
632 | } | 636 | } |
633 | |||
634 | # As this recipe builds udev, respect systemd being in DISTRO_FEATURES so | ||
635 | # that we don't build both udev and systemd in world builds. | ||
636 | python () { | ||
637 | if not bb.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d): | ||
638 | raise bb.parse.SkipPackage("'systemd' not in DISTRO_FEATURES") | ||
639 | } | ||
diff --git a/meta/recipes-core/udev/eudev_3.2.2.bb b/meta/recipes-core/udev/eudev_3.2.2.bb index 70e3568dc2..d01104746d 100644 --- a/meta/recipes-core/udev/eudev_3.2.2.bb +++ b/meta/recipes-core/udev/eudev_3.2.2.bb | |||
@@ -23,7 +23,9 @@ SRC_URI = "http://dev.gentoo.org/~blueness/${BPN}/${BP}.tar.gz \ | |||
23 | SRC_URI[md5sum] = "41e19b70462692fefd072a3f38818b6e" | 23 | SRC_URI[md5sum] = "41e19b70462692fefd072a3f38818b6e" |
24 | SRC_URI[sha256sum] = "3e4c56ec2fc1854afd0a31f3affa48f922c62d40ee12a0c1a4b4f152ef5b0f63" | 24 | SRC_URI[sha256sum] = "3e4c56ec2fc1854afd0a31f3affa48f922c62d40ee12a0c1a4b4f152ef5b0f63" |
25 | 25 | ||
26 | inherit autotools update-rc.d qemu pkgconfig | 26 | inherit autotools update-rc.d qemu pkgconfig distro_features_check |
27 | |||
28 | CONFLICT_DISTRO_FEATURES = "systemd" | ||
27 | 29 | ||
28 | EXTRA_OECONF = " \ | 30 | EXTRA_OECONF = " \ |
29 | --sbindir=${base_sbindir} \ | 31 | --sbindir=${base_sbindir} \ |
@@ -75,11 +77,6 @@ RDEPENDS_eudev-hwdb += "eudev" | |||
75 | RPROVIDES_${PN} = "hotplug udev" | 77 | RPROVIDES_${PN} = "hotplug udev" |
76 | RPROVIDES_eudev-hwdb += "udev-hwdb" | 78 | RPROVIDES_eudev-hwdb += "udev-hwdb" |
77 | 79 | ||
78 | python () { | ||
79 | if bb.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d): | ||
80 | raise bb.parse.SkipPackage("'systemd' in DISTRO_FEATURES") | ||
81 | } | ||
82 | |||
83 | PACKAGE_WRITE_DEPS += "qemu-native" | 80 | PACKAGE_WRITE_DEPS += "qemu-native" |
84 | pkg_postinst_eudev-hwdb () { | 81 | pkg_postinst_eudev-hwdb () { |
85 | if test -n "$D"; then | 82 | if test -n "$D"; then |