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 <[email protected]>
---
 meta/recipes-devtools/clang/clang-cross_git.bb | 3 +++
 1 file changed, 3 insertions(+)

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)}"
-- 
2.54.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#247137): 
https://lists.openembedded.org/g/openembedded-core/message/247137
Mute This Topic: https://lists.openembedded.org/mt/121554855/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to