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>
This commit is contained in:
Mike Williams 2011-05-12 16:12:40 -04:00 committed by Peter Korsgaard
parent 7fec8e8b75
commit 29a0768452

View 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))