From: Deepesh Varatharajan Date: Tue, 28 Oct 2025 05:24:18 +0000 (-0700) Subject: rust-target-config: Fix ABI override for powerpc64le target X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d4067329d0b84f94aaf2f63d282bb9c99ba5557;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git rust-target-config: Fix ABI override for powerpc64le target Ensure the powerpc64le check is exclusive by using `elif`, preventing the powerpc64 condition from overriding it. This keeps the ABI as elfv2 for PPC64LE and fixes related build failures. Signed-off-by: Deepesh Varatharajan Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/rust-target-config.bbclass b/meta/classes-recipe/rust-target-config.bbclass index 0c7e3c0090..9ce57843cf 100644 --- a/meta/classes-recipe/rust-target-config.bbclass +++ b/meta/classes-recipe/rust-target-config.bbclass @@ -405,7 +405,7 @@ def rust_gen_target(d, thing, wd, arch): tspec['llvm-abiname'] = "lp64d" if "powerpc64le" in tspec['llvm-target']: tspec['llvm-abiname'] = "elfv2" - if "powerpc64" in tspec['llvm-target']: + elif "powerpc64" in tspec['llvm-target']: tspec['llvm-abiname'] = "elfv1" tspec['vendor'] = "unknown" tspec['target-family'] = "unix"