diff options
author | Ola x Nilsson <olani@axis.com> | 2024-11-13 15:45:42 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-11-14 11:56:53 +0000 |
commit | 049928e0f12aff9492b6894f1467c97c906dbd3b (patch) | |
tree | 7e91ca37a4c625738560fb7c538eef1db4b2d229 | |
parent | fb57e8bde45b0ee4124f8dc075f3fbf11e82753f (diff) | |
download | poky-049928e0f12aff9492b6894f1467c97c906dbd3b.tar.gz |
acl: 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: a951447ca3b51f77272381c8e0c5837671fabbbd)
Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-support/attr/acl_2.3.2.bb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/recipes-support/attr/acl_2.3.2.bb b/meta/recipes-support/attr/acl_2.3.2.bb index 6178473873..dd959a5051 100644 --- a/meta/recipes-support/attr/acl_2.3.2.bb +++ b/meta/recipes-support/attr/acl_2.3.2.bb | |||
@@ -52,10 +52,12 @@ do_install_ptest() { | |||
52 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ | 52 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ |
53 | -i ${D}${PTEST_PATH}/Makefile | 53 | -i ${D}${PTEST_PATH}/Makefile |
54 | 54 | ||
55 | sed -i "s|^srcdir =.*|srcdir = \.|g" ${D}${PTEST_PATH}/Makefile | 55 | sed -e "s|^srcdir =.*|srcdir = .|" \ |
56 | sed -i "s|^abs_srcdir =.*|abs_srcdir = \.|g" ${D}${PTEST_PATH}/Makefile | 56 | -e "s|^abs_srcdir =.*|abs_srcdir = .|" \ |
57 | sed -i "s|^abs_top_srcdir =.*|abs_top_srcdir = \.\.|g" ${D}${PTEST_PATH}/Makefile | 57 | -e "s|^abs_top_srcdir =.*|abs_top_srcdir = ..|" \ |
58 | sed -i "s|^Makefile:.*|Makefile:|g" ${D}${PTEST_PATH}/Makefile | 58 | -e "s|^Makefile:.*|Makefile:|" \ |
59 | -e "/^TEST_LOG_DRIVER =/s|(top_srcdir)|(top_builddir)|" \ | ||
60 | -i ${D}${PTEST_PATH}/Makefile | ||
59 | 61 | ||
60 | rm ${D}${PTEST_PATH}/.libs/libtestlookup.lai | 62 | rm ${D}${PTEST_PATH}/.libs/libtestlookup.lai |
61 | } | 63 | } |