[meta-multimedia][PATCH] aom: Disable neon when not present in TUNE_FEATURES


Khem Raj
 

Some older arm32 cores are without neon units e.g. armv6 (rpi0 fame)
therefore check for neon feature before enabling it

Signed-off-by: Khem Raj <raj.khem@...>
Cc: Andreas Müller <schnitzeltony@...>
---
meta-multimedia/recipes-multimedia/aom/aom_2.0.0.bb | 2 ++
1 file changed, 2 insertions(+)

diff --git a/meta-multimedia/recipes-multimedia/aom/aom_2.0.0.bb b/meta-multimedia/recipes-multimedia/aom/aom_2.0.0.bb
index c5ad1f8062..41ade08791 100644
--- a/meta-multimedia/recipes-multimedia/aom/aom_2.0.0.bb
+++ b/meta-multimedia/recipes-multimedia/aom/aom_2.0.0.bb
@@ -18,3 +18,5 @@ DEPENDS = " yasm-native"
EXTRA_OECMAKE = " -DBUILD_SHARED_LIBS=1 -DENABLE_TESTS=0 \
-DPERL_EXECUTABLE=${HOSTTOOLS_DIR}/perl \
"
+
+EXTRA_OECMAKE += "${@bb.utils.contains("TUNE_FEATURES","neon","-DENABLE_NEON=ON","-DENABLE_NEON=OFF",d)}"
--
2.30.1