diff mbox series

rust-target-config: fix feature for vfpv4f16

Message ID 20240417210658.121294-1-wltu@google.com
State Accepted, archived
Commit 8fb2f9f60962339c877949f619e1e72d33bf3080
Headers show
Series rust-target-config: fix feature for vfpv4f16 | expand

Commit Message

Willy Tu April 17, 2024, 9:06 p.m. UTC
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

Signed-off-by: Willy Tu <wltu@google.com>
 meta/classes-recipe/rust-target-config.bbclass | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series


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):
     if 'vfpv4' in feat:
+    elif 'vfpv4d16' in feat:
+        f.append("+vfp4")
+        f.append("-d32")
     elif 'vfpv3' in feat:
     elif 'vfpv3d16' in feat: