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
This commit is contained in:
parent
7565431f30
commit
648a47b854
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user