aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2020-07-19 23:19:09 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2020-07-19 23:19:09 +0000
commitbd8f09eb493af54ab9ca882b2625170f8926966d (patch)
treebc64169802bd87b3d403f4214ce4765a98aee896
parentd4fb0c0a560dec2834789ef0b32c73fcc67fd584 (diff)
downloadsrc-bd8f09eb493af54ab9ca882b2625170f8926966d.tar.gz
src-bd8f09eb493af54ab9ca882b2625170f8926966d.zip
Make efirt module dependent on MK_EFI
MK_EFI was added to kern.opts.mk in r331099, but is currently unused. Take advantage of that fact and gate the build of efirt behind it. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D24673
Notes
Notes: svn path=/head/; revision=363339
-rw-r--r--sys/modules/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 230d875722e6..dff871fa7338 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -421,6 +421,12 @@ _ktls_ocf= ktls_ocf
SUBDIR+= cuse
.endif
+.if ${MK_EFI} != "no"
+.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "amd64"
+_efirt= efirt
+.endif
+.endif
+
.if (${MK_INET_SUPPORT} != "no" || ${MK_INET6_SUPPORT} != "no") || \
defined(ALL_MODULES)
_carp= carp
@@ -585,7 +591,6 @@ _cxgb= cxgb
.if ${MACHINE_CPUARCH} == "aarch64"
_allwinner= allwinner
_armv8crypto= armv8crypto
-_efirt= efirt
_em= em
_rockchip= rockchip
.endif
@@ -707,7 +712,6 @@ _x86bios= x86bios
.if ${MACHINE_CPUARCH} == "amd64"
_amdgpio= amdgpio
_ccp= ccp
-_efirt= efirt
_iavf= iavf
_ioat= ioat
_ixl= ixl