| SUMMARY = "Process kernel crash dump and logs" |
| PR = "r1" |
| LICENSE = "Apache-2.0" |
| LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| |
| PACKAGECONFIG ??= "kdump" |
| PACKAGECONFIG[kdump] = ",,,makedumpfile" |
| |
| inherit systemd |
| |
| S = "${WORKDIR}" |
| |
| SRC_URI:append = " \ |
| file://gbmc-dump-ramoops.sh \ |
| file://gbmc-dump-ramoops.service \ |
| " |
| |
| SYSTEMD_SERVICE:${PN}:append = " \ |
| gbmc-dump-ramoops.service \ |
| " |
| |
| FILES:${PN}:append = " \ |
| ${libexecdir}/gbmc-dump-ramoops.sh \ |
| " |
| RDEPENDS:${PN}:append = " bash" |
| |
| do_install() { |
| install -d -m 0755 ${D}${systemd_system_unitdir} |
| install -m 0644 ${WORKDIR}/gbmc-dump-ramoops.service ${D}${systemd_system_unitdir}/ |
| install -d -m0755 ${D}${libexecdir} |
| install -m0755 ${WORKDIR}/gbmc-dump-ramoops.sh ${D}${libexecdir}/ |
| } |