[vlc-devel] [PATCH] contrib: aom: use armv7 for all targets whose ARCH is "arm"

Steve Lhomme robux4 at ycbcr.xyz
Wed Jul 31 12:50:07 CEST 2019


That includes Linux targets, in addition to Windows, iOS and Android.
---
 contrib/src/aom/rules.mak | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/contrib/src/aom/rules.mak b/contrib/src/aom/rules.mak
index 18d29f9478..aa990cecd6 100644
--- a/contrib/src/aom/rules.mak
+++ b/contrib/src/aom/rules.mak
@@ -63,7 +63,6 @@ AOM_CONF += -DCONFIG_RUNTIME_CPU_DETECT=0
 endif
 ifeq ($(ARCH),arm)
 # armv7, not just plain arm
-AOM_CONF += -DAOM_TARGET_CPU=armv7
 AOM_CONF += -DAOM_ADS2GAS_REQUIRED=1 -DAOM_ADS2GAS=../build/make/ads2gas.pl -DAOM_ADS2GAS_OPTS="-thumb;-noelf" -DAOM_GAS_EXT=S
 endif
 endif
@@ -73,22 +72,20 @@ ifneq ($(filter arm aarch64, $(ARCH)),)
 # These targets don't have runtime cpu detection.
 AOM_CONF += -DCONFIG_RUNTIME_CPU_DETECT=0
 endif
-ifeq ($(ARCH),arm)
-# armv7, not just plain arm
-AOM_CONF += -DAOM_TARGET_CPU=armv7
-endif
 endif
 
 # Force cpu detection
 ifdef HAVE_ANDROID
-ifeq ($(ARCH),arm)
-AOM_CONF += -DAOM_TARGET_CPU=armv7
-endif
 ifeq ($(ARCH),aarch64)
 AOM_CONF += -DAOM_TARGET_CPU=arm64
 endif
 endif
 
+ifeq ($(ARCH),arm)
+# armv7, not just plain arm
+AOM_CONF += -DAOM_TARGET_CPU=armv7
+endif
+
 # libaom doesn't allow in-tree builds
 .aom: aom toolchain.cmake
 	cd $< && mkdir -p aom_build
-- 
2.17.1



More information about the vlc-devel mailing list