kboot: Add MK_LOADER_KBOOT

Control building of KBOOT same as we do for uboot.

Sponsored by:		Netflix
Reviewed by:		tsoome
Differential Revision:	https://reviews.freebsd.org/D33511
This commit is contained in:
Warner Losh 2021-12-30 16:06:28 -07:00
parent 0c7a642ae8
commit 1a7ed7fe93

View file

@ -131,6 +131,7 @@ __DEFAULT_YES_OPTIONS = \
LLVM_COV \
LLVM_CXXFILT \
LOADER_GELI \
LOADER_KBOOT \
LOADER_LUA \
LOADER_OFW \
LOADER_UBOOT \
@ -311,6 +312,10 @@ BROKEN_OPTIONS+=EFI
.if ${__T:Mpowerpc*} == ""
BROKEN_OPTIONS+=LOADER_OFW
.endif
# KBOOT is only for powerpc64 (powerpc64le broken)
.if ${__T} != "powerpc64"
BROKEN_OPTIONS+=LOADER_KBOOT
.endif
# UBOOT is only for arm, and big-endian powerpc
.if (${__T:Marm*} == "" && ${__T:Mpowerpc*} == "") || ${__T} == "powerpc64le"
BROKEN_OPTIONS+=LOADER_UBOOT