Skip to contentSkip to conversation

aom: Disable neon when not present in TUNE_FEATURES

PATCH New Khem Raj 1 participant 1 message Feb 18, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 aom: Disable neon when not present in TUNE_FEATURES

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

Cc Andreas Müller <[email protected]>
---
 meta-multimedia/recipes-multimedia/aom/aom_2.0.0.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-multimedia/recipes-multimedia/aom/aom_2.0.0.bb +2 -0
index c5ad1f8062..41ade08791 100644
@@ -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)}"
Signature · 1 line
2.30.1