Skip to contentSkip to conversation

ffmpeg: fix neon support for aarch64

PATCH New Bernd Kuhls 2 participants 2 messages Apr 14, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ffmpeg: fix neon support for aarch64

ffmpeg ported arm 32-bit NEON code to aarch64 as hard dependency:
http://ffmpeg.org/pipermail/ffmpeg-devel/2016-November/202733.html

Buildroot option BR2_ARM_CPU_HAS_NEON handles only the 32bit case:
https://git.buildroot.net/buildroot/commit/?id=0976cd6cd64a128a2ac921e4f35f0e7cbe306692

For aarch64 we need to make sure to pass --enable-neon in order to prevent a link error, fixes

http://autobuild.buildroot.net/results/fa4/fa46003249664b1f97f6c18253c84cd3d6fb9cdb/

---
v2: fixed if-clause (Thomas)
v1 "fixed" the problem as well by omitting --disable-neon, ffmpeg then autodetected neon support ;)

 package/ffmpeg/ffmpeg.mk | 2 ++
 1 file changed, 2 insertions(+)
package/ffmpeg/ffmpeg.mk +2 -0
index 059f8320e..adc0f5d42 100644
@@ -432,6 +432,8 @@ FFMPEG_CONF_OPTS += --disable-vfp
 endif
 ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
 FFMPEG_CONF_OPTS += --enable-neon
+else ifeq ($(BR2_aarch64),y)
+FFMPEG_CONF_OPTS += --enable-neon
 else
 FFMPEG_CONF_OPTS += --disable-neon
 endif
Signature · 1 line
2.11.0
#1 lore raw

PATCH v2 1/1 ffmpeg: fix neon support for aarch64

Hello,

Quoted 9 lines · Bernd Kuhls

ffmpeg ported arm 32-bit NEON code to aarch64 as hard dependency:
http://ffmpeg.org/pipermail/ffmpeg-devel/2016-November/202733.html

Buildroot option BR2_ARM_CPU_HAS_NEON handles only the 32bit case:
https://git.buildroot.net/buildroot/commit/?id=0976cd6cd64a128a2ac921e4f35f0e7cbe306692

For aarch64 we need to make sure to pass --enable-neon in order to prevent a link error, fixes

Quoted 7 lines

http://autobuild.buildroot.net/results/fa4/fa46003249664b1f97f6c18253c84cd3d6fb9cdb/

---
v2: fixed if-clause (Thomas)
v1 "fixed" the problem as well by omitting --disable-neon, ffmpeg then autodetected neon support ;)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com