diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-12-01 16:09:42 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-02 17:18:57 +0000 |
commit | c55cb443d029e15da45802c9bf1d7e82a72bb15d (patch) | |
tree | 2062dd9c8ab343ee9a3e52273744358cce3b74e9 | |
parent | 9e7de16884759e02142d9594a36207cf08902c2a (diff) | |
download | poky-c55cb443d029e15da45802c9bf1d7e82a72bb15d.tar.gz |
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>
-rw-r--r-- | meta/classes-recipe/rust-common.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes-recipe/rust-common.bbclass b/meta/classes-recipe/rust-common.bbclass index 3d73a370ec..ae96d9c5b1 100644 --- a/meta/classes-recipe/rust-common.bbclass +++ b/meta/classes-recipe/rust-common.bbclass | |||
@@ -63,6 +63,8 @@ def rust_base_triple(d, thing): | |||
63 | # This catches ARM targets and appends the necessary hard float bits | 63 | # This catches ARM targets and appends the necessary hard float bits |
64 | if os == "linux-gnueabi" or os == "linux-musleabi": | 64 | if os == "linux-gnueabi" or os == "linux-musleabi": |
65 | libc = bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', 'hf', '', d) | 65 | libc = bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', 'hf', '', d) |
66 | elif os == "linux-gnux32" or os == "linux-muslx32": | ||
67 | libc = "" | ||
66 | elif "musl" in os: | 68 | elif "musl" in os: |
67 | libc = "-musl" | 69 | libc = "-musl" |
68 | os = "linux" | 70 | os = "linux" |