summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-core/systemd/systemd_git.bb28
1 files changed, 18 insertions, 10 deletions
diff --git a/meta-oe/recipes-core/systemd/systemd_git.bb b/meta-oe/recipes-core/systemd/systemd_git.bb
index 4cc313483f..dff299ee03 100644
--- a/meta-oe/recipes-core/systemd/systemd_git.bb
+++ b/meta-oe/recipes-core/systemd/systemd_git.bb
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.freedesktop.org/wiki/Software/systemd"
3LICENSE = "GPLv2+" 3LICENSE = "GPLv2+"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe" 4LIC_FILES_CHKSUM = "file://LICENSE;md5=751419260aa954499f7abaabaa882bbe"
5 5
6DEPENDS = "acl readline udev dbus libcap2 libcgroup" 6DEPENDS = "acl readline udev dbus libcap libcgroup"
7DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" 7DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}"
8 8
9SERIAL_CONSOLE ?= "115200 /dev/ttyS0" 9SERIAL_CONSOLE ?= "115200 /dev/ttyS0"
@@ -15,11 +15,11 @@ inherit gitpkgv
15PKGV = "v${GITPKGVTAG}" 15PKGV = "v${GITPKGVTAG}"
16 16
17PV = "git" 17PV = "git"
18PR = "r0" 18PR = "r2"
19 19
20inherit autotools vala 20inherit autotools vala
21 21
22SRCREV = "cd58752a158ccab3db77d355410b31b457df4cfc" 22SRCREV = "ae556c210942cb6986c6d77b58505b5daa66bbe2"
23 23
24SRC_URI = "git://anongit.freedesktop.org/systemd;protocol=git \ 24SRC_URI = "git://anongit.freedesktop.org/systemd;protocol=git \
25 file://0001-systemd-disable-xml-file-stuff-and-introspection.patch \ 25 file://0001-systemd-disable-xml-file-stuff-and-introspection.patch \
@@ -44,13 +44,21 @@ def get_baudrate(bb, d):
44def get_console(bb, d): 44def get_console(bb, d):
45 return bb.data.getVar('SERIAL_CONSOLE', d, 1).split()[1] 45 return bb.data.getVar('SERIAL_CONSOLE', d, 1).split()[1]
46 46
47do_install_append() { 47do_install() {
48 if [ ! ${@get_baudrate(bb, d)} = "" ]; then 48 autotools_do_install
49 sed -i -e s/\@BAUDRATE\@/${@get_baudrate(bb, d)}/g ${WORKDIR}/serial-getty@.service 49
50 install ${WORKDIR}/serial-getty@.service ${D}${base_libdir}/systemd/system/ 50 if [ ! ${@get_baudrate(bb, d)} = "" ]; then
51 ln -sf ${base_libdir}/systemd/system/serial-getty@.service \ 51 sed -i -e s/\@BAUDRATE\@/${@get_baudrate(bb, d)}/g ${WORKDIR}/serial-getty@.service
52 ${D}${sysconfdir}/systemd/system/getty.target.wants/serial-getty@${@get_console(bb, d)}.service 52 install ${WORKDIR}/serial-getty@.service ${D}${base_libdir}/systemd/system/
53 fi 53 ln -sf ${base_libdir}/systemd/system/serial-getty@.service \
54 ${D}${sysconfdir}/systemd/system/getty.target.wants/serial-getty@${@get_console(bb, d)}.service
55 fi
56}
57
58# ARM doesn't support hugepages, so don't try to mount them
59do_install_append_arm() {
60 rm -f ${D}${base_libdir}/systemd/system/*hugepages.mount
61 rm -f ${D}${base_libdir}/systemd/system/*/*hugepages.mount
54} 62}
55 63
56PACKAGES =+ "${PN}-gui ${PN}-serialgetty" 64PACKAGES =+ "${PN}-gui ${PN}-serialgetty"