From: Rosen Penev Date: Sun, 16 Feb 2020 06:24:21 +0000 (-0800) Subject: ffmpeg: disable x86 asm for old CPU types X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bd24f9bb34d5ee26df16316793874a69626070b8;p=feed%2Fpackages.git ffmpeg: disable x86 asm for old CPU types This is a workaround for NASM being totally broken. I have two patches, one for master and another for 19.07 that upstream is not merging. https://patchwork.ozlabs.org/patch/1221696/ https://patchwork.ozlabs.org/patch/1221697/ Signed-off-by: Rosen Penev (cherry picked from commit 013162d07968738bf837370a91536d35b8f780e7) --- diff --git a/multimedia/ffmpeg/Config.in b/multimedia/ffmpeg/Config.in index 766a4b7fad..3a405c34ed 100644 --- a/multimedia/ffmpeg/Config.in +++ b/multimedia/ffmpeg/Config.in @@ -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 comment "Build Licensing" diff --git a/multimedia/ffmpeg/Makefile b/multimedia/ffmpeg/Makefile index bf7d146883..40d9aa3e01 100644 --- a/multimedia/ffmpeg/Makefile +++ b/multimedia/ffmpeg/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ffmpeg PKG_VERSION:=3.4.7 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://ffmpeg.org/releases/ @@ -484,13 +484,11 @@ ifeq ($(ARCH),x86_64) FFMPEG_CONFIGURE+= --enable-lto endif -ifneq ($(CONFIG_TARGET_x86),) -ifeq ($(CONFIG_NASM),y) +ifeq ($(CONFIG_FFMPEG_X86ASM),y) FFMPEG_CONFIGURE += --enable-x86asm else FFMPEG_CONFIGURE += --disable-x86asm endif -endif ifeq ($(BUILD_VARIANT),full)