summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorkevans <kevans@FreeBSD.org>2018-04-06 19:47:07 +0000
committerkevans <kevans@FreeBSD.org>2018-04-06 19:47:07 +0000
commit9a078849430baf51c79d0586ee844b7f50bda1d0 (patch)
tree1f5e5a2e1a0e3a3a2a16c8e997b8f6388928ed53 /share
parentd60166c8da150e2483a31ea40732f74261ed1756 (diff)
downloadFreeBSD-src-9a078849430baf51c79d0586ee844b7f50bda1d0.zip
FreeBSD-src-9a078849430baf51c79d0586ee844b7f50bda1d0.tar.gz
MFC r330077, r330248
r330077: Move EFI up to common makefile. There's no need for all these .if's based on architecture. Sponsored by: Netflix r330248: Create LOADER_UBOOT, and LOADER_OFW. Move these options out of Makefile.${MACHINE_ARCH} and remove the now-empty files. Generate the *32 directories on the necessary architectures (well, currently only amd64) on the fly. Remove LOADER_EFI variable and co-locate it with EFI.
Diffstat (limited to 'share')
-rw-r--r--share/mk/src.opts.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk
index 0a018d2..b305571 100644
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -131,6 +131,8 @@ __DEFAULT_YES_OPTIONS = \
LPR \
LS_COLORS \
LZMA_SUPPORT \
+ LOADER_OFW \
+ LOADER_UBOOT \
MAIL \
MAILWRAPPER \
MAKE \
@@ -276,9 +278,23 @@ BROKEN_OPTIONS+=LLDB
.if ${__T} != "armv6"
BROKEN_OPTIONS+=LIBSOFT
.endif
+# EFI doesn't exist on mips, powerpc, sparc or riscv.
.if ${__T:Mmips*} || ${__T:Mpowerpc*} || ${__T:Msparc64} || ${__T:Mriscv*}
BROKEN_OPTIONS+=EFI
.endif
+# GELI isn't supported on !x86
+.if ${__T} != "i386" && ${__T} != "amd64"
+BROKEN_OPTIONS+=LOADER_GELI
+.endif
+# OFW is only for powerpc and sparc64, exclude others
+.if ${__T:Mpowerpc*} == "" && ${__T:Msparc64} == ""
+BROKEN_OPTIONS+=LOADER_OFW
+.endif
+# UBOOT is only for arm, mips and powerpc, exclude others
+.if ${__T:Marm*} == "" && ${__T:Mmips*} == "" && ${__T:Mpowerpc*} == ""
+BROKEN_OPTIONS+=LOADER_UBOOT
+.endif
+
.if ${__T:Mmips64*}
# profiling won't work on MIPS64 because there is only assembly for o32
BROKEN_OPTIONS+=PROFILE
OpenPOWER on IntegriCloud