added my Recipes
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
SUMMARY = "Linux machine check injector tool"
|
||||
DESCRIPTION = "mce-inject allows to inject machine check errors on the \
|
||||
software level into a running Linux kernel. This is intended for \
|
||||
validation of the kernel machine check handler."
|
||||
SECTION = "System Environment/Base"
|
||||
|
||||
SRC_URI = "git://git.kernel.org/pub/scm/utils/cpu/mce/mce-inject.git;branch=master"
|
||||
|
||||
SRCREV = "4cbe46321b4a81365ff3aafafe63967264dbfec5"
|
||||
|
||||
UPSTREAM_CHECK_COMMITS = "1"
|
||||
|
||||
DEPENDS = "bison-native"
|
||||
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://README;beginline=30;md5=94c18755082a2da9c9cf97cba3ad47d6"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
COMPATIBLE_HOST = '(x86_64.*|i.86.*)-linux'
|
||||
|
||||
inherit autotools-brokensep
|
||||
|
||||
EXTRA_OEMAKE = "destdir=${D} CFLAGS='${CFLAGS}'"
|
||||
@@ -0,0 +1,110 @@
|
||||
From 430982376a544bbccaef5006fab94bbc2f1d1711 Mon Sep 17 00:00:00 2001
|
||||
From: Mingli Yu <mingli.yu@windriver.com>
|
||||
Date: Mon, 13 Apr 2020 07:12:44 +0000
|
||||
Subject: [PATCH] gcov_merge.py/scov_merge.py: switch to python3
|
||||
|
||||
Make gcov_merge.py and scov_merge.py port to python3.
|
||||
|
||||
Upstream-Status: Pending
|
||||
|
||||
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
|
||||
---
|
||||
tools/scripts/gcov_merge.py | 12 ++++++------
|
||||
tools/scripts/scov_merge.py | 12 ++++++------
|
||||
2 files changed, 12 insertions(+), 12 deletions(-)
|
||||
|
||||
diff --git a/tools/scripts/gcov_merge.py b/tools/scripts/gcov_merge.py
|
||||
index 0ac9bed..9f1cb8c 100644
|
||||
--- a/tools/scripts/gcov_merge.py
|
||||
+++ b/tools/scripts/gcov_merge.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
#
|
||||
# Merge gcov graph from several test cases. This can be used to check
|
||||
# the coverage of several test cases.
|
||||
@@ -11,7 +11,7 @@
|
||||
import sys
|
||||
|
||||
def die(str):
|
||||
- print str
|
||||
+ print(str)
|
||||
sys.exit(-1)
|
||||
|
||||
def die_on(cond, str):
|
||||
@@ -55,11 +55,11 @@ def merge(gcls1, gcls2):
|
||||
gcl1.merge(gcl2)
|
||||
|
||||
def gcov_merge(fns, of):
|
||||
- f = file(fns[0])
|
||||
+ f = open(fns[0])
|
||||
gcls_base = parse(f)
|
||||
|
||||
for fn in fns[1:]:
|
||||
- f = file(fn)
|
||||
+ f = open(fn)
|
||||
gcls = parse(f)
|
||||
merge(gcls_base, gcls)
|
||||
|
||||
@@ -67,10 +67,10 @@ def gcov_merge(fns, of):
|
||||
gcl.write(of)
|
||||
|
||||
def usage():
|
||||
- print 'Usage: %s <gcov graph files>' % (sys.argv[0])
|
||||
+ print('Usage: %s <gcov graph files>' % (sys.argv[0]))
|
||||
|
||||
if __name__ == '__main__':
|
||||
if len(sys.argv) <= 1:
|
||||
usage()
|
||||
- exit -1
|
||||
+ sys.exit(-1)
|
||||
gcov_merge(sys.argv[1:], sys.stdout)
|
||||
diff --git a/tools/scripts/scov_merge.py b/tools/scripts/scov_merge.py
|
||||
index f83b922..bbcf760 100644
|
||||
--- a/tools/scripts/scov_merge.py
|
||||
+++ b/tools/scripts/scov_merge.py
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/env python
|
||||
+#!/usr/bin/env python3
|
||||
#
|
||||
# Merge mce serverity coverage file from several test cases. This can
|
||||
# be used to check the coverage of several test cases.
|
||||
@@ -11,7 +11,7 @@
|
||||
import sys
|
||||
|
||||
def die(str):
|
||||
- print str
|
||||
+ print(str)
|
||||
sys.exit(-1)
|
||||
|
||||
def die_on(cond, str):
|
||||
@@ -47,11 +47,11 @@ def merge(gcls1, gcls2):
|
||||
gcl1.merge(gcl2)
|
||||
|
||||
def scov_merge(fns, of):
|
||||
- f = file(fns[0])
|
||||
+ f = open(fns[0])
|
||||
gcls_base = parse(f)
|
||||
|
||||
for fn in fns[1:]:
|
||||
- f = file(fn)
|
||||
+ f = open(fn)
|
||||
gcls = parse(f)
|
||||
merge(gcls_base, gcls)
|
||||
|
||||
@@ -59,10 +59,10 @@ def scov_merge(fns, of):
|
||||
gcl.write(of)
|
||||
|
||||
def usage():
|
||||
- print 'Usage: %s <severities coverage files>' % (sys.argv[0])
|
||||
+ print('Usage: %s <severities coverage files>' % (sys.argv[0]))
|
||||
|
||||
if __name__ == '__main__':
|
||||
if len(sys.argv) <= 1:
|
||||
usage()
|
||||
- exit -1
|
||||
+ sys.exit(-1)
|
||||
scov_merge(sys.argv[1:], sys.stdout)
|
||||
--
|
||||
2.24.1
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
Remove the default CFLAGS and LDFLAGS in Makefile. Ensure the extra linker flags can be passed.
|
||||
|
||||
Upstream-Status: Inappropriate [embedded specific]
|
||||
|
||||
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
|
||||
|
||||
diff --git a/cases/stress/hwpoison/Makefile b/cases/stress/hwpoison/Makefile
|
||||
index da1cbd8..dec5b14 100644
|
||||
--- a/cases/stress/hwpoison/Makefile
|
||||
+++ b/cases/stress/hwpoison/Makefile
|
||||
@@ -1,8 +1,8 @@
|
||||
-CFLAGS := -g -Wall
|
||||
-LDFLAGS := -g
|
||||
+#CFLAGS := -g -Wall
|
||||
+#LDFLAGS := -g
|
||||
|
||||
-export CFLAGS
|
||||
-export LDFLAGS
|
||||
+#export CFLAGS
|
||||
+#export LDFLAGS
|
||||
|
||||
all:
|
||||
mkdir -p bin
|
||||
@@ -0,0 +1,31 @@
|
||||
#
|
||||
# Copyright (C) 2012 Wind River Systems, Inc.
|
||||
#
|
||||
SUMMARY = "MCE test suite"
|
||||
|
||||
DESCRIPTION = "The MCE test suite is a collection of tools and test scripts for \
|
||||
testing the Linux RAS related features, including CPU/Memory error \
|
||||
containment and recovery, ACPI/APEI support etc."
|
||||
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
|
||||
|
||||
SRC_URI = "git://git.kernel.org/pub/scm/utils/cpu/mce/mce-test.git;protocol=git;branch=master \
|
||||
file://makefile-remove-ldflags.patch \
|
||||
file://0001-gcov_merge.py-scov_merge.py-switch-to-python3.patch \
|
||||
"
|
||||
SRCREV = "7643baf6c3919b3d727e6ba6c2e545dc6a653307"
|
||||
PV = "20190917+git${SRCPV}"
|
||||
|
||||
RDEPENDS:${PN} = "mcelog mce-inject dialog bash"
|
||||
|
||||
COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
|
||||
|
||||
S ="${WORKDIR}/git"
|
||||
|
||||
do_install:append(){
|
||||
install -d ${D}/opt/mce-test
|
||||
cp -rf ${S}/* ${D}/opt/mce-test/
|
||||
}
|
||||
|
||||
FILES:${PN} += "/opt"
|
||||
@@ -0,0 +1,26 @@
|
||||
From c7753f82261d49862d5e0f9691bf87799d36ef0c Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 31 Aug 2022 16:20:03 -0700
|
||||
Subject: [PATCH] client: Include string.h form mem* function prototypes
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
client.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/client.c b/client.c
|
||||
index 883b1de..e474e55 100644
|
||||
--- a/client.c
|
||||
+++ b/client.c
|
||||
@@ -16,6 +16,7 @@
|
||||
on your Linux system; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||
#include <stdio.h>
|
||||
+#include <string.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
#include <unistd.h>
|
||||
--
|
||||
2.37.3
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
make -C tests test | sed -e '/\[PASS\]/ s/^/PASS: /g' \
|
||||
-e '/\[FAIL\]/ s/^/FAIL: /g' \
|
||||
-e '/\[IGNORE\]/ s/^/SKIP: /g' \
|
||||
-e 's/IGNORE:/SKIP:/' \
|
||||
-e 's/: \[PASS\]//' \
|
||||
-e 's/: \[FAIL\]//' \
|
||||
-e 's/: \[IGNORE\]//'
|
||||
@@ -0,0 +1,37 @@
|
||||
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 = "https://mcelog.org/"
|
||||
SECTION = "System Environment/Base"
|
||||
|
||||
SRC_URI = "\
|
||||
git://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git;protocol=http;;branch=master \
|
||||
file://0001-client-Include-string.h-form-mem-function-prototypes.patch \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
SRCREV = "a3552acad43ac1f47d3acba1c79462bdece4ea17"
|
||||
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
|
||||
|
||||
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 += "make bash mce-inject"
|
||||
Reference in New Issue
Block a user