rust-common.bbclass: Define rust arch for x32 platforms

(From OE-Core rev: 02d6c89ca2e72e95d093282f5626e607060da588)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj
2023-12-01 16:09:42 -08:00
committed by Richard Purdie
parent 9e7de16884
commit c55cb443d0

View File

@@ -63,6 +63,8 @@ def rust_base_triple(d, thing):
# This catches ARM targets and appends the necessary hard float bits
if os == "linux-gnueabi" or os == "linux-musleabi":
libc = bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', 'hf', '', d)
elif os == "linux-gnux32" or os == "linux-muslx32":
libc = ""
elif "musl" in os:
libc = "-musl"
os = "linux"