From 29a07684527d922d3896b70a832f16c6c2b763a3 Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Thu, 12 May 2011 16:12:40 -0400 Subject: [PATCH] ffmpeg: disable altivec optimizations for PPC CPUs lacking it [Peter: use positive logic] Signed-off-by: Mike Williams Signed-off-by: Peter Korsgaard --- package/multimedia/ffmpeg/ffmpeg.mk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package/multimedia/ffmpeg/ffmpeg.mk b/package/multimedia/ffmpeg/ffmpeg.mk index 1e8f09a302..1c6e734d14 100644 --- a/package/multimedia/ffmpeg/ffmpeg.mk +++ b/package/multimedia/ffmpeg/ffmpeg.mk @@ -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)) -- 2.30.2