diff options
author | Mike Williams <mike@mikebwilliams.com> | 2011-05-12 16:12:40 -0400 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2011-05-13 12:26:56 +0200 |
commit | 29a07684527d922d3896b70a832f16c6c2b763a3 (patch) | |
tree | 3a02b9e9e8408adfa51627d0304da9ad0146962a | |
parent | 7fec8e8b753a77f4635dfa74819bb75354b90ee1 (diff) |
ffmpeg: disable altivec optimizations for PPC CPUs lacking it
[Peter: use positive logic]
Signed-off-by: Mike Williams <mike@mikebwilliams.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r-- | package/multimedia/ffmpeg/ffmpeg.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/package/multimedia/ffmpeg/ffmpeg.mk b/package/multimedia/ffmpeg/ffmpeg.mk index 1e8f09a30..1c6e734d1 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)) |