mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-02-21 04:30:31 +00:00
Fix edac-utils systemd service file so that `systemctl stop edac' doesn't fail. Remove the ExecStop line as there's no '--unload' option for edac-ctl. Also, disable edac service by default. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
48 lines
1.4 KiB
BlitzBasic
48 lines
1.4 KiB
BlitzBasic
SUMMARY = "Userspace helper for Linux kernel EDAC drivers"
|
|
HOMEPAGE = "https://github.com/grondo/edac-utils"
|
|
SECTION = "Applications/System"
|
|
LICENSE = "GPLv2"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f"
|
|
|
|
DEPENDS = " sysfsutils"
|
|
|
|
SRCREV = "f9aa96205f610de39a79ff43c7478b7ef02e3138"
|
|
PV = "0.18+git${SRCPV}"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
SRC_URI = "git://github.com/grondo/edac-utils \
|
|
file://make-init-script-be-able-to-automatically-load-EDAC-.patch \
|
|
file://add-restart-to-initscript.patch \
|
|
file://edac.service \
|
|
"
|
|
|
|
inherit autotools-brokensep systemd
|
|
|
|
do_configure_prepend () {
|
|
touch ${S}/ChangeLog
|
|
${S}/bootstrap
|
|
}
|
|
|
|
RDEPENDS_${PN}_x86 = "dmidecode"
|
|
RDEPENDS_${PN}_x86-64 = "dmidecode"
|
|
RDEPENDS_${PN}_arm = "dmidecode"
|
|
RDEPENDS_${PN}_aarch64 = "dmidecode"
|
|
RDEPENDS_${PN}_powerpc = "dmidecode"
|
|
RDEPENDS_${PN}_powerpc64 = "dmidecode"
|
|
RDEPENDS_${PN}_append = " \
|
|
perl-module-file-basename perl-module-file-find perl-module-getopt-long perl-module-posix \
|
|
perl-module-overload \
|
|
perl-module-overloading \
|
|
perl-module-file-glob \
|
|
"
|
|
|
|
do_install_append() {
|
|
install -d ${D}${systemd_unitdir}/system
|
|
install -m 644 ${WORKDIR}/edac.service ${D}/${systemd_unitdir}/system
|
|
sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}/${systemd_unitdir}/system/edac.service
|
|
}
|
|
|
|
SYSTEMD_SERVICE_${PN} = "edac.service"
|
|
SYSTEMD_AUTO_ENABLE_${PN} = "disable"
|