ffmpeg: Add sse4 related options BR2_X86_CPU_HAS_SSE4 / BR2_X86_CPU_HAS_SSE4
authorBernd Kuhls <berndkuhls@hotmail.com>
Thu, 2 Jan 2014 17:59:45 +0000 (18:59 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 13 Jan 2014 21:28:42 +0000 (22:28 +0100)
Signed-off-by: Bernd Kuhls <berndkuhls@hotmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
arch/Config.in.x86
package/ffmpeg/ffmpeg.mk

index ce306056b88bdcd69baf8fb0309a58c5390a356c..15d5c169405dad914a4ab9fb447e976d9c5174d4 100644 (file)
@@ -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"
index e60ced740b6a28d0467236526a53471a6e8aec53..35c03a39010d76060429a54b92fbf727a787e7c4 100644 (file)
@@ -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