summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe
diff options
context:
space:
mode:
authorDeepesh Varatharajan <Deepesh.Varatharajan@windriver.com>2025-10-27 22:24:18 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-10-30 11:06:28 +0000
commit588bba19dc4ef775ba622834470a68a832bae4ba (patch)
treeb3e3e083b2f57c1d77bec3a9140d8f464827ee88 /meta/classes-recipe
parent4e38304d6cf1752fb42fba5fd2d21d0d9424331b (diff)
downloadpoky-588bba19dc4ef775ba622834470a68a832bae4ba.tar.gz
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. (From OE-Core rev: 1d4067329d0b84f94aaf2f63d282bb9c99ba5557) Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r--meta/classes-recipe/rust-target-config.bbclass2
1 files changed, 1 insertions, 1 deletions
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):
405 tspec['llvm-abiname'] = "lp64d" 405 tspec['llvm-abiname'] = "lp64d"
406 if "powerpc64le" in tspec['llvm-target']: 406 if "powerpc64le" in tspec['llvm-target']:
407 tspec['llvm-abiname'] = "elfv2" 407 tspec['llvm-abiname'] = "elfv2"
408 if "powerpc64" in tspec['llvm-target']: 408 elif "powerpc64" in tspec['llvm-target']:
409 tspec['llvm-abiname'] = "elfv1" 409 tspec['llvm-abiname'] = "elfv1"
410 tspec['vendor'] = "unknown" 410 tspec['vendor'] = "unknown"
411 tspec['target-family'] = "unix" 411 tspec['target-family'] = "unix"