]> code.ossystems Code Review - openembedded-core.git/commitdiff
rust-common.inc: Fix build failure with qemuppc64.
authorVinay Kumar <vinay.m.engg@gmail.com>
Fri, 13 Aug 2021 15:19:47 +0000 (08:19 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 26 Aug 2021 21:09:24 +0000 (22:09 +0100)
The glibc build of "rust-hello-world" throws error in libstd-rs package.
   error: unrecognized arch "powerpc64le" in target specification

The same got fixed by changing the arch to "powerpc64".

Signed-off-by: Vinay Kumar <vinay.m.engg@gmail.com>
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/rust/rust-common.inc

index 350517c7231973c4185ffb3326d91d4e9e67a2b5..f57415281524bae1efc6673d528fb6910d74253e 100644 (file)
@@ -248,6 +248,8 @@ def arch_to_rust_target_arch(arch):
         return "mips64"
     elif arch == "armv7":
         return "arm"
+    elif arch == "powerpc64le":
+        return "powerpc64"
     else:
         return arch