blob: 455859ec868d084848ddac9428298b3c5cee7a11 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001SUMMARY = "Userspace helper for Linux kernel EDAC drivers"
2HOMEPAGE = "https://github.com/grondo/edac-utils"
Andrew Geissler9aee5002022-03-30 16:27:02 +00003DESCRIPTION = "EDAC (Error Detection and Correction) is a set of Linux kernel \
4modules that handle reporting of hardware-related errors. Currently \
5these modules mainly handle detection of ECC memory errors for many \
6x86 and x86-64 chipsets and PCI bus parity errors."
Patrick Williamsb48b7b42016-08-17 15:04:38 -05007SECTION = "Applications/System"
Andrew Geissler9aee5002022-03-30 16:27:02 +00008LICENSE = "GPL-2.0-only"
9LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050010
11DEPENDS = " sysfsutils"
12
Andrew Geissler9aee5002022-03-30 16:27:02 +000013SRCREV = "1c57818ecee186aa47af0342149577df5302c022"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050014PV = "0.18+git${SRCPV}"
15
16S = "${WORKDIR}/git"
17
Andrew Geissler595f6302022-01-24 19:11:47 +000018SRC_URI = "git://github.com/grondo/edac-utils;branch=master;protocol=https \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050019 file://make-init-script-be-able-to-automatically-load-EDAC-.patch \
20 file://add-restart-to-initscript.patch \
Patrick Williamsddad1a12017-02-23 20:36:32 -060021 file://edac.service \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050022"
23
Patrick Williamsddad1a12017-02-23 20:36:32 -060024inherit autotools-brokensep systemd
Patrick Williamsb48b7b42016-08-17 15:04:38 -050025
Patrick Williams213cb262021-08-07 19:21:33 -050026do_configure:prepend () {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050027 touch ${S}/ChangeLog
28 ${S}/bootstrap
29}
30
Patrick Williams213cb262021-08-07 19:21:33 -050031RDEPENDS:${PN}:x86 = "dmidecode"
32RDEPENDS:${PN}:x86-64 = "dmidecode"
33RDEPENDS:${PN}:arm = "dmidecode"
34RDEPENDS:${PN}:aarch64 = "dmidecode"
35RDEPENDS:${PN}:powerpc = "dmidecode"
36RDEPENDS:${PN}:powerpc64 = "dmidecode"
37RDEPENDS:${PN}:powerpc64le = "dmidecode"
38RDEPENDS:${PN}:append = " \
Brad Bishop90ca7472019-08-20 09:15:15 -040039 perl \
40 perl-module-file-basename \
41 perl-module-file-find \
42 perl-module-getopt-long \
43 perl-module-posix \
Patrick Williamsddad1a12017-02-23 20:36:32 -060044 perl-module-overload \
45 perl-module-overloading \
46 perl-module-file-glob \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050047"
Patrick Williamsddad1a12017-02-23 20:36:32 -060048
Patrick Williams213cb262021-08-07 19:21:33 -050049do_install:append() {
Patrick Williamsddad1a12017-02-23 20:36:32 -060050 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 Williams213cb262021-08-07 19:21:33 -050055SYSTEMD_SERVICE:${PN} = "edac.service"
56SYSTEMD_AUTO_ENABLE:${PN} = "disable"