File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -541,6 +541,18 @@ case $CFG_CPUTYPE in
541541 CFG_CPUTYPE=x86_64
542542 ;;
543543
544+ mips | mips64)
545+ if [ " $CFG_CPUTYPE " = " mips64" ]; then
546+ CFG_OSTYPE=" ${CFG_OSTYPE} abi64"
547+ fi
548+ ENDIAN=$( printf ' \1' | od -dAn)
549+ if [ " $ENDIAN " -eq 1 ]; then
550+ CFG_CPUTYPE=" ${CFG_CPUTYPE} el"
551+ elif [ " $ENDIAN " -ne 256 ]; then
552+ err " unknown endianness: $ENDIAN (expecting 1 for little or 256 for big)"
553+ fi
554+ ;;
555+
544556 BePC)
545557 CFG_CPUTYPE=i686
546558 ;;
Original file line number Diff line number Diff line change @@ -22,6 +22,12 @@ pub fn main() { }
2222#[ cfg( target_arch = "aarch64" ) ]
2323pub fn main ( ) { }
2424
25+ #[ cfg( target_arch = "mips" ) ]
26+ pub fn main ( ) { }
27+
28+ #[ cfg( target_arch = "mips64" ) ]
29+ pub fn main ( ) { }
30+
2531#[ cfg( target_arch = "powerpc64" ) ]
2632pub fn main ( ) { }
2733
You can’t perform that action at this time.
0 commit comments