diff options
| author | Mingli Yu <Mingli.Yu@windriver.com> | 2019-04-16 16:05:00 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-04-23 23:30:19 +0100 |
| commit | 073556fa8c6e95ebd1cd97d5226b8b9e743fe4e0 (patch) | |
| tree | a0d1f632f06533adf4d75f658ac14db4c337122c /meta/recipes-devtools/elfutils/elfutils_0.176.bb | |
| parent | f0d4ef3cdcf803aab2acf3c40dea8bfec44dc01c (diff) | |
| download | poky-073556fa8c6e95ebd1cd97d5226b8b9e743fe4e0.tar.gz | |
elfutils: add ptest support
Add testsuite-ignore-elflint.diff from debian
(http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.176-1.debian.tar.xz)
to fix below ptest failure:
| ./run-strip-strmerge.sh: line 33: testrun_on_self_skip: command not found
| FAIL: run-strip-strmerge.sh
Add check for gcc for two test cases such as
run-strip-nothing.sh and run-strip-g.sh which
depends on gcc at run time.
(From OE-Core rev: 240e6b8819aab3bf74cdde92934be337e766aa75)
Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/elfutils/elfutils_0.176.bb')
| -rw-r--r-- | meta/recipes-devtools/elfutils/elfutils_0.176.bb | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.176.bb b/meta/recipes-devtools/elfutils/elfutils_0.176.bb index cd824e2901..031c00fb28 100644 --- a/meta/recipes-devtools/elfutils/elfutils_0.176.bb +++ b/meta/recipes-devtools/elfutils/elfutils_0.176.bb | |||
| @@ -27,16 +27,24 @@ SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \ | |||
| 27 | file://debian/hurd_path.patch \ | 27 | file://debian/hurd_path.patch \ |
| 28 | file://debian/ignore_strmerge.diff \ | 28 | file://debian/ignore_strmerge.diff \ |
| 29 | file://debian/disable_werror.patch \ | 29 | file://debian/disable_werror.patch \ |
| 30 | file://debian/testsuite-ignore-elflint.diff \ | ||
| 31 | file://0001-skip-the-test-when-gcc-not-deployed.patch \ | ||
| 32 | file://run-ptest \ | ||
| 33 | file://serial-tests.patch \ | ||
| 30 | " | 34 | " |
| 31 | SRC_URI_append_libc-musl = " file://0008-build-Provide-alternatives-for-glibc-assumptions-hel.patch" | 35 | SRC_URI_append_libc-musl = " file://0008-build-Provide-alternatives-for-glibc-assumptions-hel.patch" |
| 32 | 36 | ||
| 33 | SRC_URI[md5sum] = "077e4f49320cad82bf17a997068b1db9" | 37 | SRC_URI[md5sum] = "077e4f49320cad82bf17a997068b1db9" |
| 34 | SRC_URI[sha256sum] = "eb5747c371b0af0f71e86215a5ebb88728533c3a104a43d4231963f308cd1023" | 38 | SRC_URI[sha256sum] = "eb5747c371b0af0f71e86215a5ebb88728533c3a104a43d4231963f308cd1023" |
| 35 | 39 | ||
| 36 | inherit autotools gettext | 40 | inherit autotools gettext ptest |
| 37 | 41 | ||
| 38 | EXTRA_OECONF = "--program-prefix=eu- --without-lzma" | 42 | EXTRA_OECONF = "--program-prefix=eu- --without-lzma" |
| 39 | EXTRA_OECONF_append_class-native = " --without-bzlib" | 43 | EXTRA_OECONF_append_class-native = " --without-bzlib" |
| 44 | # gcc has been added to blacklist, we will find workaround solution | ||
| 45 | RDEPENDS_${PN}-ptest = "libasm libelf bash" | ||
| 46 | |||
| 47 | EXTRA_OECONF_append_class-target += "--enable-tests-rpath" | ||
| 40 | 48 | ||
| 41 | do_install_append() { | 49 | do_install_append() { |
| 42 | if [ "${TARGET_ARCH}" != "x86_64" ] && [ -z `echo "${TARGET_ARCH}"|grep 'i.86'` ];then | 50 | if [ "${TARGET_ARCH}" != "x86_64" ] && [ -z `echo "${TARGET_ARCH}"|grep 'i.86'` ];then |
| @@ -44,6 +52,23 @@ do_install_append() { | |||
| 44 | fi | 52 | fi |
| 45 | } | 53 | } |
| 46 | 54 | ||
| 55 | do_compile_ptest() { | ||
| 56 | cd ${B}/tests | ||
| 57 | oe_runmake buildtest-TESTS | ||
| 58 | } | ||
| 59 | |||
| 60 | do_install_ptest() { | ||
| 61 | if [ ${PTEST_ENABLED} = "1" ]; then | ||
| 62 | cp -r ${S}/tests/ ${D}${PTEST_PATH} | ||
| 63 | cp -r ${B}/tests/* ${D}${PTEST_PATH}/tests | ||
| 64 | cp -r ${B}/src ${D}${PTEST_PATH} | ||
| 65 | cp -r ${B}/config.h ${D}${PTEST_PATH} | ||
| 66 | cp -r ${B}/backends ${D}${PTEST_PATH} | ||
| 67 | sed -i '/^Makefile:/c Makefile:' ${D}${PTEST_PATH}/tests/Makefile | ||
| 68 | find ${D}${PTEST_PATH} -type f -name *.[hoc] | xargs -i rm {} | ||
| 69 | fi | ||
| 70 | } | ||
| 71 | |||
| 47 | EXTRA_OEMAKE_class-native = "" | 72 | EXTRA_OEMAKE_class-native = "" |
| 48 | EXTRA_OEMAKE_class-nativesdk = "" | 73 | EXTRA_OEMAKE_class-nativesdk = "" |
| 49 | 74 | ||
