openembedded-core.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rust-target-config: fix featrue for vfpv4f16
       [not found] <20240417181159.100583-1-wltu@...>
@ 2024-04-17 18:24 ` Willy Tu
  2024-04-17 19:02   ` [OE-core] " Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: Willy Tu @ 2024-04-17 18:24 UTC (permalink / raw)
  To: openembedded-core; +Cc: Willy Tu

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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [OE-core] [PATCH] rust-target-config: fix featrue for vfpv4f16
  2024-04-17 18:24 ` [PATCH] rust-target-config: fix featrue for vfpv4f16 Willy Tu
@ 2024-04-17 19:02   ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2024-04-17 19:02 UTC (permalink / raw)
  To: wltu; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1647 bytes --]

On Wed, Apr 17, 2024 at 11:25 AM Willy Tu via lists.openembedded.org <wltu=
google.com@lists.openembedded.org> wrote:

> Based on [1] which fixed the target for vfpv3d16. Adding the support for
> vfpv4d16 with the same set of changes.
>

Lgtm


> 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 --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:
>          f.append("+vfp4")
> +    elif 'vfpv4d16' in feat:
> +        f.append("+vfp4")
> +        f.append("-d32")
>      elif 'vfpv3' in feat:
>          f.append("+vfp3")
>      elif 'vfpv3d16' in feat:
> --
> 2.44.0.769.g3c40516874-goog
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#198473):
> https://lists.openembedded.org/g/openembedded-core/message/198473
> Mute This Topic: https://lists.openembedded.org/mt/105583303/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 2956 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-17 19:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20240417181159.100583-1-wltu@...>
2024-04-17 18:24 ` [PATCH] rust-target-config: fix featrue for vfpv4f16 Willy Tu
2024-04-17 19:02   ` [OE-core] " Khem Raj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).