From: Bernd Kuhls Date: Thu, 2 Jan 2014 17:59:45 +0000 (+0100) Subject: ffmpeg: Add sse4 related options BR2_X86_CPU_HAS_SSE4 / BR2_X86_CPU_HAS_SSE4 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0e8e3c2879c55ee9552a6f4161ea2d28aff62543;p=buildroot.git 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 --- 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