diff mbox series

[3/5] binutils-testsuite: fix ld tests that check for enable_libctf

Message ID 20251204161820.1339988-3-ross.burton@arm.com
State New
Headers show
Series [1/5] binutils-testsuite: run tests in the testsuite directory | expand

Commit Message

Ross Burton Dec. 4, 2025, 4:18 p.m. UTC
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>
---
 meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb b/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb
index 4e393c4e4d6..53693334345 100644
--- a/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb
+++ b/meta/recipes-devtools/binutils/binutils-testsuite_2.45.bb
@@ -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}"'))