From c4fd769001f431226308e07c9751f823873f6cb8 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 4 Mar 2011 10:55:36 +0100 Subject: ffmpeg: do not dispatch cpu type depending on SoC types The dispatcher used arm926ejs for all SoCs except for OMAP and PXA. Not all PXAs have iwmmxt, so replace this with testing for the iwmmxt switch. Not all OMAPs have cortex-A8 processors, so replace this with a fallback to armv5 for now. Signed-off-by: Sascha Hauer --- rules/ffmpeg.make | 46 ++-------------------------------------------- 1 file changed, 2 insertions(+), 44 deletions(-) diff --git a/rules/ffmpeg.make b/rules/ffmpeg.make index 2a844f405..785045258 100644 --- a/rules/ffmpeg.make +++ b/rules/ffmpeg.make @@ -117,62 +117,20 @@ FFMPEG_AUTOCONF += \ endif ifdef PTXCONF_ARCH_ARM - ifdef PTXCONF_ARCH_ARM_NETX - FFMPEG_AUTOCONF += \ - --arch=arm \ - --cpu=arm926ej-s \ - --disable-altivec \ - --disable-mmx \ - --disable-iwmmxt - else - ifdef PTXCONF_ARCH_ARM_PXA - # FIXME not all xscales are iwmmxt + ifdef PTXCONF_ARCH_ARM_IWMMXT FFMPEG_AUTOCONF += \ --arch=arm \ --cpu=iwmmxt \ --disable-altivec \ --disable-mmx else - ifdef PTXCONF_ARCH_ARM_AT91SAM926X - FFMPEG_AUTOCONF += \ - --arch=arm \ - --cpu=arm926ej-s \ - --disable-altivec \ - --disable-mmx \ - --disable-iwmmxt - else - ifdef PTXCONF_ARCH_ARM_IMX - FFMPEG_AUTOCONF += \ - --arch=arm \ - --cpu=arm926ej-s \ - --disable-altivec \ - --disable-mmx \ - --disable-iwmmxt - else - ifdef PTXCONF_ARCH_ARM_LPC32XX +# v5 fallback. Will not run on v4. FFMPEG_AUTOCONF += \ --arch=arm \ --cpu=arm926ej-s \ --disable-altivec \ --disable-mmx \ --disable-iwmmxt - else - ifdef PTXCONF_ARCH_ARM_OMAP - FFMPEG_AUTOCONF += \ - --arch=arm \ - --cpu=cortex-a8 \ - --disable-altivec \ - --disable-mmx \ - --disable-iwmmxt - else - ifdef PTXCONF_FFMPEG - $(warning Please define the config options for this CPU type!) - endif - endif - endif - endif - endif - endif endif endif -- cgit v1.2.3