summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-03-04 10:55:36 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-03-15 14:35:56 +0100
commitc4fd769001f431226308e07c9751f823873f6cb8 (patch)
tree2b31f128d07e0a92c792282acbf86db8eff5ec61
parent7443e0010fbdb23be9d66f2a03fadcb69c78c4a3 (diff)
downloadptxdist-c4fd769001f431226308e07c9751f823873f6cb8.tar.gz
ptxdist-c4fd769001f431226308e07c9751f823873f6cb8.tar.xz
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 <s.hauer@pengutronix.de>
-rw-r--r--rules/ffmpeg.make46
1 files 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