From: Mike Williams Date: Thu, 12 May 2011 20:12:40 +0000 (-0400) Subject: ffmpeg: disable altivec optimizations for PPC CPUs lacking it X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=29a07684527d922d3896b70a832f16c6c2b763a3;p=buildroot.git ffmpeg: disable altivec optimizations for PPC CPUs lacking it [Peter: use positive logic] Signed-off-by: Mike Williams Signed-off-by: Peter Korsgaard --- 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))