Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "Userspace helper for Linux kernel EDAC drivers" |
| 2 | HOMEPAGE = "https://github.com/grondo/edac-utils" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame^] | 3 | DESCRIPTION = "EDAC (Error Detection and Correction) is a set of Linux kernel \ |
| 4 | modules that handle reporting of hardware-related errors. Currently \ |
| 5 | these modules mainly handle detection of ECC memory errors for many \ |
| 6 | x86 and x86-64 chipsets and PCI bus parity errors." |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 7 | SECTION = "Applications/System" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame^] | 8 | LICENSE = "GPL-2.0-only" |
| 9 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 10 | |
| 11 | DEPENDS = " sysfsutils" |
| 12 | |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame^] | 13 | SRCREV = "1c57818ecee186aa47af0342149577df5302c022" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 14 | PV = "0.18+git${SRCPV}" |
| 15 | |
| 16 | S = "${WORKDIR}/git" |
| 17 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 18 | SRC_URI = "git://github.com/grondo/edac-utils;branch=master;protocol=https \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 19 | file://make-init-script-be-able-to-automatically-load-EDAC-.patch \ |
| 20 | file://add-restart-to-initscript.patch \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 21 | file://edac.service \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 22 | " |
| 23 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 24 | inherit autotools-brokensep systemd |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 25 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 26 | do_configure:prepend () { |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 27 | touch ${S}/ChangeLog |
| 28 | ${S}/bootstrap |
| 29 | } |
| 30 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 31 | RDEPENDS:${PN}:x86 = "dmidecode" |
| 32 | RDEPENDS:${PN}:x86-64 = "dmidecode" |
| 33 | RDEPENDS:${PN}:arm = "dmidecode" |
| 34 | RDEPENDS:${PN}:aarch64 = "dmidecode" |
| 35 | RDEPENDS:${PN}:powerpc = "dmidecode" |
| 36 | RDEPENDS:${PN}:powerpc64 = "dmidecode" |
| 37 | RDEPENDS:${PN}:powerpc64le = "dmidecode" |
| 38 | RDEPENDS:${PN}:append = " \ |
Brad Bishop | 90ca747 | 2019-08-20 09:15:15 -0400 | [diff] [blame] | 39 | perl \ |
| 40 | perl-module-file-basename \ |
| 41 | perl-module-file-find \ |
| 42 | perl-module-getopt-long \ |
| 43 | perl-module-posix \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 44 | perl-module-overload \ |
| 45 | perl-module-overloading \ |
| 46 | perl-module-file-glob \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 47 | " |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 48 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 49 | do_install:append() { |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 50 | install -d ${D}${systemd_unitdir}/system |
| 51 | install -m 644 ${WORKDIR}/edac.service ${D}/${systemd_unitdir}/system |
| 52 | sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}/${systemd_unitdir}/system/edac.service |
| 53 | } |
| 54 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 55 | SYSTEMD_SERVICE:${PN} = "edac.service" |
| 56 | SYSTEMD_AUTO_ENABLE:${PN} = "disable" |