diff options
author | Changqing Li <changqing.li@windriver.com> | 2018-12-05 17:42:26 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-08 17:17:01 +0000 |
commit | 3eda00b42e3f0bacedba5bd6e8fbe01b8994b80d (patch) | |
tree | 6f8fe85b4aaac1528406e4dc9b5614f639ac26ff /meta/recipes-devtools | |
parent | 7f84f42cf1ddcedd64ac6243a12104264c31e6ef (diff) | |
download | poky-3eda00b42e3f0bacedba5bd6e8fbe01b8994b80d.tar.gz |
strace: fix ptest fail and strip ptest host references
1. Add LDFLAGS_FOR_BUILD for strip host reference
2. Revert one previous replace operation for fix ptest fail.
refer oe commit: 74b5088f1cc1708db43c33ac2dc7f01f4a4db9c1
(From OE-Core rev: e52eede3dfd7155e4e016734586b527932d1ef2a)
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/strace/strace_4.25.bb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-devtools/strace/strace_4.25.bb b/meta/recipes-devtools/strace/strace_4.25.bb index 58f6cf6e30..028aa71729 100644 --- a/meta/recipes-devtools/strace/strace_4.25.bb +++ b/meta/recipes-devtools/strace/strace_4.25.bb | |||
@@ -32,7 +32,7 @@ EXTRA_OECONF += "--enable-mpers=no" | |||
32 | CFLAGS_append_libc-musl = " -Dsigcontext_struct=sigcontext" | 32 | CFLAGS_append_libc-musl = " -Dsigcontext_struct=sigcontext" |
33 | 33 | ||
34 | TESTDIR = "tests" | 34 | TESTDIR = "tests" |
35 | PTEST_BUILD_HOST_PATTERN = "^(DEB_CHANGELOGTIME|RPM_CHANGELOGTIME|WARN_CFLAGS_FOR_BUILD)" | 35 | PTEST_BUILD_HOST_PATTERN = "^(DEB_CHANGELOGTIME|RPM_CHANGELOGTIME|WARN_CFLAGS_FOR_BUILD|LDFLAGS_FOR_BUILD)" |
36 | 36 | ||
37 | do_install_append() { | 37 | do_install_append() { |
38 | # We don't ship strace-graph here because it needs perl | 38 | # We don't ship strace-graph here because it needs perl |
@@ -47,6 +47,7 @@ do_install_ptest() { | |||
47 | oe_runmake -C ${TESTDIR} install-ptest BUILDDIR=${B} DESTDIR=${D}${PTEST_PATH} TESTDIR=${TESTDIR} | 47 | oe_runmake -C ${TESTDIR} install-ptest BUILDDIR=${B} DESTDIR=${D}${PTEST_PATH} TESTDIR=${TESTDIR} |
48 | install -m 755 ${S}/test-driver ${D}${PTEST_PATH} | 48 | install -m 755 ${S}/test-driver ${D}${PTEST_PATH} |
49 | install -m 644 ${B}/config.h ${D}${PTEST_PATH} | 49 | install -m 644 ${B}/config.h ${D}${PTEST_PATH} |
50 | sed -i -e '/^src/s/strace.*[1-9]/ptest/' ${D}/${PTEST_PATH}/${TESTDIR}/Makefile | ||
50 | } | 51 | } |
51 | 52 | ||
52 | RDEPENDS_${PN}-ptest += "make coreutils grep gawk sed" | 53 | RDEPENDS_${PN}-ptest += "make coreutils grep gawk sed" |