diff mbox series

[meta-oe,2/2] mcelog: Upgrade to 194

Message ID 20230520074515.306156-2-raj.khem@gmail.com
State New
Headers show
Series [meta-oe,1/2] mce-inject: Pass CFLAGS to make | expand

Commit Message

Khem Raj May 20, 2023, 7:45 a.m. UTC
Drop unneeded autotools-brokensep class inherit, this package has
traditional makefile build.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../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%)
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/mcelog/mcelog_191.bb b/meta-oe/recipes-support/mcelog/mcelog_194.bb
similarity index 85%
rename from meta-oe/recipes-support/mcelog/mcelog_191.bb
rename to meta-oe/recipes-support/mcelog/mcelog_194.bb
index e713433469..9b5c554d86 100644
--- a/meta-oe/recipes-support/mcelog/mcelog_191.bb
+++ b/meta-oe/recipes-support/mcelog/mcelog_194.bb
@@ -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