mce-inject: Pass CFLAGS to make
PATCH 1/2 mce-inject: Pass CFLAGS to make
This ensures right debug directory remapping options are passed to compiler
Fixes
WARNING: mce-inject-git-r0 do_package_qa: QA Issue: File /usr/sbin/.debug/mce-inject in package mce-inject-dbg contains reference to TMPDIR [buildpaths]
Signed-off-by Khem Raj <[email protected]>
--- meta-oe/recipes-support/mcelog/mce-inject_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/mcelog/mce-inject_git.bb +1 -1
@@ -21,4 +21,4 @@ COMPATIBLE_HOST = '(x86_64.*|i.86.*)-linux' inherit autotools-brokensep -EXTRA_OEMAKE = "destdir=${D}" +EXTRA_OEMAKE = "destdir=${D} CFLAGS='${CFLAGS}'"
Signature · 1 line
2.40.1
PATCH 2/2 mcelog: Upgrade to 194
Drop unneeded autotools-brokensep class inherit, this package has traditional makefile build.
Signed-off-by Khem Raj <[email protected]>
---
.../mcelog/{mcelog_191.bb => mcelog_194.bb} | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
rename meta-oe/recipes-support/mcelog/{mcelog_191.bb => mcelog_194.bb} (85%)meta-oe/recipes-support/mcelog/mcelog_194.bb renamed from meta-oe/recipes-support/mcelog/mcelog_191.bb +10 -3
@@ -11,18 +11,25 @@ SRC_URI = "\ file://run-ptest \ " -SRCREV = "a3552acad43ac1f47d3acba1c79462bdece4ea17" +SRCREV = "8f33fdc47160edce09d75e1316b4d88129ca60a0" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263" S = "${WORKDIR}/git" -inherit autotools-brokensep ptest +inherit ptest COMPATIBLE_HOST = '(x86_64.*|i.86.*)-linux' -do_install:append() { +EXTRA_OEMAKE += "CFLAGS='${CFLAGS}'" + +do_compile() { + oe_runmake +} + +do_install() { + oe_runmake install DESTDIR=${D} 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
Signature · 1 line
2.40.1