summaryrefslogtreecommitdiffstats
path: root/sys/i386/conf
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 /sys/i386/conf
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 'sys/i386/conf')
-rw-r--r--sys/i386/conf/WITHOUT_SOURCELESS7
-rw-r--r--sys/i386/conf/WITHOUT_SOURCELESS_HOST10
-rw-r--r--sys/i386/conf/WITHOUT_SOURCELESS_UCODE40
3 files changed, 57 insertions, 0 deletions
diff --git a/sys/i386/conf/WITHOUT_SOURCELESS b/sys/i386/conf/WITHOUT_SOURCELESS
new file mode 100644
index 0000000..3425dda
--- /dev/null
+++ b/sys/i386/conf/WITHOUT_SOURCELESS
@@ -0,0 +1,7 @@
+#
+# WITHOUT_SOURCELESS -- Disable drivers that include sourceless code.
+#
+# $FreeBSD$
+
+include WITHOUT_SOURCELESS_HOST
+include WITHOUT_SOURCELESS_UCODE
diff --git a/sys/i386/conf/WITHOUT_SOURCELESS_HOST b/sys/i386/conf/WITHOUT_SOURCELESS_HOST
new file mode 100644
index 0000000..6261a3d
--- /dev/null
+++ b/sys/i386/conf/WITHOUT_SOURCELESS_HOST
@@ -0,0 +1,10 @@
+#
+# WITHOUT_SOURCELESS_UCODE -- Disable drivers that include sourceless
+# native code for host CPU.
+#
+# $FreeBSD$
+
+nodevice hpt27xx
+nodevice hptmv
+nodevice hptrr
+nodevice nve
diff --git a/sys/i386/conf/WITHOUT_SOURCELESS_UCODE b/sys/i386/conf/WITHOUT_SOURCELESS_UCODE
new file mode 100644
index 0000000..90e1bba
--- /dev/null
+++ b/sys/i386/conf/WITHOUT_SOURCELESS_UCODE
@@ -0,0 +1,40 @@
+#
+# WITHOUT_SOURCELESS_UCODE -- Disable drivers that include sourceless
+# microcode.
+#
+# $FreeBSD$
+
+nodevice bce
+nodevice fatm
+nodevice fxp
+nodevice ispfw
+nodevice mwlfw
+nodevice ralfw
+nodevice runfw
+nodevice sf
+nodevice sn
+nodevice ti
+nodevice txp
+nodevice ce
+nodevice cp
+nodevice ctau
+nodevice ipwfw
+nodevice iwifw
+nodevice iwnfw
+nodevice wpifw
+
+# drm
+nodevice mga
+nodevice r128
+nodevice radeon
+
+# sound
+nodevice csa
+nodevice ds1
+nodevice maestro3
+
+# usb
+nodevice rum
+nodevice uath
+nodevice zyd
+nodevice kue
OpenPOWER on IntegriCloud