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 <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2022-08-25 11:38:01 +01:00
parent 858389a992
commit cfd49050a5

View File

@ -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]