Signed-off-by: Vinay Kumar <[email protected]>
---
 meta/classes/rust-common.bbclass | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta/classes/rust-common.bbclass b/meta/classes/rust-common.bbclass
index ff7b9da8f3..87fa397c90 100644
--- a/meta/classes/rust-common.bbclass
+++ b/meta/classes/rust-common.bbclass
@@ -82,9 +82,13 @@ def rust_base_triple(d, thing):
         os = "linux"
 
     # This catches ARM targets and appends the necessary hard float bits
+    # Also, this appends "abi64" in case of mips64 target. Since, rust mips64 
target triplet is "mips64-unknown-linux-gnuabi64"
     if os == "linux-gnueabi" or os == "linux-musleabi":
         libc = bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', 'hf', 
'', d)
-    return arch + vendor + '-' + os + libc
+    if d.getVar('TARGET_ARCH') == 'mips64':
+       return arch + vendor + '-' + os + libc + 'abi64'
+    else:
+       return arch + vendor + '-' + os + libc
 
 # Naming explanation
 # Yocto
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#150468): 
https://lists.openembedded.org/g/openembedded-core/message/150468
Mute This Topic: https://lists.openembedded.org/mt/82112830/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to