ffmpeg: Add mips related configure options to fix build errors
authorBernd Kuhls <berndkuhls@hotmail.com>
Mon, 13 Jan 2014 21:23:06 +0000 (22:23 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 14 Jan 2014 21:44:17 +0000 (22:44 +0100)
http://autobuild.buildroot.net/results/aa5/aa5cb447342af9995d8f198eb0a151fe6e3d5c19//
http://autobuild.buildroot.net/results/355/355f56f6b466521e2c4c71f69b06a0ca2a56949b//

Signed-off-by: Bernd Kuhls <berndkuhls@hotmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/ffmpeg/ffmpeg.mk

index 35c03a39010d76060429a54b92fbf727a787e7c4..df8cb66e2eae90bc9e61fc764888cb85ec045d56 100644 (file)
@@ -281,6 +281,32 @@ ifeq ($(BR2_ARM_CPU_HAS_NEON),y)
 FFMPEG_CONF_OPT += --enable-neon
 endif
 
+ifeq ($(BR2_MIPS_SOFT_FLOAT),y)
+FFMPEG_CONF_OPT += \
+       --disable-mipsfpu
+else
+FFMPEG_CONF_OPT += \
+       --enable-mipsfpu
+endif
+
+ifeq ($(BR2_mips_32r2),y)
+FFMPEG_CONF_OPT += \
+       --enable-mips32r2
+else
+FFMPEG_CONF_OPT += \
+       --disable-mips32r2
+endif
+
+ifeq ($(BR2_mips_64r2),y)
+FFMPEG_CONF_OPT += \
+       --enable-mipsdspr1 \
+       --enable-mipsdspr2
+else
+FFMPEG_CONF_OPT += \
+       --disable-mipsdspr1 \
+       --disable-mipsdspr2
+endif
+
 # Set powerpc altivec appropriately
 ifeq ($(BR2_powerpc),y)
 ifeq ($(BR2_powerpc_7400)$(BR2_powerpc_7450)$(BR2_powerpc_970),y)