mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 20:07:25 +00:00
systemd-serialgetty: don't require systemd_git.bb
Avoids the recompile of this package every time systemd is change. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
committed by
Koen Kooi
parent
36423031ae
commit
8fee9e2af6
@@ -1,19 +1,11 @@
|
||||
require systemd_git.bb
|
||||
|
||||
SRC_URI = "git://anongit.freedesktop.org/systemd;protocol=git \
|
||||
file://serial-getty@.service \
|
||||
"
|
||||
|
||||
DESCRIPTION = "Systemd serial config"
|
||||
LICENSE = "GPLv2+"
|
||||
LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENSE;md5=751419260aa954499f7abaabaa882bbe"
|
||||
|
||||
SERIAL_CONSOLE ?= "115200 /dev/ttyS0"
|
||||
|
||||
do_configure() {
|
||||
:
|
||||
}
|
||||
|
||||
do_compile() {
|
||||
:
|
||||
}
|
||||
SRC_URI = "file://LICENSE \
|
||||
file://serial-getty@.service"
|
||||
|
||||
def get_baudrate(bb, d):
|
||||
return bb.data.getVar('SERIAL_CONSOLE', d, 1).split()[0]
|
||||
@@ -27,9 +19,11 @@ do_install() {
|
||||
install -d ${D}${base_libdir}/systemd/system/
|
||||
install -d ${D}${sysconfdir}/systemd/system/getty.target.wants/
|
||||
install ${WORKDIR}/serial-getty@.service ${D}${base_libdir}/systemd/system/
|
||||
|
||||
# enable the service
|
||||
ln -sf ${base_libdir}/systemd/system/serial-getty@.service \
|
||||
${D}${sysconfdir}/systemd/system/getty.target.wants/serial-getty@${@get_console(bb, d)}.service
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
PACKAGES = "${PN} ${PN}-dbg ${PN}-dev ${PN}-doc"
|
||||
@@ -40,4 +34,3 @@ RDEPENDS_${PN} = "systemd"
|
||||
# This is a machine specific file
|
||||
FILES_${PN} = "${base_libdir}/systemd/system/serial-getty@.service ${sysconfdir}"
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user