mirror of https://github.com/mpv-player/mpv
add Hitachi SuperH (SH3) support
patch by Alex Ferguson %b_linuz A yahoo P com% git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23863 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1dd4ef01b9
commit
4880bc3ee4
|
@ -81,6 +81,7 @@ MPlayer (1.0)
|
|||
|
||||
Ports:
|
||||
* further Intel Mac fixes
|
||||
* Hitachi SuperH (SH3) support
|
||||
|
||||
Drivers:
|
||||
* ALSA audio output now sets the non-audio bit for AC3 passthrough even
|
||||
|
|
|
@ -158,6 +158,13 @@ arm() {
|
|||
esac
|
||||
}
|
||||
|
||||
sh3() {
|
||||
case "$host_arch" in
|
||||
sh3) return 0;;
|
||||
*) return 1;;
|
||||
esac
|
||||
}
|
||||
|
||||
# not boolean test: implement the posix shell "!" operator for a
|
||||
# non-posix /bin/sh.
|
||||
# usage: not {command}
|
||||
|
@ -1192,7 +1199,7 @@ if test -z "$_target" ; then
|
|||
# host's CPU/instruction set
|
||||
host_arch=`uname -p 2>&1`
|
||||
case "$host_arch" in
|
||||
i386|sparc|ppc|alpha|arm|mips|vax)
|
||||
i386|sparc|ppc|alpha|arm|sh3|mips|vax)
|
||||
;;
|
||||
powerpc) # Darwin returns 'powerpc'
|
||||
host_arch=ppc
|
||||
|
@ -1221,6 +1228,7 @@ if test -z "$_target" ; then
|
|||
sparc64) host_arch=sparc64 ;;
|
||||
parisc*|hppa*|9000*) host_arch=hppa ;;
|
||||
arm*|zaurus|cats) host_arch=arm ;;
|
||||
sh3) host_arch=sh3 ;;
|
||||
s390) host_arch=s390 ;;
|
||||
s390x) host_arch=s390x ;;
|
||||
mips*) host_arch=mips ;;
|
||||
|
@ -1593,7 +1601,7 @@ EOF
|
|||
fi
|
||||
|
||||
|
||||
_arch_all='X86 X86_32 X86_64 IA64 SPARC ARM ARMV4L POWERPC PPC ALPHA SGI_MIPS PA_RISC S390 S390X VAX GENERIC'
|
||||
_arch_all='X86 X86_32 X86_64 IA64 SPARC ARM ARMV4L SH3 POWERPC PPC ALPHA SGI_MIPS PA_RISC S390 S390X VAX GENERIC'
|
||||
case "$host_arch" in
|
||||
i[3-9]86|x86|x86pc|k5|k6|k6-2|k6-3|pentium*|athlon*|i586-i686)
|
||||
_arch='X86 X86_32'
|
||||
|
@ -1966,6 +1974,16 @@ EOF
|
|||
_optimizing=''
|
||||
;;
|
||||
|
||||
sh3)
|
||||
_arch='SH3'
|
||||
_target_arch='ARCH_SH3 = yes'
|
||||
iproc='sh3'
|
||||
proc=''
|
||||
_march='-m3'
|
||||
_mcpu='-ml'
|
||||
_optimizing=''
|
||||
;;
|
||||
|
||||
ppc|powerpc)
|
||||
_arch='POWERPC PPC'
|
||||
_def_dcbzl='#define NO_DCBZL 1'
|
||||
|
|
Loading…
Reference in New Issue