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 <[email protected]>
---
 rules/ffmpeg.make |   46 ++--------------------------------------------
 1 files changed, 2 insertions(+), 44 deletions(-)

diff --git a/rules/ffmpeg.make b/rules/ffmpeg.make
index 2a844f4..7850452 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
 
-- 
1.7.2.3


-- 
ptxdist mailing list
[email protected]

Reply via email to