Browse Source

ffmpeg: Add build overrides for some specific CPUs: Octeon, X86 and 24kf.

Octeon: Rename octeonplus to oction+
MIPS 24kf: Inline ASM fails to build (unknown reason)
X86: Configure finds NASM and assumes YASM if name explictly set (wrong switches)

Signed-off-by: Ted Hess <thess@kitschensync.net>
lilik-openwrt-22.03
Ted Hess 6 years ago
parent
commit
8b37cf3b06
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      multimedia/ffmpeg/Makefile

+ 9
- 1
multimedia/ffmpeg/Makefile View File

@ -374,6 +374,8 @@ endef
# Strip off FPU notation # Strip off FPU notation
REAL_CPU_TYPE:=$(firstword $(subst +, ,$(CONFIG_CPU_TYPE))) REAL_CPU_TYPE:=$(firstword $(subst +, ,$(CONFIG_CPU_TYPE)))
# Fixup cpu types recogized by ffmpeg configure
REAL_CPU_TYPE:=$(subst octeonplus,octeon+,$(REAL_CPU_TYPE))
FFMPEG_CONFIGURE:= \ FFMPEG_CONFIGURE:= \
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(FPIC)" \ CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(FPIC)" \
@ -422,6 +424,10 @@ FFMPEG_CONFIGURE+= \
else ifneq ($(findstring powerpc,$(CONFIG_ARCH)),) else ifneq ($(findstring powerpc,$(CONFIG_ARCH)),)
FFMPEG_CONFIGURE+= \ FFMPEG_CONFIGURE+= \
--disable-altivec --disable-altivec
# libavcode/mips/aacdec_mips.c build problem
else ifneq ($(findstring 24kf,$(CONFIG_CPU_TYPE)),)
FFMPEG_CONFIGURE+= \
--disable-inline-asm
endif endif
# selectively disable optimizations according to arch/cpu type # selectively disable optimizations according to arch/cpu type
@ -448,7 +454,9 @@ endif
ifneq ($(CONFIG_TARGET_x86),) ifneq ($(CONFIG_TARGET_x86),)
ifeq ($(CONFIG_NASM),y) ifeq ($(CONFIG_NASM),y)
FFMPEG_CONFIGURE += --yasmexe=nasm
# Set yasmexe to anything but YASM/NASM (ffmpeg configure will then find NASM correctly)
# Newer ffmpeg packages will use --enable-x86asm (with NASM default)
FFMPEG_CONFIGURE += --yasmexe=xyzzy
else else
FFMPEG_CONFIGURE += --disable-yasm FFMPEG_CONFIGURE += --disable-yasm
endif endif


Loading…
Cancel
Save