diff options
| -rw-r--r-- | meta-oe/recipes-support/mcelog/mce-test/makefile-remove-ldflags.patch | 23 | ||||
| -rw-r--r-- | meta-oe/recipes-support/mcelog/mce-test_git.bb | 30 |
2 files changed, 53 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/mcelog/mce-test/makefile-remove-ldflags.patch b/meta-oe/recipes-support/mcelog/mce-test/makefile-remove-ldflags.patch new file mode 100644 index 0000000000..0ffedd2c17 --- /dev/null +++ b/meta-oe/recipes-support/mcelog/mce-test/makefile-remove-ldflags.patch | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | Remove the default CFLAGS and LDFLAGS in Makefile. Ensure the extra linker flags can be passed. | ||
| 2 | |||
| 3 | Upstream-Status: Inappropriate [embedded specific] | ||
| 4 | |||
| 5 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
| 6 | |||
| 7 | diff --git a/cases/stress/hwpoison/Makefile b/cases/stress/hwpoison/Makefile | ||
| 8 | index da1cbd8..dec5b14 100644 | ||
| 9 | --- a/cases/stress/hwpoison/Makefile | ||
| 10 | +++ b/cases/stress/hwpoison/Makefile | ||
| 11 | @@ -1,8 +1,8 @@ | ||
| 12 | -CFLAGS := -g -Wall | ||
| 13 | -LDFLAGS := -g | ||
| 14 | +#CFLAGS := -g -Wall | ||
| 15 | +#LDFLAGS := -g | ||
| 16 | |||
| 17 | -export CFLAGS | ||
| 18 | -export LDFLAGS | ||
| 19 | +#export CFLAGS | ||
| 20 | +#export LDFLAGS | ||
| 21 | |||
| 22 | all: | ||
| 23 | mkdir -p bin | ||
diff --git a/meta-oe/recipes-support/mcelog/mce-test_git.bb b/meta-oe/recipes-support/mcelog/mce-test_git.bb new file mode 100644 index 0000000000..888c729b3e --- /dev/null +++ b/meta-oe/recipes-support/mcelog/mce-test_git.bb | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | # | ||
| 2 | # Copyright (C) 2012 Wind River Systems, Inc. | ||
| 3 | # | ||
| 4 | SUMMARY = "MCE test suite" | ||
| 5 | |||
| 6 | DESCRIPTION = "The MCE test suite is a collection of tools and test scripts for \ | ||
| 7 | testing the Linux RAS related features, including CPU/Memory error \ | ||
| 8 | containment and recovery, ACPI/APEI support etc." | ||
| 9 | |||
| 10 | LICENSE = "GPLv2" | ||
| 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" | ||
| 12 | |||
| 13 | SRC_URI = "git://git.kernel.org/pub/scm/utils/cpu/mce/mce-test.git;protocol=git \ | ||
| 14 | file://makefile-remove-ldflags.patch \ | ||
| 15 | " | ||
| 16 | SRCREV = "74bffd8b0aa27051aeaa1983a7b23975ca8d8726" | ||
| 17 | PV = "20171030+git${SRCPV}" | ||
| 18 | |||
| 19 | RDEPENDS_${PN} = "mcelog mce-inject dialog bash" | ||
| 20 | |||
| 21 | COMPATIBLE_HOST = '(i.86|x86_64).*-linux' | ||
| 22 | |||
| 23 | S ="${WORKDIR}/git" | ||
| 24 | |||
| 25 | do_install_append(){ | ||
| 26 | install -d ${D}/opt/mce-test | ||
| 27 | cp -rf ${S}/* ${D}/opt/mce-test/ | ||
| 28 | } | ||
| 29 | |||
| 30 | FILES_${PN} += "/opt" | ||
