summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2018-02-04 20:28:03 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-02-16 17:56:33 +0000
commit9de3c2568d63fffb12604c201c5f0fa64e14a2cc (patch)
treeb302d9d17ab8db233dfbb81910ff93c4f16cfae8
parent40a899544c9c7255aff92fea52fae4b32485fd75 (diff)
downloadopenembedded-core-9de3c2568d63fffb12604c201c5f0fa64e14a2cc.tar.gz
openembedded-core-9de3c2568d63fffb12604c201c5f0fa64e14a2cc.tar.bz2
openembedded-core-9de3c2568d63fffb12604c201c5f0fa64e14a2cc.zip
kbd-ptest: improve reproducibility
Remove remaining build host references of ptest's Makefile. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta/recipes-core/kbd/kbd_2.0.4.bb7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/recipes-core/kbd/kbd_2.0.4.bb b/meta/recipes-core/kbd/kbd_2.0.4.bb
index 423b47a076..5937cb8145 100644
--- a/meta/recipes-core/kbd/kbd_2.0.4.bb
+++ b/meta/recipes-core/kbd/kbd_2.0.4.bb
@@ -29,6 +29,13 @@ do_compile_ptest() {
do_install_ptest() {
install -D ${B}/tests/Makefile ${D}${PTEST_PATH}/tests/Makefile
sed -i -e '/Makefile:/,/^$/d' -e '/%: %.in/,/^$/d' \
+ -e 's:--sysroot=${STAGING_DIR_TARGET}::g' \
+ -e 's:${DEBUG_PREFIX_MAP}::g' \
+ -e 's:${HOSTTOOLS_DIR}/::g' \
+ -e 's:${RECIPE_SYSROOT_NATIVE}::g' \
+ -e 's:${RECIPE_SYSROOT}::g' \
+ -e 's:${S}/config/missing::g' \
+ -e 's:${WORKDIR}::g' \
-e '/libkeymap_.*_SOURCES =/d' -e '/$(EXEEXT):/,/^$/d' ${D}${PTEST_PATH}/tests/Makefile
find ${B}/tests -executable -exec install {} ${D}${PTEST_PATH}/tests \;