ffmpeg: disable altivec optimizations for PPC CPUs lacking it
authorMike Williams <mike@mikebwilliams.com>
Thu, 12 May 2011 20:12:40 +0000 (16:12 -0400)
committerPeter Korsgaard <jacmet@sunsite.dk>
Fri, 13 May 2011 10:26:56 +0000 (12:26 +0200)
[Peter: use positive logic]
Signed-off-by: Mike Williams <mike@mikebwilliams.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/multimedia/ffmpeg/ffmpeg.mk

index 1e8f09a302cacab41c7f4466ee4bc714f08a3108..1c6e734d14602f0ed8e94db4c121514da8685484 100644 (file)
@@ -142,6 +142,14 @@ endif
 ifeq ($(BR2_cortex_a8),y)
 FFMPEG_CONF_OPT += --enable-neon
 endif
+# Set powerpc altivec appropriately
+ifeq ($(BR2_powerpc),y)
+ifeq ($(BR2_powerpc_7400)$(BR2_powerpc_7450)$(BR2_powerpc_970),y)
+FFMPEG_CONF_OPT -= --enable-altivec
+else
+FFMPEG_CONF_OPT += --disable-altivec
+endif
+endif
 
 FFMPEG_CONF_OPT += $(call qstrip,$(BR2_PACKAGE_FFMPEG_EXTRACONF))