diff options
Diffstat (limited to 'meta-oe/recipes-support/mcelog/mcelog_199.bb')
| -rw-r--r-- | meta-oe/recipes-support/mcelog/mcelog_199.bb | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/mcelog/mcelog_199.bb b/meta-oe/recipes-support/mcelog/mcelog_199.bb new file mode 100644 index 0000000000..0a48fc48ce --- /dev/null +++ b/meta-oe/recipes-support/mcelog/mcelog_199.bb | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | SUMMARY = "mcelog daemon accounts memory and some other errors in various ways." | ||
| 2 | DESCRIPTION = "mcelog is required by both 32bit x86 Linux kernels (since 2.6.30) \ | ||
| 3 | and 64bit Linux kernels (since early 2.6 kernel releases) to log machine checks \ | ||
| 4 | and should run on all Linux systems that need error handling." | ||
| 5 | HOMEPAGE = "https://mcelog.org/" | ||
| 6 | SECTION = "System Environment/Base" | ||
| 7 | |||
| 8 | SRC_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 | |||
| 13 | SRCREV = "c17897deb52daab300c585a6a6c2456d062d80cf" | ||
| 14 | |||
| 15 | LICENSE = "GPL-2.0-only" | ||
| 16 | LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
| 17 | |||
| 18 | S = "${WORKDIR}/git" | ||
| 19 | |||
| 20 | inherit ptest | ||
| 21 | |||
| 22 | COMPATIBLE_HOST = '(x86_64.*|i.86.*)-linux' | ||
| 23 | |||
| 24 | EXTRA_OEMAKE += "CFLAGS='${CFLAGS}'" | ||
| 25 | |||
| 26 | do_compile() { | ||
| 27 | oe_runmake | ||
| 28 | } | ||
| 29 | |||
| 30 | do_install() { | ||
| 31 | oe_runmake install DESTDIR=${D} | ||
| 32 | install -d ${D}${sysconfdir}/cron.hourly | ||
| 33 | install -m 0755 ${S}/mcelog.cron ${D}${sysconfdir}/cron.hourly/ | ||
| 34 | sed -i 's/bash/sh/' ${D}${sysconfdir}/cron.hourly/mcelog.cron | ||
| 35 | } | ||
| 36 | |||
| 37 | do_install_ptest() { | ||
| 38 | install -d ${D}${PTEST_PATH} | ||
| 39 | cp -r ${S}/tests ${S}/input ${D}${PTEST_PATH} | ||
| 40 | sed -i 's#../../mcelog#mcelog#' ${D}${PTEST_PATH}/tests/test | ||
| 41 | } | ||
| 42 | |||
| 43 | RDEPENDS:${PN}-ptest += "make bash mce-inject" | ||
