diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-25 11:38:01 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-31 10:40:07 +0100 |
commit | cfd49050a517612c1df8688d74cf9f9cbf771c0e (patch) | |
tree | 7ea22366b443391b5a2471c431855b93761ce934 | |
parent | 858389a9926fad03ece967c3a6b2f452ad797367 (diff) | |
download | poky-cfd49050a517612c1df8688d74cf9f9cbf771c0e.tar.gz |
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>
-rw-r--r-- | meta/classes-recipe/rust-target-config.bbclass | 5 |
1 files 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): | |||
272 | trans['x86-64'] = "x86-64" | 272 | trans['x86-64'] = "x86-64" |
273 | trans['i686'] = "i686" | 273 | trans['i686'] = "i686" |
274 | trans['i586'] = "i586" | 274 | trans['i586'] = "i586" |
275 | trans['powerpc'] = "powerpc" | ||
276 | trans['mips64'] = "mips64" | 275 | trans['mips64'] = "mips64" |
277 | trans['mips64el'] = "mips64" | 276 | trans['mips64el'] = "mips64" |
278 | trans['riscv64'] = "generic-rv64" | 277 | trans['riscv64'] = "generic-rv64" |
279 | trans['riscv32'] = "generic-rv32" | 278 | trans['riscv32'] = "generic-rv32" |
280 | 279 | ||
281 | if target in ["mips", "mipsel"]: | 280 | if target in ["mips", "mipsel", "powerpc"]: |
282 | feat = frozenset(d.getVar('TUNE_FEATURES').split()) | 281 | feat = frozenset(d.getVar('TUNE_FEATURES').split()) |
283 | if "mips32r2" in feat: | 282 | if "mips32r2" in feat: |
284 | trans['mipsel'] = "mips32r2" | 283 | trans['mipsel'] = "mips32r2" |
@@ -286,6 +285,8 @@ def llvm_cpu(d): | |||
286 | elif "mips32" in feat: | 285 | elif "mips32" in feat: |
287 | trans['mipsel'] = "mips32" | 286 | trans['mipsel'] = "mips32" |
288 | trans['mips'] = "mips32" | 287 | trans['mips'] = "mips32" |
288 | elif "ppc7400" in feat: | ||
289 | trans['powerpc'] = "7400" | ||
289 | 290 | ||
290 | try: | 291 | try: |
291 | return trans[cpu] | 292 | return trans[cpu] |