blob: a9fadea6599f21365ce45d12cfc8c1522d405c67 [file] [log] [blame]
SUMMARY = "Log journal content to the eMMC"
DESCRIPTION = "Configures journald to store logs on the eMMC"
PR = "r1"
LICENSE = "Apache-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
inherit systemd
DEPENDS += "systemd"
RDEPENDS:${PN} += "bash"
SRC_URI += " \
file://emmc-log.service \
file://emmc_logging.sh \
file://start_emmc_logging.sh \
file://stop_emmc_logging.sh \
file://gbmc_timeout.sh \
file://journald-size-policy-emmc.conf \
"
S = "${WORKDIR}"
FILES:${PN} += " \
${bindir}/* \
${systemd_unitdir}/journald.conf.d/journald-size-policy-emmc.conf \
"
SYSTEMD_SERVICE:${PN} += "emmc-log.service"
do_install:append() {
install -d ${D}${bindir}
install -m 0755 ${S}/emmc_logging.sh ${D}${bindir}/.
install -m 0755 ${S}/start_emmc_logging.sh ${D}${bindir}/.
install -m 0755 ${S}/stop_emmc_logging.sh ${D}${bindir}/.
install -m 0755 ${S}/gbmc_timeout.sh ${D}${bindir}/.
install -d ${D}${systemd_system_unitdir}
install -m 0644 ${S}/*.service ${D}${systemd_system_unitdir}
install -d ${D}${systemd_unitdir}/journald.conf.d/
install -m 644 -D ${WORKDIR}/journald-size-policy-emmc.conf ${D}${systemd_unitdir}/journald.conf.d/
}