diff mbox series

[2/2] arch-powerpc: Hash ABIEXTENSION by its value

Message ID 20261002211037.745952-3-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
The e500 tunes append ${SPEABIEXTENSION}, empty unless "spe" is in
TUNE_FEATURES, so ppce500v2 hashes a different expression for the same
empty ABIEXTENSION and every <tool>-cross-powerpc differs from e500mc.
Found by yocto-check-layer test_machine_signatures (meta-freescale);
verified with bitbake -S on p1020rdb vs p2041rdb.

Signed-off-by: Luciano Dittgen <luciano.dittgen@ossystems.com.br>
---
 meta/conf/machine/include/powerpc/arch-powerpc.inc | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/meta/conf/machine/include/powerpc/arch-powerpc.inc b/meta/conf/machine/include/powerpc/arch-powerpc.inc
index 5644c2c1e5..70047d6e37 100644
--- a/meta/conf/machine/include/powerpc/arch-powerpc.inc
+++ b/meta/conf/machine/include/powerpc/arch-powerpc.inc
@@ -7,6 +7,9 @@  DEFAULTTUNE ?= "powerpc"
 
 TUNE_PKGARCH = "${TUNE_PKGARCH:tune-${DEFAULTTUNE}}"
 ABIEXTENSION ?= ""
+# Ignore how ABIEXTENSION is computed: the e500 tunes append
+# ${SPEABIEXTENSION}, which is empty unless "spe" is in TUNE_FEATURES.
+ABIEXTENSION[vardepvalue] = "${ABIEXTENSION}"
 
 # Endian
 TUNEVALID[bigendian] = "Use PowerPC Big Endian"