mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
e91bab3746
Create ptest subpackage. Add a patch to remove bashism and then only ptest package depends on bash. Inherit autotools-brokensep and re-write do_install as well. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
37 lines
1.2 KiB
BlitzBasic
37 lines
1.2 KiB
BlitzBasic
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 \
|
|
file://mcelog-debash.patch \
|
|
file://run-ptest \
|
|
"
|
|
|
|
SRCREV = "0fc9f702232cb2d9969916f899c67c3e64deedda"
|
|
|
|
LICENSE = "GPLv2"
|
|
LIC_FILES_CHKSUM = "file://README;md5=3eb76ca64fa07ad53ebb0ebb5b4c8ede"
|
|
|
|
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"
|