From 0e8e3c2879c55ee9552a6f4161ea2d28aff62543 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Thu, 2 Jan 2014 18:59:45 +0100 Subject: [PATCH] ffmpeg: Add sse4 related options BR2_X86_CPU_HAS_SSE4 / BR2_X86_CPU_HAS_SSE4 Signed-off-by: Bernd Kuhls Signed-off-by: Peter Korsgaard --- arch/Config.in.x86 | 4 ++++ package/ffmpeg/ffmpeg.mk | 12 ++++++++++++ 2 files changed, 16 insertions(+) diff --git a/arch/Config.in.x86 b/arch/Config.in.x86 index ce306056b8..15d5c16940 100644 --- a/arch/Config.in.x86 +++ b/arch/Config.in.x86 @@ -9,6 +9,10 @@ config BR2_X86_CPU_HAS_SSE3 bool config BR2_X86_CPU_HAS_SSSE3 bool +config BR2_X86_CPU_HAS_SSE4 + bool +config BR2_X86_CPU_HAS_SSE42 + bool choice prompt "Target Architecture Variant" diff --git a/package/ffmpeg/ffmpeg.mk b/package/ffmpeg/ffmpeg.mk index e60ced740b..35c03a3901 100644 --- a/package/ffmpeg/ffmpeg.mk +++ b/package/ffmpeg/ffmpeg.mk @@ -249,6 +249,18 @@ else FFMPEG_CONF_OPT += --disable-ssse3 endif +ifeq ($(BR2_X86_CPU_HAS_SSE4),y) +FFMPEG_CONF_OPT += --enable-sse4 +else +FFMPEG_CONF_OPT += --disable-sse4 +endif + +ifeq ($(BR2_X86_CPU_HAS_SSE42),y) +FFMPEG_CONF_OPT += --enable-sse42 +else +FFMPEG_CONF_OPT += --disable-sse42 +endif + # Explicitly disable everything that doesn't match for ARM # FFMPEG "autodetects" by compiling an extended instruction via AS # This works on compilers that aren't built for generic by default -- 2.30.2