diff options
| author | Peter Marko <peter.marko@siemens.com> | 2025-08-21 14:26:55 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-08-28 10:47:09 +0100 |
| commit | 87a25268ba7ce9d76c511e2173c103984fa85298 (patch) | |
| tree | 1a1cd1788d151fe7caa13bddd7a7688dd01adc1c | |
| parent | d53b664bc249874e7cd3cbdbcf2fce879ced48f0 (diff) | |
| download | poky-87a25268ba7ce9d76c511e2173c103984fa85298.tar.gz | |
rust: handle softfp fpu
With TARGET_FPU set to "softfp" stdlib-rs fails with:
error: Error loading target specification: ARM targets must specify their float ABI. Run `rustc --print target-list` for a list of built-in targets
This fpu type is set for example for arm in file
meta/conf/machine/include/arm/feature-arm-vfp.inc
when TUNE_FEATURES do not contain "callconvention-hard",
e.g. when using tune
DEFAULTTUNE = "cortexa8"
(From OE-Core rev: 4d50135cb902037380915966ecc97399d32e9f74)
Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes-recipe/rust-target-config.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/rust-target-config.bbclass b/meta/classes-recipe/rust-target-config.bbclass index 0df6f0904c..8ab5317c3f 100644 --- a/meta/classes-recipe/rust-target-config.bbclass +++ b/meta/classes-recipe/rust-target-config.bbclass | |||
| @@ -409,7 +409,7 @@ def rust_gen_target(d, thing, wd, arch): | |||
| 409 | if features != "": | 409 | if features != "": |
| 410 | tspec['features'] = features | 410 | tspec['features'] = features |
| 411 | fpu = d.getVar('TARGET_FPU') | 411 | fpu = d.getVar('TARGET_FPU') |
| 412 | if fpu == "soft": | 412 | if fpu in ["soft", "softfp"]: |
| 413 | tspec['llvm-floatabi'] = "soft" | 413 | tspec['llvm-floatabi'] = "soft" |
| 414 | elif fpu == "hard": | 414 | elif fpu == "hard": |
| 415 | tspec['llvm-floatabi'] = "hard" | 415 | tspec['llvm-floatabi'] = "hard" |
