diff options
author | Wang Xin <wangxin2015.fnst@cn.fujitsu.com> | 2016-08-27 03:12:28 -0400 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-09-05 13:30:52 +0200 |
commit | 353a8c3064b9983db4dcb241e17f05484df29de9 (patch) | |
tree | 669660455bcf7b1ad479add06f3696129f269fd2 /meta-oe/recipes-support/mcelog/mcelog_1.40.bb | |
parent | 709bd23a5c8bd775a655400e12e598a8d4fcc526 (diff) | |
download | meta-openembedded-contrib-353a8c3064b9983db4dcb241e17f05484df29de9.tar.gz |
mcelog: 1.09 -> 1.40
Upgrade mcelog from 1.09 to 1.40.
Signed-off-by: Wang Xin <wangxin2015.fnst@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/mcelog/mcelog_1.40.bb')
-rw-r--r-- | meta-oe/recipes-support/mcelog/mcelog_1.40.bb | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/mcelog/mcelog_1.40.bb b/meta-oe/recipes-support/mcelog/mcelog_1.40.bb new file mode 100644 index 0000000000..9aebbd571c --- /dev/null +++ b/meta-oe/recipes-support/mcelog/mcelog_1.40.bb @@ -0,0 +1,36 @@ +SUMMARY = "mcelog daemon accounts memory and some other errors in various ways." +DESCRIPTION = "mcelog is required by both 32bit x86 Linux kernels (since 2.6.30) \ +and 64bit Linux kernels (since early 2.6 kernel releases) to log machine checks \ +and should run on all Linux systems that need error handling." +HOMEPAGE = "http://mcelog.org/" +SECTION = "System Environment/Base" + +SRC_URI = "git://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git;protocol=http; \ + file://mcelog-debash.patch \ + file://run-ptest \ +" + +SRCREV = "008c73e6de3a4bf969d1627e695d4efc807aed92" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://README;md5=3d12dd2a10bdd22379cc4c0fc6949a88" + +S = "${WORKDIR}/git" + +inherit autotools-brokensep ptest + +COMPATIBLE_HOST = '(x86_64.*|i.86.*)-linux' + +do_install_append() { + install -d ${D}${sysconfdir}/cron.hourly + install -m 0755 ${S}/mcelog.cron ${D}${sysconfdir}/cron.hourly/ + sed -i 's/bash/sh/' ${D}${sysconfdir}/cron.hourly/mcelog.cron +} + +do_install_ptest() { + install -d ${D}${PTEST_PATH} + cp -r ${S}/tests ${S}/input ${D}${PTEST_PATH} + sed -i 's#../../mcelog#mcelog#' ${D}${PTEST_PATH}/tests/test +} + +RDEPENDS_${PN}-ptest += "${PN} make bash mce-inject" |