[oe] [meta-oe][PATCH 4/4] systemd-serialgetty: don't require systemd_git.bb
Otavio Salvador
otavio at ossystems.com.br
Fri Oct 21 03:34:13 UTC 2011
Avoids the recompile of this package every time systemd is change.
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
---
.../recipes-core/systemd/systemd-serialgetty.bb | 22 ++++++-------------
1 files changed, 7 insertions(+), 15 deletions(-)
diff --git a/meta-oe/recipes-core/systemd/systemd-serialgetty.bb b/meta-oe/recipes-core/systemd/systemd-serialgetty.bb
index d7e8571..b4c6880 100644
--- a/meta-oe/recipes-core/systemd/systemd-serialgetty.bb
+++ b/meta-oe/recipes-core/systemd/systemd-serialgetty.bb
@@ -1,19 +1,10 @@
-require systemd_git.bb
-
-SRC_URI = "git://anongit.freedesktop.org/systemd;protocol=git \
- file://serial-getty@.service \
- "
-
DESCRIPTION = "Systemd serial config"
-SERIAL_CONSOLE ?= "115200 /dev/ttyS0"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58"
-do_configure() {
- :
-}
+SERIAL_CONSOLE ?= "115200 /dev/ttyS0"
-do_compile() {
- :
-}
+SRC_URI = "file://serial-getty@.service"
def get_baudrate(bb, d):
return bb.data.getVar('SERIAL_CONSOLE', d, 1).split()[0]
@@ -27,9 +18,11 @@ do_install() {
install -d ${D}${base_libdir}/systemd/system/
install -d ${D}${sysconfdir}/systemd/system/getty.target.wants/
install ${WORKDIR}/serial-getty at .service ${D}${base_libdir}/systemd/system/
+
+ # enable the service
ln -sf ${base_libdir}/systemd/system/serial-getty at .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 +33,3 @@ RDEPENDS_${PN} = "systemd"
# This is a machine specific file
FILES_${PN} = "${base_libdir}/systemd/system/serial-getty at .service ${sysconfdir}"
PACKAGE_ARCH = "${MACHINE_ARCH}"
-
--
1.7.2.5
More information about the Openembedded-devel
mailing list