[Ffmpeg-devel] [patch] support for unknown CPUs
Sam Hocevar
sam
Thu Sep 22 15:53:33 CEST 2005
The attached patch tells configure about hppa, s390, mipsel, m68k and
ia64 architectures.
The additional information is currently unused in the code, but
due to gcc issues I need for instance to build the m68k binaries with
-O2 instead of -O3. I am not sure if that should be fixed in the CVS,
though.
--
Sam.
-------------- next part --------------
--- ffmpeg-0.cvs20050918.orig/configure
+++ ffmpeg-0.cvs20050918/configure
@@ -139,7 +139,7 @@
"Power Macintosh"|ppc)
cpu="powerpc"
;;
- mips)
+ mips|mipsel)
cpu="mips"
;;
sun4u|sparc64)
@@ -151,6 +151,18 @@
sh4)
cpu="sh4"
;;
+ parisc|parisc64)
+ cpu="parisc"
+ ;;
+ s390|s390x)
+ cpu="s390"
+ ;;
+ m68k)
+ cpu="m68k"
+ ;;
+ ia64)
+ cpu="ia64"
+ ;;
*)
cpu="unknown"
;;
@@ -1302,6 +1317,18 @@
elif test "$cpu" = "sh4" ; then
echo "TARGET_ARCH_SH4=yes" >> config.mak
echo "#define ARCH_SH4 1" >> $TMPH
+elif test "$cpu" = "parisc" ; then
+ echo "TARGET_ARCH_PARISC=yes" >> config.mak
+ echo "#define ARCH_PARISC 1" >> $TMPH
+elif test "$cpu" = "s390" ; then
+ echo "TARGET_ARCH_S390=yes" >> config.mak
+ echo "#define ARCH_S390 1" >> $TMPH
+elif test "$cpu" = "m68k" ; then
+ echo "TARGET_ARCH_M68K=yes" >> config.mak
+ echo "#define ARCH_M68K 1" >> $TMPH
+elif test "$cpu" = "ia64" ; then
+ echo "TARGET_ARCH_IA64=yes" >> config.mak
+ echo "#define ARCH_IA64 1" >> $TMPH
fi
echo "#define TUNECPU $TUNECPU" >> $TMPH
if test "$bigendian" = "yes" ; then
More information about the ffmpeg-devel
mailing list