emlog: Add recipe

Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Fabio Berton
2019-11-27 10:03:05 -03:00
committed by Khem Raj
parent 36e9b8f5b9
commit 027c7c1ebf
5 changed files with 185 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
require ${BPN}.inc
SRC_URI += "file://${BPN}.initd"
SRC_URI_append_libc-musl = " file://Drop-use-of-error-h.patch"
inherit update-rc.d
INITSCRIPT_NAME = "${BPN}"
do_compile() {
oe_runmake nbcat
oe_runmake mkemlog
}
do_install() {
install -Dm 0755 ${WORKDIR}/${BPN}.initd ${D}${sysconfdir}/init.d/${BPN}
install -Dm 0755 ${S}/nbcat ${D}${bindir}/nbcat
install -Dm 0755 ${S}/mkemlog ${D}${bindir}/mkemlog
}
RDEPENDS_${PN} += "kernel-module-emlog"