path: root/Makefile
diff options
authorJohn Baldwin <jhb@FreeBSD.org>2020-03-24 18:16:02 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2020-03-24 18:16:02 +0000
commitff4c0e6f83e6a961816534d6304b99c32eded5a8 (patch)
tree8329ff1558ef8da2f1b5726c2711f95f7855229b /Makefile
parented6611cc8c996a47d334096533caf874a6e27fd7 (diff)
Disable rarely used architecture variants in make universe by default.
If EXTRA_TARGETS is defined, build all supported architecture variants. By default, build architecture variants needed to provide code coverage or that are commonly used. Use this to disable building of all the hard-float and little-endian MIPS architecture variants along with n32 by default. Reviewed by: rpokala Discussed with: imp, emaste Differential Revision: https://reviews.freebsd.org/D24178
Notes: svn path=/head/; revision=359275
Diffstat (limited to 'Makefile')
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 7fe45e00043e..f1d2569ad871 100644
--- a/Makefile
+++ b/Makefile
@@ -483,16 +483,17 @@ worlds: .PHONY
.if make(universe) || make(universe_kernels) || make(tinderbox) || \
make(targets) || make(universe-toolchain)
-# Always build architectures supported by clang. Only build architectures
-# only supported by GCC if a suitable toolchain is present or enabled.
-# In all cases, if the user specifies TARGETS on the command line,
-# honor that most of all.
+# Don't build rarely used architectures unless requested.
+.if defined(EXTRA_TARGETS)
+EXTRA_ARCHES_mips= mipsel mipshf mipselhf mips64el mips64hf mips64elhf
+EXTRA_ARCHES_mips+= mipsn32
TARGETS?=amd64 arm arm64 i386 mips powerpc riscv
TARGET_ARCHES_arm?= armv6 armv7
TARGET_ARCHES_arm64?= aarch64
-TARGET_ARCHES_mips?= mipsel mips mips64el mips64 mipsn32 mipselhf mipshf mips64elhf mips64hf
+TARGET_ARCHES_mips?= mips mips64 ${EXTRA_ARCHES_mips}
# powerpcspe excluded until clang fixed
TARGET_ARCHES_powerpc?= powerpc powerpc64
TARGET_ARCHES_riscv?= riscv64 riscv64sf