summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorrmh <rmh@FreeBSD.org>2012-02-04 00:54:43 +0000
committerrmh <rmh@FreeBSD.org>2012-02-04 00:54:43 +0000
commitb5b4042f4a5b585a16906dd4cc90b3403e356ad4 (patch)
tree0b514413c1731e8ee1f950a2cd74d9cd56a0c36e /share
parentf09d52298a8098f1b2b08923c9b575cb16110c84 (diff)
downloadFreeBSD-src-b5b4042f4a5b585a16906dd4cc90b3403e356ad4.zip
FreeBSD-src-b5b4042f4a5b585a16906dd4cc90b3403e356ad4.tar.gz
Add MK_SOURCELESS build option. Setting MK_SOURCELESS to "no" will disable
kernel modules that include binary-only code. More fine-grained control is provided via MK_SOURCELESS_HOST (for native code that runs on host CPU) and MK_SOURCELESS_UCODE (for microcode). Reviewed by: julian, delphij, freebsd-arch Approved by: kib (mentor) MFC after: 2 weeks
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.own.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/share/mk/bsd.own.mk b/share/mk/bsd.own.mk
index d3183c4..f461f23 100644
--- a/share/mk/bsd.own.mk
+++ b/share/mk/bsd.own.mk
@@ -320,6 +320,9 @@ __DEFAULT_YES_OPTIONS = \
BOOT \
BSD_CPIO \
BSNMP \
+ SOURCELESS \
+ SOURCELESS_HOST \
+ SOURCELESS_UCODE \
BZIP2 \
CALENDAR \
CAPSICUM \
@@ -511,6 +514,11 @@ MK_BIND_UTILS:= no
MK_BIND_ETC:= no
.endif
+.if ${MK_SOURCELESS} == "no"
+MK_SOURCELESS_HOST:= no
+MK_SOURCELESS_UCODE:= no
+.endif
+
.if ${MK_CDDL} == "no"
MK_ZFS:= no
MK_CTF:= no
OpenPOWER on IntegriCloud