Merge pull request #11357 from neheb/ffm

ffmpeg: disable x86 asm for old CPU types
This commit is contained in:
Rosen Penev
2020-02-16 19:48:57 -08:00
committed by GitHub
2 changed files with 10 additions and 4 deletions
+8
View File
@@ -1,3 +1,11 @@
config FFMPEG_X86ASM
bool "Compile x86 ASM"
depends on (x86_64 || (i386 && !(TARGET_x86_geode || TARGET_x86_legacy)))
help
This compiles ffmpeg with x86 assembly optimizations. This option is needed as NASM is
totally broken with CPU_TYPE=pentium.
default y
if PACKAGE_libffmpeg-custom if PACKAGE_libffmpeg-custom
comment "Build Licensing" comment "Build Licensing"
+2 -4
View File
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ffmpeg PKG_NAME:=ffmpeg
PKG_VERSION:=3.4.7 PKG_VERSION:=3.4.7
PKG_RELEASE:=1 PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://ffmpeg.org/releases/ PKG_SOURCE_URL:=https://ffmpeg.org/releases/
@@ -482,13 +482,11 @@ ifeq ($(ARCH),x86_64)
FFMPEG_CONFIGURE+= --enable-lto FFMPEG_CONFIGURE+= --enable-lto
endif endif
ifneq ($(CONFIG_TARGET_x86),) ifeq ($(CONFIG_FFMPEG_X86ASM),y)
ifeq ($(CONFIG_NASM),y)
FFMPEG_CONFIGURE += --enable-x86asm FFMPEG_CONFIGURE += --enable-x86asm
else else
FFMPEG_CONFIGURE += --disable-x86asm FFMPEG_CONFIGURE += --disable-x86asm
endif endif
endif
ifeq ($(BUILD_VARIANT),full) ifeq ($(BUILD_VARIANT),full)