Skip to contentSkip to conversation

mce-test: add it

PATCH In review Dengke Du 2 participants 4 messages Jun 8, 2018 – Jun 10, 2018

lore
Share & tools
lore

Dengke Du

author
#0 lore raw

PATCH v2 1/1 mce-test: add it

---
 .../mce-test/files/makefile-remove-ldflags.patch   | 23 +++++++++++
 recipes-kernel/mce-test/mce-test_git.bb            | 48 ++++++++++++++++++++++
 2 files changed, 71 insertions(+)
 create mode 100644 recipes-kernel/mce-test/files/makefile-remove-ldflags.patch
 create mode 100644 recipes-kernel/mce-test/mce-test_git.bb
recipes-kernel/mce-test/files/makefile-remove-ldflags.patch new file +23 -0
new file mode 100644
index 0000000..0ffedd2
@@ -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 <[email protected]>
+
+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
recipes-kernel/mce-test/mce-test_git.bb new file +48 -0

48 lines not on this page · raw message

Signature · 1 line
2.7.4
#1 lore raw

Hi Dengke

subject seems to indicate its for meta-intel. if so then its sent to wrong ml.

Quoted 46 lines · Dengke Du
---
  .../mce-test/files/makefile-remove-ldflags.patch   | 23 +++++++++++
  recipes-kernel/mce-test/mce-test_git.bb            | 48 ++++++++++++++++++++++
  2 files changed, 71 insertions(+)

create mode 100644 recipes-kernel/mce-test/files/makefile-remove-ldflags.patch create mode 100644 recipes-kernel/mce-test/mce-test_git.bb

recipes-kernel/mce-test/files/makefile-remove-ldflags.patch new file +23 -0
new file mode 100644
index 0000000..0ffedd2
@@ -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 <[email protected]>
+
+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
recipes-kernel/mce-test/mce-test_git.bb new file +3 -0
new file mode 100644
index 0000000..dca26a6
@@ -0,0 +1,48 @@
+#
+# Copyright (C) 2012 Wind River Systems, Inc.
+#

recipes-kernel/mce-test/mce-test_git.bb line 13

Quoted 10 lines
recipes-kernel/mce-test/mce-test_git.bb new file +10 -0
+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 = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
+
+PR = "r2"

Drop PR

recipes-kernel/mce-test/mce-test_git.bb line 21

Quoted 8 lines
recipes-kernel/mce-test/mce-test_git.bb new file +8 -0
+
+SRC_URI = "git://git.kernel.org/pub/scm/utils/cpu/mce/mce-test.git;protocol=git \
+           file://makefile-remove-ldflags.patch \
+          "
+# Use the commit date of SRCREV in PV.
+#
+SRCREV = "74bffd8b0aa27051aeaa1983a7b23975ca8d8726"
+PE = "1"

We do not need PE its a new recipe.

Quoted 28 lines
recipes-kernel/mce-test/mce-test_git.bb new file +27 -0
+PV = "20171030+git${SRCPV}"
+
+RDEPENDS_${PN} = "mcelog mce-inject dialog bash"
+
+COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
+
+S ="${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+do_install_append(){
+   install -d ${D}/opt/mce-test
+   cp -rf ${S}/* ${D}/opt/mce-test/
+}
+
+FILES_${PN} += "/opt"
+FILES_${PN}-dbg += "/opt/mce-test/cases/function/hwpoison/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/cases/function/erst-inject/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/cases/function/pfa/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/cases/function/core_recovery/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/cases/stress/hwpoison/bin/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/cases/stress/hwpoison/tools/page-poisoning/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/cases/stress/hwpoison/tools/fs-metadata/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/bin/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/tools/ltp-pan/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/tools/simple_process/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/tools/page-types/.debug"
author
#2 lore raw

Sorry for my mistake, thanks for reminding.

Quoted 112 lines · Khem Raj

Hi Dengke

subject seems to indicate its for meta-intel. if so then its sent to wrong ml.

Quoted 59 lines · Dengke Du

---
  .../mce-test/files/makefile-remove-ldflags.patch   | 23 +++++++++++ recipes-kernel/mce-test/mce-test_git.bb            | 48
++++++++++++++++++++++

  2 files changed, 71 insertions(+)

  create mode 100644 recipes-kernel/mce-test/files/makefile-remove-ldflags.patch create mode 100644 recipes-kernel/mce-test/mce-test_git.bb

recipes-kernel/mce-test/files/makefile-remove-ldflags.patch new file +1 -0
new file mode 100644
index 0000000..0ffedd2
@@ -0,0 +1,23 @@
+Remove the default CFLAGS and LDFLAGS in Makefile. Ensure the extra 

linker flags can be passed.

recipes-kernel/mce-test/files/makefile-remove-ldflags.patch new file +6 -0
+
+Upstream-Status: Inappropriate [embedded specific]
+
+Signed-off-by: Yi Zhao <[email protected]>
+
+diff --git a/cases/stress/hwpoison/Makefile 

b/cases/stress/hwpoison/Makefile

recipes-kernel/mce-test/files/makefile-remove-ldflags.patch new file +16 -0
+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
recipes-kernel/mce-test/mce-test_git.bb new file +6 -0
new file mode 100644
index 0000000..dca26a6
@@ -0,0 +1,48 @@
+#
+# 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 \

recipes-kernel/mce-test/mce-test_git.bb new file +5 -0
+testing the Linux RAS related features, including CPU/Memory error \
+containment and recovery, ACPI/APEI support etc."
+
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = 

"file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"

recipes-kernel/mce-test/mce-test_git.bb

Quoted 2 lines
recipes-kernel/mce-test/mce-test_git.bb new file +2 -0
+
+PR = "r2"

Drop PR

recipes-kernel/mce-test/mce-test_git.bb line 21

Quoted 9 lines
recipes-kernel/mce-test/mce-test_git.bb new file +2 -0
+
+SRC_URI = 

"git://git.kernel.org/pub/scm/utils/cpu/mce/mce-test.git;protocol=git \
+           file://makefile-remove-ldflags.patch \
+          "

recipes-kernel/mce-test/mce-test_git.bb new file +4 -0
+# Use the commit date of SRCREV in PV.
+#
+SRCREV = "74bffd8b0aa27051aeaa1983a7b23975ca8d8726"
+PE = "1"

We do not need PE its a new recipe.

Quoted 30 lines
recipes-kernel/mce-test/mce-test_git.bb new file +22 -0
+PV = "20171030+git${SRCPV}"
+
+RDEPENDS_${PN} = "mcelog mce-inject dialog bash"
+
+COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
+
+S ="${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+do_install_append(){
+   install -d ${D}/opt/mce-test
+   cp -rf ${S}/* ${D}/opt/mce-test/
+}
+
+FILES_${PN} += "/opt"
+FILES_${PN}-dbg += "/opt/mce-test/cases/function/hwpoison/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/cases/function/erst-inject/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/cases/function/pfa/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/cases/function/core_recovery/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/cases/stress/hwpoison/bin/.debug"
+FILES_${PN}-dbg += 

"/opt/mce-test/cases/stress/hwpoison/tools/page-poisoning/.debug" +FILES_${PN}-dbg += "/opt/mce-test/cases/stress/hwpoison/tools/fs-metadata/.debug"

recipes-kernel/mce-test/mce-test_git.bb new file +4 -0
+FILES_${PN}-dbg += "/opt/mce-test/bin/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/tools/ltp-pan/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/tools/simple_process/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/tools/page-types/.debug"
#3 lore raw
In reply to Dengke Du

Hi Dengke

subject seems to indicate its for meta-intel. if so then its sent to wrong ml.

Quoted 46 lines · Dengke Du
---
  .../mce-test/files/makefile-remove-ldflags.patch   | 23 +++++++++++
  recipes-kernel/mce-test/mce-test_git.bb            | 48 ++++++++++++++++++++++
  2 files changed, 71 insertions(+)

create mode 100644 recipes-kernel/mce-test/files/makefile-remove-ldflags.patch create mode 100644 recipes-kernel/mce-test/mce-test_git.bb

recipes-kernel/mce-test/files/makefile-remove-ldflags.patch new file +23 -0
new file mode 100644
index 0000000..0ffedd2
@@ -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 <[email protected]>
+
+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
recipes-kernel/mce-test/mce-test_git.bb new file +3 -0
new file mode 100644
index 0000000..dca26a6
@@ -0,0 +1,48 @@
+#
+# Copyright (C) 2012 Wind River Systems, Inc.
+#

recipes-kernel/mce-test/mce-test_git.bb line 13

Quoted 10 lines
recipes-kernel/mce-test/mce-test_git.bb new file +10 -0
+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 = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
+
+PR = "r2"

Drop PR

recipes-kernel/mce-test/mce-test_git.bb line 21

Quoted 8 lines
recipes-kernel/mce-test/mce-test_git.bb new file +8 -0
+
+SRC_URI = "git://git.kernel.org/pub/scm/utils/cpu/mce/mce-test.git;protocol=git \
+           file://makefile-remove-ldflags.patch \
+          "
+# Use the commit date of SRCREV in PV.
+#
+SRCREV = "74bffd8b0aa27051aeaa1983a7b23975ca8d8726"
+PE = "1"

We do not need PE its a new recipe.

Quoted 28 lines
recipes-kernel/mce-test/mce-test_git.bb new file +27 -0
+PV = "20171030+git${SRCPV}"
+
+RDEPENDS_${PN} = "mcelog mce-inject dialog bash"
+
+COMPATIBLE_HOST = '(i.86|x86_64).*-linux'
+
+S ="${WORKDIR}/git"
+
+inherit autotools-brokensep
+
+do_install_append(){
+   install -d ${D}/opt/mce-test
+   cp -rf ${S}/* ${D}/opt/mce-test/
+}
+
+FILES_${PN} += "/opt"
+FILES_${PN}-dbg += "/opt/mce-test/cases/function/hwpoison/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/cases/function/erst-inject/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/cases/function/pfa/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/cases/function/core_recovery/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/cases/stress/hwpoison/bin/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/cases/stress/hwpoison/tools/page-poisoning/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/cases/stress/hwpoison/tools/fs-metadata/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/bin/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/tools/ltp-pan/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/tools/simple_process/.debug"
+FILES_${PN}-dbg += "/opt/mce-test/tools/page-types/.debug"