aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2022-01-02 01:08:21 +0000
committerWarner Losh <imp@FreeBSD.org>2022-01-03 15:00:09 +0000
commit69ee64c1c23dfffd46077c474981a68ecc264182 (patch)
treea8515f874ad6f916e1e7ac39619b1ad7cb4a1fce
parent8d6197929d4e845b04babb9543b57d292bce3bc4 (diff)
downloadsrc-69ee64c1c23dfffd46077c474981a68ecc264182.tar.gz
src-69ee64c1c23dfffd46077c474981a68ecc264182.zip
src.opts.mk: Remove most of the mips support
Mips had a number of special cases that disabled features that didn't work. Remove them all. However, retain the llvm mips bits because that requires a lot more effort to unwind and will be done separately. Sponsored by: Netflix
-rw-r--r--share/mk/src.opts.mk20
1 files changed, 4 insertions, 16 deletions
diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk
index 02515f8ff66f..37bc5918a363 100644
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -288,8 +288,8 @@ __DEFAULT_YES_OPTIONS+=LLDB
.else
__DEFAULT_NO_OPTIONS+=LLDB
.endif
-# LIB32 is supported on amd64, mips64, and powerpc64
-.if (${__T} == "amd64" || ${__T:Mmips64*} || ${__T} == "powerpc64")
+# LIB32 is supported on amd64 and powerpc64
+.if (${__T} == "amd64" || ${__T} == "powerpc64")
__DEFAULT_YES_OPTIONS+=LIB32
.else
BROKEN_OPTIONS+=LIB32
@@ -298,16 +298,8 @@ BROKEN_OPTIONS+=LIB32
.if ${__T} != "armv6" && ${__T} != "armv7"
BROKEN_OPTIONS+=LIBSOFT
.endif
-.if ${__T:Mmips*}
-# GOOGLETEST cannot currently be compiled on mips due to external circumstances.
-# Notably, the freebsd-gcc port isn't linking in libgcc so we end up trying ot
-# link to a hidden symbol. LLVM would successfully link this in, but some of
-# the mips variants are broken under LLVM until LLVM 10. GOOGLETEST should be
-# marked no longer broken with the switch to LLVM.
-BROKEN_OPTIONS+=GOOGLETEST SSP
-.endif
-# EFI doesn't exist on mips or powerpc.
-.if ${__T:Mmips*} || ${__T:Mpowerpc*}
+# EFI doesn't exist on powerpc (well, officially)
+.if ${__T:Mpowerpc*}
BROKEN_OPTIONS+=EFI
.endif
# OFW is only for powerpc, exclude others
@@ -337,10 +329,6 @@ __DEFAULT_YES_OPTIONS+=OPENSSL_KTLS
__DEFAULT_NO_OPTIONS+=OPENSSL_KTLS
.endif
-.if ${__T:Mmips64*}
-# profiling won't work on MIPS64 because there is only assembly for o32
-BROKEN_OPTIONS+=PROFILE
-.endif
.if ${__T} != "aarch64" && ${__T} != "amd64" && ${__T} != "i386" && \
${__T} != "powerpc64"
BROKEN_OPTIONS+=CXGBETOOL