]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
nettle: avoid neon on unsupported machines
authorBenjamin Bara <benjamin.bara@skidata.com>
Mon, 4 Sep 2023 08:48:27 +0000 (10:48 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Sep 2023 19:14:01 +0000 (20:14 +0100)
Disable neon if the machine does not support it. --enable-fat also
includes the neon assembler code, therefore also disable it.

Signed-off-by: Benjamin Bara <benjamin.bara@skidata.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/nettle/nettle_3.9.1.bb

index 6bb76a621719e2ad36c3b5be6e20bf149e948eaf..396708cf8736603c33f3fab212b922b6260039fe 100644 (file)
@@ -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
 }