Brad Bishop | 996bc45 | 2019-12-02 13:05:15 -0500 | [diff] [blame] | 1 | require ${BPN}.inc |
| 2 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 3 | SRC_URI += "file://${BPN}.initd \ |
| 4 | file://0001-Remove-modules_clean-from-clean-target.patch \ |
| 5 | " |
Brad Bishop | 996bc45 | 2019-12-02 13:05:15 -0500 | [diff] [blame] | 6 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 7 | SRC_URI:append:libc-musl = " file://Drop-use-of-error-h.patch" |
Brad Bishop | 996bc45 | 2019-12-02 13:05:15 -0500 | [diff] [blame] | 8 | |
| 9 | inherit update-rc.d |
| 10 | |
| 11 | INITSCRIPT_NAME = "${BPN}" |
| 12 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 13 | |
| 14 | |
Brad Bishop | 996bc45 | 2019-12-02 13:05:15 -0500 | [diff] [blame] | 15 | do_compile() { |
| 16 | oe_runmake nbcat |
| 17 | oe_runmake mkemlog |
| 18 | } |
| 19 | |
| 20 | do_install() { |
| 21 | install -Dm 0755 ${WORKDIR}/${BPN}.initd ${D}${sysconfdir}/init.d/${BPN} |
| 22 | install -Dm 0755 ${S}/nbcat ${D}${bindir}/nbcat |
| 23 | install -Dm 0755 ${S}/mkemlog ${D}${bindir}/mkemlog |
| 24 | } |
| 25 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 26 | RRECOMMENDS:${PN} += "kernel-module-emlog" |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 27 | |
| 28 | # The NVD database doesn't have a CPE for this product, |
| 29 | # the name of this product is exactly the same as github.com/emlog/emlog |
| 30 | # but it's not related in any way. The following CVEs are from that project |
| 31 | # so they can be safely ignored |
| 32 | CVE_CHECK_IGNORE += "\ |
| 33 | CVE-2019-16868 \ |
| 34 | CVE-2019-17073 \ |
| 35 | CVE-2021-44584 \ |
| 36 | CVE-2022-1526 \ |
| 37 | " |