svn commit: r331099 - head/sys/conf

Warner Losh imp at FreeBSD.org
Sat Mar 17 17:18:29 UTC 2018


Author: imp
Date: Sat Mar 17 17:18:29 2018
New Revision: 331099
URL: https://svnweb.freebsd.org/changeset/base/331099

Log:
  Add EFI to kernel options.
  
  Some parts of MI modules will soon depend on whether EFI is available
  or not. Add EFI to the list of kernel options so we can use it in
  the modules build.

Modified:
  head/sys/conf/kern.opts.mk

Modified: head/sys/conf/kern.opts.mk
==============================================================================
--- head/sys/conf/kern.opts.mk	Sat Mar 17 17:05:48 2018	(r331098)
+++ head/sys/conf/kern.opts.mk	Sat Mar 17 17:18:29 2018	(r331099)
@@ -30,6 +30,7 @@ __DEFAULT_YES_OPTIONS = \
     CDDL \
     CRYPT \
     CUSE \
+    EFI \
     FORMAT_EXTENSIONS \
     INET \
     INET6 \
@@ -89,6 +90,11 @@ BROKEN_OPTIONS+= OFED
 # Things that don't work based on toolchain support.
 .if ${MACHINE} != "i386" && ${MACHINE} != "amd64"
 BROKEN_OPTIONS+= KERNEL_RETPOLINE
+.endif
+
+# EFI doesn't exist on mips, powerpc, sparc or riscv.
+.if ${MACHINE:Mmips} || ${MACHINE:Mpowerpc} || ${MACHINE:Msparc64} || ${MACHINE:Mriscv}
+BROKEN_OPTIONS+=EFI
 .endif
 
 # expanded inline from bsd.mkopt.mk to avoid share/mk dependency


More information about the svn-src-all mailing list