xref: /freebsd/sys/amd64/conf/MINIMAL (revision e64080e79c53f2952c5a77c6402cd2473cd45d8c)
1af8cf710SWarner Losh#
2af8cf710SWarner Losh# MINIMAL -- Mostly Minimal kernel configuration file for FreeBSD/amd64
3af8cf710SWarner Losh#
4af8cf710SWarner Losh# Many definitions of minimal are possible. The one this file follows is
5af8cf710SWarner Losh# GENERIC, minus all functionality that can be replaced by loading kernel
6af8cf710SWarner Losh# modules.
7af8cf710SWarner Losh#
8af8cf710SWarner Losh# Exceptions:
9af8cf710SWarner Losh# o While UFS is buildable as a module, the current module lacks
10af8cf710SWarner Losh#   some features (ACL, GJOURNAL) that GENERIC includes.
11af8cf710SWarner Losh# o acpi as a module has been reported flakey and not well tested, so
12af8cf710SWarner Losh#   is included in the kernel.
13c363b16cSConrad Meyer# o (non-loaded) random is included due to uncertainty...
14af8cf710SWarner Losh# o Many networking things are included
15af8cf710SWarner Losh#
16af8cf710SWarner Losh# For now, please run changes to these list past imp@freebsd.org
17af8cf710SWarner Losh#
18af8cf710SWarner Losh# For more information on this file, please read the config(5) manual page,
19af8cf710SWarner Losh# and/or the handbook section on Kernel Configuration Files:
20af8cf710SWarner Losh#
21a2aef24aSEitan Adler#    https://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
22af8cf710SWarner Losh#
23af8cf710SWarner Losh# The handbook is also available locally in /usr/share/doc/handbook
24af8cf710SWarner Losh# if you've installed the doc distribution, otherwise always see the
25a2aef24aSEitan Adler# FreeBSD World Wide Web server (https://www.FreeBSD.org/) for the
26af8cf710SWarner Losh# latest information.
27af8cf710SWarner Losh#
28af8cf710SWarner Losh# An exhaustive list of options and more detailed explanations of the
29af8cf710SWarner Losh# device lines is also present in the ../../conf/NOTES and NOTES files.
30af8cf710SWarner Losh# If you are in doubt as to the purpose or necessity of a line, check first
31af8cf710SWarner Losh# in NOTES.
32af8cf710SWarner Losh#
33af8cf710SWarner Losh# $FreeBSD$
34af8cf710SWarner Losh
35af8cf710SWarner Loshcpu		HAMMER
36af8cf710SWarner Loshident		MINIMAL
37af8cf710SWarner Losh
38af8cf710SWarner Loshmakeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
39af8cf710SWarner Loshmakeoptions	WITH_CTF=1		# Run ctfconvert(1) for DTrace support
40af8cf710SWarner Losh
41af8cf710SWarner Loshoptions 	SCHED_ULE		# ULE scheduler
42e382dd47SMateusz Guzikoptions 	NUMA			# Non-Uniform Memory Architecture support
43af8cf710SWarner Loshoptions 	PREEMPTION		# Enable kernel thread preemption
44af8cf710SWarner Loshoptions 	INET			# InterNETworking
45af8cf710SWarner Loshoptions 	INET6			# IPv6 communications protocols
46af8cf710SWarner Loshoptions 	TCP_OFFLOAD		# TCP offload
47*e64080e7SMark Johnstonoptions 	SCTP_SUPPORT		# Allow kldload of SCTP
48af8cf710SWarner Loshoptions 	FFS			# Berkeley Fast Filesystem
49af8cf710SWarner Loshoptions 	SOFTUPDATES		# Enable FFS soft updates support
50af8cf710SWarner Loshoptions 	UFS_ACL			# Support for access control lists
51af8cf710SWarner Loshoptions 	UFS_DIRHASH		# Improve performance on big directories
52af8cf710SWarner Loshoptions 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
53af8cf710SWarner Loshoptions 	QUOTA			# Enable disk quotas for UFS
54af8cf710SWarner Loshoptions 	MD_ROOT			# MD is a potential root device
55af8cf710SWarner Loshoptions 	COMPAT_FREEBSD32	# Compatible with i386 binaries
56af8cf710SWarner Loshoptions 	COMPAT_FREEBSD4		# Compatible with FreeBSD4
57af8cf710SWarner Loshoptions 	COMPAT_FREEBSD5		# Compatible with FreeBSD5
58af8cf710SWarner Loshoptions 	COMPAT_FREEBSD6		# Compatible with FreeBSD6
59af8cf710SWarner Loshoptions 	COMPAT_FREEBSD7		# Compatible with FreeBSD7
60af8cf710SWarner Loshoptions 	COMPAT_FREEBSD9		# Compatible with FreeBSD9
61af8cf710SWarner Loshoptions 	COMPAT_FREEBSD10	# Compatible with FreeBSD10
627f68a896SMark Johnstonoptions 	COMPAT_FREEBSD11	# Compatible with FreeBSD11
63d6745408SConrad Meyeroptions 	COMPAT_FREEBSD12	# Compatible with FreeBSD12
64af8cf710SWarner Loshoptions 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
65af8cf710SWarner Loshoptions 	KTRACE			# ktrace(1) support
66af8cf710SWarner Loshoptions 	STACK			# stack(9) support
67af8cf710SWarner Loshoptions 	SYSVSHM			# SYSV-style shared memory
68af8cf710SWarner Loshoptions 	SYSVMSG			# SYSV-style message queues
69af8cf710SWarner Loshoptions 	SYSVSEM			# SYSV-style semaphores
70af8cf710SWarner Loshoptions 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
71af8cf710SWarner Loshoptions 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
72af8cf710SWarner Loshoptions 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
73af8cf710SWarner Loshoptions 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
74af8cf710SWarner Loshoptions 	AUDIT			# Security event auditing
75af8cf710SWarner Loshoptions 	CAPABILITY_MODE		# Capsicum capability mode
76af8cf710SWarner Loshoptions 	CAPABILITIES		# Capsicum capabilities
77af8cf710SWarner Loshoptions 	MAC			# TrustedBSD MAC Framework
78af8cf710SWarner Loshoptions 	KDTRACE_FRAME		# Ensure frames are compiled in
79af8cf710SWarner Loshoptions 	KDTRACE_HOOKS		# Kernel DTrace hooks
80af8cf710SWarner Loshoptions 	DDB_CTF			# Kernel ELF linker loads CTF data
81af8cf710SWarner Loshoptions 	INCLUDE_CONFIG_FILE	# Include this file in kernel
82af8cf710SWarner Losh
83af8cf710SWarner Losh# Debugging support.  Always need this:
84af8cf710SWarner Loshoptions 	KDB			# Enable kernel debugger support.
85af8cf710SWarner Loshoptions 	KDB_TRACE		# Print a stack trace for a panic.
86af8cf710SWarner Losh# For full debugger support use (turn off in stable branch):
87af8cf710SWarner Loshoptions 	DDB			# Support DDB.
88af8cf710SWarner Loshoptions 	GDB			# Support remote GDB.
89af8cf710SWarner Loshoptions 	DEADLKRES		# Enable the deadlock resolver
90af8cf710SWarner Loshoptions 	INVARIANTS		# Enable calls of extra sanity checking
91af8cf710SWarner Loshoptions 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
92af8cf710SWarner Loshoptions 	WITNESS			# Enable checks to detect deadlocks and cycles
93af8cf710SWarner Loshoptions 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed
94af8cf710SWarner Loshoptions 	MALLOC_DEBUG_MAXZONES=8	# Separate malloc(9) zones
95be352d20SKyle Evansoptions 	VERBOSE_SYSINIT=0	# Support debug.verbose_sysinit, off by default
96af8cf710SWarner Losh
97af8cf710SWarner Losh# Make an SMP-capable kernel by default
98af8cf710SWarner Loshoptions 	SMP			# Symmetric MultiProcessor Kernel
99b6638164SJohn Baldwinoptions 	EARLY_AP_STARTUP
100af8cf710SWarner Losh
101af8cf710SWarner Losh# CPU frequency control
102af8cf710SWarner Loshdevice		cpufreq
103af8cf710SWarner Losh
104af8cf710SWarner Losh# Bus support.
105af8cf710SWarner Loshdevice		acpi
106af8cf710SWarner Loshoptions 	ACPI_DMAR
107af8cf710SWarner Loshdevice		pci
108af8cf710SWarner Losh
109af8cf710SWarner Losh# atkbdc0 controls both the keyboard and the PS/2 mouse
110af8cf710SWarner Loshdevice		atkbdc			# AT keyboard controller
111af8cf710SWarner Loshdevice		atkbd			# AT keyboard
112af8cf710SWarner Loshdevice		psm			# PS/2 mouse
113af8cf710SWarner Losh
114af8cf710SWarner Loshdevice		kbdmux			# keyboard multiplexer
115af8cf710SWarner Losh
116af8cf710SWarner Loshdevice		vga			# VGA video card driver
117af8cf710SWarner Loshoptions 	VESA			# Add support for VESA BIOS Extensions (VBE)
118af8cf710SWarner Losh
119af8cf710SWarner Loshdevice		splash			# Splash screen and screen saver support
120af8cf710SWarner Losh
121af8cf710SWarner Losh# syscons is the default console driver, resembling an SCO console
122af8cf710SWarner Loshdevice		sc
123af8cf710SWarner Loshoptions 	SC_PIXEL_MODE		# add support for the raster text mode
124af8cf710SWarner Losh
125af8cf710SWarner Losh# vt is the new video console driver
126af8cf710SWarner Loshdevice		vt
127af8cf710SWarner Loshdevice		vt_vga
128af8cf710SWarner Loshdevice		vt_efifb
129af8cf710SWarner Losh
130af8cf710SWarner Loshdevice		agp			# support several AGP chipsets
131af8cf710SWarner Losh
132af8cf710SWarner Losh# Pseudo devices.
133af8cf710SWarner Loshdevice		loop			# Network loopback
134af8cf710SWarner Loshdevice		padlock_rng		# VIA Padlock RNG
135af8cf710SWarner Loshdevice		rdrand_rng		# Intel Bull Mountain RNG
136af8cf710SWarner Loshdevice		ether			# Ethernet support
137af8cf710SWarner Loshdevice		vlan			# 802.1Q VLAN support
138251a32b5SKyle Evansdevice		tuntap			# Packet tunnel.
139af8cf710SWarner Loshdevice		gif			# IPv6 and IPv4 tunneling
140af8cf710SWarner Losh
141af8cf710SWarner Losh# The `bpf' device enables the Berkeley Packet Filter.
142af8cf710SWarner Losh# Be aware of the administrative consequences of enabling this!
143af8cf710SWarner Losh# Note that 'bpf' is required for DHCP.
144af8cf710SWarner Loshdevice		bpf			# Berkeley packet filter
145af8cf710SWarner Losh
146af8cf710SWarner Losh# Xen HVM Guest Optimizations
147af8cf710SWarner Losh# NOTE: XENHVM depends on xenpci.  They must be added or removed together.
148af8cf710SWarner Loshoptions 	XENHVM			# Xen HVM kernel infrastructure
149af8cf710SWarner Loshdevice		xenpci			# Xen HVM Hypervisor services driver
150af14df77SNiclas Zeising
151af14df77SNiclas Zeising# evdev interface
152af14df77SNiclas Zeisingoptions 	EVDEV_SUPPORT		# evdev support in legacy drivers
153af14df77SNiclas Zeisingdevice		evdev			# input event device support
154af14df77SNiclas Zeisingdevice		uinput			# install /dev/uinput cdev
155