aboutsummaryrefslogtreecommitdiff
path: root/sys/modules/Makefile
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2022-06-14 16:07:30 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2022-06-14 16:10:08 +0000
commit648a47b85476ed0f8e3c61800b134bd3bb6001ee (patch)
tree7eaf60db94d950dae2ff438e1fbb7b8df99e3262 /sys/modules/Makefile
parent7565431f30909e67b1fd811155eb8788421e51d9 (diff)
downloadsrc-648a47b85476ed0f8e3c61800b134bd3bb6001ee.tar.gz
src-648a47b85476ed0f8e3c61800b134bd3bb6001ee.zip
modules: Only build MAC modules if options MAC is set
They are not loadable otherwise. Reviewed by: emaste MFC after: 1 week Sponsored by: Juniper Networks, Inc. Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D35369
Diffstat (limited to 'sys/modules/Makefile')
-rw-r--r--sys/modules/Makefile46
1 files changed, 32 insertions, 14 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index 29a77e07399e..6917074ea5c8 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -216,20 +216,20 @@ SUBDIR= \
linuxkpi_wlan \
${_lio} \
lpt \
- mac_biba \
- mac_bsdextended \
- mac_ifoff \
- mac_lomac \
- mac_mls \
- mac_none \
- mac_ntpd \
- mac_partition \
- mac_pimd \
- mac_portacl \
- mac_priority \
- mac_seeotheruids \
- mac_stub \
- mac_test \
+ ${_mac_biba} \
+ ${_mac_bsdextended} \
+ ${_mac_ifoff} \
+ ${_mac_lomac} \
+ ${_mac_mls} \
+ ${_mac_none} \
+ ${_mac_ntpd} \
+ ${_mac_partition} \
+ ${_mac_pimd} \
+ ${_mac_portacl} \
+ ${_mac_priority} \
+ ${_mac_seeotheruids} \
+ ${_mac_stub} \
+ ${_mac_test} \
${_malo} \
${_mana} \
md \
@@ -541,6 +541,24 @@ _rtw88fw= rtw88fw
_vmware= vmware
.endif
+# MAC framework
+.if ${KERN_OPTS:MMAC} || defined(ALL_MODULES)
+_mac_biba= mac_biba
+_mac_bsdextended= mac_bsdextended
+_mac_ifoff= mac_ifoff
+_mac_lomac= mac_lomac
+_mac_mls= mac_mls
+_mac_none= mac_none
+_mac_ntpd= mac_ntpd
+_mac_partition= mac_partition
+_mac_pimd= mac_pimd
+_mac_portacl= mac_portacl
+_mac_priority= mac_priority
+_mac_seeotheruids= mac_seeotheruids
+_mac_stub= mac_stub
+_mac_test= mac_test
+.endif
+
.if ${MK_NETGRAPH} != "no" || defined(ALL_MODULES)
_netgraph= netgraph
.endif