summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorOla x Nilsson <olani@axis.com>2024-11-13 15:45:43 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-14 11:56:53 +0000
commita540cf556cc9b16b7e7c229766b7082c780a1c83 (patch)
tree87272abe369ba57a3cedcb3bd7daf0d6bda33a73 /meta
parent049928e0f12aff9492b6894f1467c97c906dbd3b (diff)
downloadpoky-a540cf556cc9b16b7e7c229766b7082c780a1c83.tar.gz
attr: Fix the ptest path to test-driver
Add a sed substitution for ${PTEST_PATH}/Makefile that transforms TEST_LOG_DRIVER = $(SHELL) $(top_srcdir)/build-aux/test-driver to TEST_LOG_DRIVER = $(SHELL) $(top_builddir)/build-aux/test-driver which is where the test-driver script can be found when installed. There used to be an oe-core automake patch to do this, but it broke non-ptest use of automake. Relates to [YOCTO #15635] (From OE-Core rev: 289db96b441e01c4ba1bbcd76fcf52b3258f2613) Signed-off-by: Ola x Nilsson <olani@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-support/attr/attr.inc11
1 files changed, 7 insertions, 4 deletions
diff --git a/meta/recipes-support/attr/attr.inc b/meta/recipes-support/attr/attr.inc
index 6033934401..5d6929fe50 100644
--- a/meta/recipes-support/attr/attr.inc
+++ b/meta/recipes-support/attr/attr.inc
@@ -42,10 +42,13 @@ do_install_ptest() {
42 -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ 42 -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
43 -i ${D}${PTEST_PATH}/Makefile 43 -i ${D}${PTEST_PATH}/Makefile
44 44
45 sed -i "s|^srcdir =.*|srcdir = \.|g" ${D}${PTEST_PATH}/Makefile 45 sed -e "s|^srcdir =.*|srcdir = .|" \
46 sed -i "s|^abs_srcdir =.*|abs_srcdir = \.|g" ${D}${PTEST_PATH}/Makefile 46 -e "s|^abs_srcdir =.*|abs_srcdir = .|" \
47 sed -i "s|^abs_top_srcdir =.*|abs_top_srcdir = \.\.|g" ${D}${PTEST_PATH}/Makefile 47 -e "s|^abs_top_srcdir =.*|abs_top_srcdir = ..|" \
48 sed -i "s|^Makefile:.*|Makefile:|g" ${D}${PTEST_PATH}/Makefile 48 -e "s|^Makefile:.*|Makefile:|" \
49 -e "/^TEST_LOG_DRIVER =/s|(top_srcdir)|(top_builddir)|" \
50 -i ${D}${PTEST_PATH}/Makefile
51
49 cp -rf ${S}/build-aux/ ${D}${PTEST_PATH} 52 cp -rf ${S}/build-aux/ ${D}${PTEST_PATH}
50 cp -rf ${S}/test/ ${D}${PTEST_PATH} 53 cp -rf ${S}/test/ ${D}${PTEST_PATH}
51} 54}