From cfd49050a517612c1df8688d74cf9f9cbf771c0e Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 25 Aug 2022 11:38:01 +0100 Subject: rust-target-config: Fix qemuppc target cpu option We see a lot of warnings about incorrect processor types on qemuppc, drowning out anything else. Fix the option. (From OE-Core rev: 0371e429d9e127983ddfaec366ce1c38c99158e4) Signed-off-by: Richard Purdie --- meta/classes-recipe/rust-target-config.bbclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meta/classes-recipe/rust-target-config.bbclass b/meta/classes-recipe/rust-target-config.bbclass index e30eaa1da3..9e1d81bf5c 100644 --- a/meta/classes-recipe/rust-target-config.bbclass +++ b/meta/classes-recipe/rust-target-config.bbclass @@ -272,13 +272,12 @@ def llvm_cpu(d): trans['x86-64'] = "x86-64" trans['i686'] = "i686" trans['i586'] = "i586" - trans['powerpc'] = "powerpc" trans['mips64'] = "mips64" trans['mips64el'] = "mips64" trans['riscv64'] = "generic-rv64" trans['riscv32'] = "generic-rv32" - if target in ["mips", "mipsel"]: + if target in ["mips", "mipsel", "powerpc"]: feat = frozenset(d.getVar('TUNE_FEATURES').split()) if "mips32r2" in feat: trans['mipsel'] = "mips32r2" @@ -286,6 +285,8 @@ def llvm_cpu(d): elif "mips32" in feat: trans['mipsel'] = "mips32" trans['mips'] = "mips32" + elif "ppc7400" in feat: + trans['powerpc'] = "7400" try: return trans[cpu] -- cgit v1.2.3-54-g00ecf