summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/mcelog/mcelog_207.bb
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2025-10-14 17:18:55 +0800
committerKhem Raj <raj.khem@gmail.com>2025-10-14 09:00:20 -0700
commit08f550957f9dea4b30863811408cf592b74ca846 (patch)
tree9cff01304549e349ba70d2f6dce66d35bd65cf4f /meta-oe/recipes-support/mcelog/mcelog_207.bb
parent1ac53170027008e477bf44e90b082f890f777851 (diff)
downloadmeta-openembedded-08f550957f9dea4b30863811408cf592b74ca846.tar.gz
mcelog: upgrade 206 -> 207
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/mcelog/mcelog_207.bb')
-rw-r--r--meta-oe/recipes-support/mcelog/mcelog_207.bb42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/mcelog/mcelog_207.bb b/meta-oe/recipes-support/mcelog/mcelog_207.bb
new file mode 100644
index 0000000000..b7800066ca
--- /dev/null
+++ b/meta-oe/recipes-support/mcelog/mcelog_207.bb
@@ -0,0 +1,42 @@
1SUMMARY = "mcelog daemon accounts memory and some other errors in various ways."
2DESCRIPTION = "mcelog is required by both 32bit x86 Linux kernels (since 2.6.30) \
3and 64bit Linux kernels (since early 2.6 kernel releases) to log machine checks \
4and should run on all Linux systems that need error handling."
5HOMEPAGE = "https://mcelog.org/"
6SECTION = "System Environment/Base"
7
8SRC_URI = "git://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git;protocol=http;;branch=master \
9 file://0001-client-Include-string.h-form-mem-function-prototypes.patch \
10 file://run-ptest \
11 "
12
13SRCREV = "bcd71be7776f1fdbd043064bf3034a0cbf297666"
14
15LICENSE = "GPL-2.0-only"
16LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
17
18
19inherit ptest
20
21COMPATIBLE_HOST = '(x86_64.*|i.86.*)-linux'
22
23EXTRA_OEMAKE += "CFLAGS='${CFLAGS}'"
24
25do_compile() {
26 oe_runmake
27}
28
29do_install() {
30 oe_runmake install DESTDIR=${D}
31 install -d ${D}${sysconfdir}/cron.hourly
32 install -m 0755 ${S}/mcelog.cron ${D}${sysconfdir}/cron.hourly/
33 sed -i 's/bash/sh/' ${D}${sysconfdir}/cron.hourly/mcelog.cron
34}
35
36do_install_ptest() {
37 install -d ${D}${PTEST_PATH}
38 cp -r ${S}/tests ${S}/input ${D}${PTEST_PATH}
39 sed -i 's#../../mcelog#mcelog#' ${D}${PTEST_PATH}/tests/test
40}
41
42RDEPENDS:${PN}-ptest += "make bash mce-inject"