]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
sed: Fix the ptest path to test-driver
authorOla x Nilsson <olani@axis.com>
Wed, 13 Nov 2024 14:45:44 +0000 (15:45 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 14 Nov 2024 11:56:44 +0000 (11:56 +0000)
Add a sed substitution for ${PTEST_PATH}/Makefile that transforms
 SH_LOG_DRIVER = $(SHELL) $(top_srcdir)/build-aux/test-driver
 PL_LOG_DRIVER = $(SHELL) $(top_srcdir)/build-aux/test-driver
to
 SH_LOG_DRIVER = $(SHELL) $(top_builddir)/build-aux/test-driver
 PL_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]

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-extended/sed/sed_4.9.bb

index c4d89c34b2abd07e1ace05a97b6430c3f8924ba8..b30ddc73ca6549a393a0c606e318f5b942c821b8 100644 (file)
@@ -59,6 +59,7 @@ do_install_ptest() {
            -e 's:abs_srcdir =.*:abs_srcdir = ..:g' \
            -e 's:top_srcdir =.*:top_srcdir = ..:g' \
            -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
+           -e "/^\(PL\|SH\)_LOG_DRIVER =/s|(top_srcdir)|(top_builddir)|" \
            -i ${D}${PTEST_PATH}/Makefile
 }