summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2015-04-28 17:13:05 +0000
committeremaste <emaste@FreeBSD.org>2015-04-28 17:13:05 +0000
commit7df2e586a8945122ca6d74d37467ec5b0133fa01 (patch)
tree12f7344ca90cb276ca1226703cc86b5d6ba7093d /Makefile
parent55af3aa0e567f927aa75e6bc1bc18a8a27f4f622 (diff)
downloadFreeBSD-src-7df2e586a8945122ca6d74d37467ec5b0133fa01.zip
FreeBSD-src-7df2e586a8945122ca6d74d37467ec5b0133fa01.tar.gz
Don't add arm64 to universe builds if the user provided a TARGETS list
Differential Revision: https://reviews.freebsd.org/D2375 Reported by: andrew Reviewed by: andrew, imp Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 8ad4af9..34ffe76 100644
--- a/Makefile
+++ b/Makefile
@@ -373,19 +373,19 @@ kernel-toolchains:
# existing system is.
#
.if make(universe) || make(universe_kernels) || make(tinderbox) || make(targets)
-TARGETS?=amd64 arm i386 mips pc98 powerpc sparc64
# XXX Add arm64 to universe only if we have an external binutils installed.
# It does not build with the in-tree linker.
.if exists(/usr/local/aarch64-freebsd/bin/ld)
-TARGETS+=arm64
-TARGET_ARCHES_arm64?= aarch64
-.else
+UNIVERSE_arm64=arm64
+.elif empty(${TARGETS})
universe: universe_arm64_skip
universe_epilogue: universe_arm64_skip
universe_arm64_skip: universe_prologue
@echo ">> arm64 skipped - install aarch64-binutils port or package to build"
.endif
+TARGETS?=amd64 arm ${UNIVERSE_arm64} i386 mips pc98 powerpc sparc64
TARGET_ARCHES_arm?= arm armeb armv6 armv6hf
+TARGET_ARCHES_arm64?= aarch64
TARGET_ARCHES_mips?= mipsel mips mips64el mips64 mipsn32
TARGET_ARCHES_powerpc?= powerpc powerpc64
TARGET_ARCHES_pc98?= i386
OpenPOWER on IntegriCloud