[MPlayer-dev-eng] Patch to support Linux on MIPS/MIPS64
Matthew Johnson
matt at matthew.ath.cx
Sun Feb 12 14:17:20 CET 2006
On Sun, 12 Feb 2006, Guillaume POIRIER wrote:
> Looks like your attachment did not make it to the mailing list. Please
> resend, but this time, you also need to send a patch against CVS
> version of MPlayer. pre7 is unfortunately too old.
Sorry, my FCC didn't save a copy and I resent. Attached now. CVS matches
mips* rather than mips, but still doesn't check -march settings from
/proc on linux, so this patch adds that.
Matt
--
Matthew Johnson
http://www.matthew.ath.cx/
-------------- next part --------------
--- configure.orig 2006-02-11 23:29:51 +0000
+++ configure 2006-02-12 13:15:21 +0000
@@ -1333,6 +1333,20 @@
R8000|R10000|R12000|R14000|R16000) _march='-mips4' _mcpu='-mtune=r8000' ;;
esac
echores "$proc"
+ elif [[ $system_name == "Linux" ]]
+ then
+
+ echocheck "CPU type"
+ proc=`cat /proc/cpuinfo | grep ^cpu | cut -d" " -f3`
+ case "`echo $proc`" in
+ R3000) _march='-mips1' _mcpu='-mtune=r2000' ;;
+ R4000) _march='-mips3' _mcpu='-mtune=r4000' ;;
+ R4400) _march='-mips3' _mcpu='-mtune=r4400' ;;
+ R4600) _march='-mips3' _mcpu='-mtune=r4600' ;;
+ R5000) _march='-mips4' _mcpu='-mtune=r5000' ;;
+ R8000|R10000|R12000|R14000|R16000) _march='-mips4' _mcpu='-mtune=r8000' ;;
+ esac
+ echores "$proc"
fi
;;
More information about the MPlayer-dev-eng
mailing list