From: Richard Purdie Date: Thu, 25 Aug 2022 10:38:01 +0000 (+0100) Subject: rust-target-config: Fix qemuppc target cpu option X-Git-Tag: 2022-10~266 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0371e429d9e127983ddfaec366ce1c38c99158e4;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git 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. Signed-off-by: Richard Purdie --- diff --git a/meta/classes-recipe/rust-target-config.bbclass b/meta/classes-recipe/rust-target-config.bbclass index e30eaa1da30..9e1d81bf5c4 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]