blob: 5f98e54b1ba13ae964163306346aadb00b18da39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
DESCRIPTION = "Systemd a init replacement"
HOMEPAGE = "http://www.freedesktop.org/wiki/Software/systemd"
LICENSE = "GPL"
DEPENDS = "readline udev dbus libcap2 libcgroup gtk+"
PRIORITY = "optional"
SECTION = "base/shell"
PV = "0.0"
PR_append = "+${SRCPV}"
inherit autotools vala
TAG = "1ebdf2d8793181f31b766b8342391aa1978f9917"
SRC_URI = "git://anongit.freedesktop.org/systemd;protocol=git;tag=${TAG} \
file://execute.patch \
file://systemadm.patch \
file://disable_xml_generation.patch \
file://replace_accpet4.patch \
file://getty-serial@.service \
"
S = "${WORKDIR}/git"
EXTRA_OECONF = " --with-distro=debian \
--with-rootdir=${base_prefix} \
"
PACKAGES = "${PN} ${PN}-gui ${PN}-dbg ${PN}-doc"
FILES_${PN}-gui = "${bindir}/systemadm"
FILES_${PN} = " ${base_bindir}/* \
${datadir}/dbus-1/services \
${datadir}/dbus-1/system-services \
${datadir}/${PN} \
${sysconfdir} \
${base_libdir}/systemd/* \
${base_libdir}/systemd/system/* \
${base_libdir}/udev/rules.d \
/cgroup \
${bindir}/systemd-install \
"
FILES_${PN}-dbg += " /lib/systemd/.debug "
def get_baudrate(bb, d):
return bb.data.getVar('SERIAL_CONSOLE', d, 1).split()[0]
def get_console(bb, d):
return bb.data.getVar('SERIAL_CONSOLE', d, 1).split()[1]
do_install_append(){
if [ ! ${@get_baudrate(bb, d)} = "" ]; then
sed -i -e s/\@BAUDRATE\@/${@get_baudrate(bb, d)}/g ${WORKDIR}/getty-serial@.service
install ${WORKDIR}/getty-serial@.service ${D}${base_libdir}/systemd/system/
ln -sf ${base_libdir}/systemd/system/getty-serial@.service \
${D}${sysconfdir}/systemd/system/getty.target.wants/getty@${@get_console(bb, d)}.service
fi
}
|