Skip to contentSkip to conversation

nettle: avoid neon on unsupported machines

PATCH New Benjamin Bara 1 participant 1 message Sep 4, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nettle: avoid neon on unsupported machines

From: Benjamin Bara <[email protected]>

Disable neon if the machine does not support it. --enable-fat also includes the neon assembler code, therefore also disable it.

---
 meta/recipes-support/nettle/nettle_3.9.1.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-support/nettle/nettle_3.9.1.bb +3 -0
index 6bb76a6217..396708cf87 100644
@@ -30,6 +30,9 @@ EXTRA_AUTORECONF += "--exclude=aclocal"
 
 EXTRA_OECONF = "--disable-openssl"
 
+EXTRA_OECONF:append:armv7a = "${@bb.utils.contains("TUNE_FEATURES","neon",""," --disable-arm-neon --disable-fat",d)}"
+EXTRA_OECONF:append:armv7ve = "${@bb.utils.contains("TUNE_FEATURES","neon",""," --disable-arm-neon --disable-fat",d)}"
+
 do_compile_ptest() {
         oe_runmake buildtest
 }
Signature · 1 line
2.34.1