Skip to contentSkip to conversation

tools-profile: disable valgrind for powerpc soft-float

PATCH New [email protected] 1 participant 2 messages Jun 20, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 tools-profile: disable valgrind for powerpc soft-float

Since valgrind does not build for powerpc soft-float, disable it from the tools-profile packagegroup so that it can still be enabled for such architectures (but without valgrind of course).

---
 .../packagegroups/packagegroup-core-tools-profile.bb             | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-core/packagegroups/packagegroup-core-tools-profile.bb +1 -0
index ac180b542a..8aed1e8458 100644
@@ -61,6 +61,7 @@ VALGRIND_armv6 = ""
 VALGRIND_armeb = ""
 VALGRIND_aarch64 = ""
 VALGRIND_riscv64 = ""
+VALGRIND_powerpc = "${@bb.utils.contains('TARGET_FPU', 'soft', '', 'valgrind', d)}"
 VALGRIND_linux-gnux32 = ""
 VALGRIND_linux-gnun32 = ""
 
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 valgrind: disable it for powerpc soft-float

valgrind doesn't build for powerpc soft-float. It is thus disabled for such architectures.

---
 meta/recipes-devtools/valgrind/valgrind_3.16.0.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-devtools/valgrind/valgrind_3.16.0.bb +3 -0
index 5402f39a5b..4b6f5949dd 100644
@@ -52,6 +52,9 @@ COMPATIBLE_HOST_armv4 = 'null'
 COMPATIBLE_HOST_armv5 = 'null'
 COMPATIBLE_HOST_armv6 = 'null'
 
+# valgrind fails with powerpc soft-float
+COMPATIBLE_HOST_powerpc = "${@bb.utils.contains('TARGET_FPU', 'soft', 'null', '.*-linux', d)}"
+
 # X32 isn't supported by valgrind at this time
 COMPATIBLE_HOST_linux-gnux32 = 'null'
 COMPATIBLE_HOST_linux-muslx32 = 'null'
Signature · 1 line
2.25.1