diff mbox series

[1/2] clang-cross: Ignore how TARGET_ARCH is computed

Message ID 20261002211037.745952-2-luciano.dittgen@ossystems.com.br
State New
Headers show
Series Make PowerPC cross tools hash the same across tunes | expand

Commit Message

Luciano Dittgen Oct. 2, 2026, 9:10 p.m. UTC
PN = "clang-cross-${TARGET_ARCH}" hashes TUNE_ARCH's expression, so
machines on one TARGET_ARCH but different tunes (e500mc vs e5500, e5500
vs e6500) give clang-cross-powerpc different signatures. Use the
vardepvalue gcc-, binutils- and gdb-cross have had since 39bfa0dd32.
Found by yocto-check-layer test_machine_signatures (meta-freescale);
verified with bitbake -S on p2041rdb, t1024rdb, t4240rdb and 64b boards.

Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
---
 meta/recipes-devtools/clang/clang-cross_git.bb | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/clang/clang-cross_git.bb b/meta/recipes-devtools/clang/clang-cross_git.bb
index 2ec15dd1df..0ce631efa1 100644
--- a/meta/recipes-devtools/clang/clang-cross_git.bb
+++ b/meta/recipes-devtools/clang/clang-cross_git.bb
@@ -9,6 +9,9 @@  SECTION = "devel"
 
 PN = "clang-cross-${TARGET_ARCH}"
 
+# Ignore how TARGET_ARCH is computed.
+TARGET_ARCH[vardepvalue] = "${TARGET_ARCH}"
+
 inherit cross
 
 DEPENDS = "clang-native virtual/cross-binutils ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', 'lld-native', '', d)}"