]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
binutils-testsuite: fix ld tests that check for enable_libctf
authorRoss Burton <ross.burton@arm.com>
Thu, 4 Dec 2025 16:18:18 +0000 (16:18 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 8 Dec 2025 18:02:45 +0000 (18:02 +0000)
The ld tests expect that the Makefile is being used and has written to
ld/enabling.exp. As we don't do that, manually write the file with the
right content.

This fixes the ld/testsuite/ld-ctf/ctf.exp tests.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb

index 4e393c4e4d645ec4a4907d2ab453451d288b7142..5369333434531909c8906cbd10e3a2b3271ed770 100644 (file)
@@ -45,6 +45,8 @@ python check_prepare() {
         content.append('set target_triplet {0}'.format(suffix_sys(d.getVar("TARGET_SYS"))))
         content.append("set development true")
         content.append("set experimental false")
+        # This is normally written into ld/enablings.exp
+        content.append("set enable_libctf yes")
 
         content.append(d.expand('set CXXFILT "${TARGET_PREFIX}c++filt"'))
         content.append(d.expand('set CC "${TARGET_PREFIX}gcc --sysroot=${STAGING_DIR_TARGET} ${TUNE_CCARGS}"'))