summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilly Tu <wltu@google.com>2024-04-17 21:06:58 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-04-25 10:19:28 +0100
commit64d28fb55db01477f45ee7c442a574f88724571f (patch)
tree6fd0b926774c995dbaee833304e35d8dd31f2016
parentbbb21c1b0c2f32332928ac43c396f76c6e77bc68 (diff)
downloadpoky-64d28fb55db01477f45ee7c442a574f88724571f.tar.gz
rust-target-config: fix feature for vfpv4f16
Based on [1] which fixed the target for vfpv3d16. Adding the support for vfpv4d16 with the same set of changes. Tested with running tokio which hit coredump before the change. It worked fine after this change. [1] https://lists.openembedded.org/g/openembedded-core/message/185702 (From OE-Core rev: 8fb2f9f60962339c877949f619e1e72d33bf3080) Signed-off-by: Willy Tu <wltu@google.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes-recipe/rust-target-config.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes-recipe/rust-target-config.bbclass b/meta/classes-recipe/rust-target-config.bbclass
index 926b0630b1..330ad8a3f5 100644
--- a/meta/classes-recipe/rust-target-config.bbclass
+++ b/meta/classes-recipe/rust-target-config.bbclass
@@ -21,6 +21,9 @@ def llvm_features_from_tune(d):
21 21
22 if 'vfpv4' in feat: 22 if 'vfpv4' in feat:
23 f.append("+vfp4") 23 f.append("+vfp4")
24 elif 'vfpv4d16' in feat:
25 f.append("+vfp4")
26 f.append("-d32")
24 elif 'vfpv3' in feat: 27 elif 'vfpv3' in feat:
25 f.append("+vfp3") 28 f.append("+vfp3")
26 elif 'vfpv3d16' in feat: 29 elif 'vfpv3d16' in feat: