git: 9b93d7589ae5 - main - bsd.cpu.mk: Remove mips support

From: Warner Losh <imp_at_FreeBSD.org>
Date: Mon, 03 Jan 2022 15:00:51 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=9b93d7589ae5ba485d37701746e3ac58fc58aaad

commit 9b93d7589ae5ba485d37701746e3ac58fc58aaad
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-01-02 01:03:57 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-01-03 15:00:08 +0000

    bsd.cpu.mk: Remove mips support
    
    Remove the tweaks to the compiler, as well as additional command line
    args to get the proper endian, word size and floating style.
    
    Sponsored by:           Netflix
---
 share/mk/bsd.cpu.mk | 44 --------------------------------------------
 1 file changed, 44 deletions(-)

diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk
index 7984cba9536d..610f45969b4d 100644
--- a/share/mk/bsd.cpu.mk
+++ b/share/mk/bsd.cpu.mk
@@ -14,8 +14,6 @@ MACHINE_CPU = amd64 sse2 sse mmx
 MACHINE_CPU = arm
 . elif ${MACHINE_CPUARCH} == "i386"
 MACHINE_CPU = i486
-. elif ${MACHINE_CPUARCH} == "mips"
-MACHINE_CPU = mips
 . elif ${MACHINE_CPUARCH} == "powerpc"
 MACHINE_CPU = aim
 . elif ${MACHINE_CPUARCH} == "riscv"
@@ -81,7 +79,6 @@ CPUTYPE = pentium
 # defined therein.  Consult:
 #	http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
 #	http://gcc.gnu.org/onlinedocs/gcc/RS-6000-and-PowerPC-Options.html
-#	http://gcc.gnu.org/onlinedocs/gcc/MIPS-Options.html
 #	http://gcc.gnu.org/onlinedocs/gcc/SPARC-Options.html
 #	http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html
 
@@ -132,20 +129,6 @@ _CPUCFLAGS = -mcpu=${CPUTYPE} -mno-powerpc64
 .  endif
 . elif ${MACHINE_ARCH:Mpowerpc64*} != ""
 _CPUCFLAGS = -mcpu=${CPUTYPE}
-. elif ${MACHINE_CPUARCH} == "mips"
-# mips[1234], mips32, mips64, and all later releases need to have mips
-# preserved (releases later than r2 require external toolchain)
-.  if ${CPUTYPE:Mmips32*} != "" || ${CPUTYPE:Mmips64*} != "" || \
-	${CPUTYPE:Mmips[1234]} != ""
-_CPUCFLAGS = -march=${CPUTYPE}
-. else
-# Default -march to the CPUTYPE passed in, with mips stripped off so we
-# accept either mips4kc or 4kc, mostly for historical reasons
-# Typical values for cores:
-#	4kc, 24kc, 34kc, 74kc, 1004kc, octeon, octeon+, octeon2, octeon3,
-#	sb1, xlp, xlr
-_CPUCFLAGS = -march=${CPUTYPE:S/^mips//}
-. endif
 . elif ${MACHINE_CPUARCH} == "aarch64"
 .  if ${CPUTYPE:Marmv*} != ""
 # Use -march when the CPU type is an architecture value, e.g. armv8.1-a
@@ -289,9 +272,6 @@ MACHINE_CPU = ssse3 sse3
 MACHINE_CPU = sse3
 .  endif
 MACHINE_CPU += amd64 sse2 sse mmx
-########## Mips
-. elif ${MACHINE_CPUARCH} == "mips"
-MACHINE_CPU = mips
 ########## powerpc
 . elif ${MACHINE_ARCH} == "powerpc"
 .  if ${CPUTYPE} == "e500"
@@ -303,30 +283,6 @@ MACHINE_CPU = riscv
 . endif
 .endif
 
-.if ${MACHINE_CPUARCH} == "mips"
-CFLAGS += -G0
-AFLAGS+= -${MIPS_ENDIAN} -mabi=${MIPS_ABI}
-CFLAGS+= -${MIPS_ENDIAN} -mabi=${MIPS_ABI}
-LDFLAGS+= -${MIPS_ENDIAN} -mabi=${MIPS_ABI}
-. if ${MACHINE_ARCH:Mmips*el*} != ""
-MIPS_ENDIAN=	EL
-. else
-MIPS_ENDIAN=	EB
-. endif
-. if ${MACHINE_ARCH:Mmips64*} != ""
-MIPS_ABI?=	64
-. elif ${MACHINE_ARCH:Mmipsn32*} != ""
-MIPS_ABI?=	n32
-. else
-MIPS_ABI?=	32
-. endif
-. if ${MACHINE_ARCH:Mmips*hf}
-CFLAGS += -mhard-float
-. else
-CFLAGS += -msoft-float
-. endif
-.endif
-
 ########## arm
 .if ${MACHINE_CPUARCH} == "arm"
 MACHINE_CPU += arm