From 0971f47fca9ed8414ba0adf0749b22401a8147b0 Mon Sep 17 00:00:00 2001 From: Steven Walter Date: Thu, 8 Sep 2022 10:39:15 -0400 Subject: [PATCH] rust-target-config.bbclass: +v7 implies +neon If we don't support neon, then (at least on armv7) we must explicitly throw -neon. Additionally, this must occur after the "+v7" to have an effect. --- meta/classes-recipe/rust-target-config.bbclass | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/meta/classes-recipe/rust-target-config.bbclass b/meta/classes-recipe/rust-target-config.bbclass index 9e1d81bf5c4..a3d0cbf5bc0 100644 --- a/meta/classes-recipe/rust-target-config.bbclass +++ b/meta/classes-recipe/rust-target-config.bbclass @@ -29,9 +29,6 @@ def llvm_features_from_tune(d): if 'vfpv2' in feat or 'vfp' in feat: f.append("+vfp2") - if 'neon' in feat: - f.append("+neon") - if 'mips32' in feat: f.append("+mips32") @@ -41,6 +38,11 @@ def llvm_features_from_tune(d): if target_is_armv7(d): f.append('+v7') + if 'neon' in feat: + f.append("+neon") + else: + f.append("-neon") + if ('armv6' in mach_overrides) or ('armv6' in feat): f.append("+v6") if 'armv5te' in feat: