mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 12:49:34 +02:00
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:
@@ -63,6 +63,8 @@ def rust_base_triple(d, thing):
|
|||||||
# This catches ARM targets and appends the necessary hard float bits
|
# This catches ARM targets and appends the necessary hard float bits
|
||||||
if os == "linux-gnueabi" or os == "linux-musleabi":
|
if os == "linux-gnueabi" or os == "linux-musleabi":
|
||||||
libc = bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', 'hf', '', d)
|
libc = bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', 'hf', '', d)
|
||||||
|
elif os == "linux-gnux32" or os == "linux-muslx32":
|
||||||
|
libc = ""
|
||||||
elif "musl" in os:
|
elif "musl" in os:
|
||||||
libc = "-musl"
|
libc = "-musl"
|
||||||
os = "linux"
|
os = "linux"
|
||||||
|
|||||||
Reference in New Issue
Block a user