xref: /freebsd/sys/riscv/conf/GENERIC (revision 98f50c44e3498c54fdf2687c5feade56a6e95cd5)
128029b68SRuslan Bukin#
228029b68SRuslan Bukin# GENERIC -- Generic kernel configuration file for FreeBSD/RISC-V
328029b68SRuslan Bukin#
428029b68SRuslan Bukin# For more information on this file, please read the config(5) manual page,
528029b68SRuslan Bukin# and/or the handbook section on Kernel Configuration Files:
628029b68SRuslan Bukin#
728029b68SRuslan Bukin#    http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
828029b68SRuslan Bukin#
928029b68SRuslan Bukin# The handbook is also available locally in /usr/share/doc/handbook
1028029b68SRuslan Bukin# if you've installed the doc distribution, otherwise always see the
1128029b68SRuslan Bukin# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
1228029b68SRuslan Bukin# latest information.
1328029b68SRuslan Bukin#
1428029b68SRuslan Bukin# An exhaustive list of options and more detailed explanations of the
1528029b68SRuslan Bukin# device lines is also present in the ../../conf/NOTES and NOTES files.
1628029b68SRuslan Bukin# If you are in doubt as to the purpose or necessity of a line, check first
1728029b68SRuslan Bukin# in NOTES.
1828029b68SRuslan Bukin#
1928029b68SRuslan Bukin# $FreeBSD$
2028029b68SRuslan Bukin
2128029b68SRuslan Bukincpu		RISCV
2228029b68SRuslan Bukinident		GENERIC
2328029b68SRuslan Bukin
2428029b68SRuslan Bukinmakeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
2528029b68SRuslan Bukin# makeoptions	WITH_CTF=1		# Run ctfconvert(1) for DTrace support
2699ea4d47SRuslan Bukin
2799ea4d47SRuslan Bukin# FIXME: linker error. "--relax and -r may not be used together"
2899ea4d47SRuslan Bukinmakeoptions	WITHOUT_MODULES="usb otusfw mwlfw ispfw mwlfw ralfw rtwnfw urtwnfw"
29*98f50c44SRuslan Bukin# makeoptions	NO_MODULES
3028029b68SRuslan Bukin
3128029b68SRuslan Bukinoptions 	SCHED_ULE		# ULE scheduler
3228029b68SRuslan Bukinoptions 	PREEMPTION		# Enable kernel thread preemption
3328029b68SRuslan Bukinoptions 	INET			# InterNETworking
3428029b68SRuslan Bukinoptions 	INET6			# IPv6 communications protocols
3528029b68SRuslan Bukinoptions 	IPSEC			# IP (v4/v6) security
3628029b68SRuslan Bukinoptions 	TCP_OFFLOAD		# TCP offload
3728029b68SRuslan Bukinoptions 	SCTP			# Stream Control Transmission Protocol
3828029b68SRuslan Bukinoptions 	FFS			# Berkeley Fast Filesystem
3928029b68SRuslan Bukinoptions 	SOFTUPDATES		# Enable FFS soft updates support
4028029b68SRuslan Bukinoptions 	UFS_ACL			# Support for access control lists
4128029b68SRuslan Bukinoptions 	UFS_DIRHASH		# Improve performance on big directories
4228029b68SRuslan Bukinoptions 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
4328029b68SRuslan Bukinoptions 	QUOTA			# Enable disk quotas for UFS
4428029b68SRuslan Bukinoptions 	NFSCL			# Network Filesystem Client
4528029b68SRuslan Bukinoptions 	NFSD			# Network Filesystem Server
4628029b68SRuslan Bukinoptions 	NFSLOCKD		# Network Lock Manager
4728029b68SRuslan Bukinoptions 	NFS_ROOT		# NFS usable as /, requires NFSCL
4828029b68SRuslan Bukinoptions 	MSDOSFS			# MSDOS Filesystem
4928029b68SRuslan Bukinoptions 	CD9660			# ISO 9660 Filesystem
5028029b68SRuslan Bukinoptions 	PROCFS			# Process filesystem (requires PSEUDOFS)
5128029b68SRuslan Bukinoptions 	PSEUDOFS		# Pseudo-filesystem framework
5228029b68SRuslan Bukinoptions 	GEOM_PART_GPT		# GUID Partition Tables.
5328029b68SRuslan Bukin# options 	GEOM_RAID		# Soft RAID functionality.
5428029b68SRuslan Bukinoptions 	GEOM_LABEL		# Provides labelization
5528029b68SRuslan Bukinoptions 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
5628029b68SRuslan Bukinoptions 	KTRACE			# ktrace(1) support
5728029b68SRuslan Bukin# options 	STACK			# stack(9) support
5828029b68SRuslan Bukinoptions 	SYSVSHM			# SYSV-style shared memory
5928029b68SRuslan Bukinoptions 	SYSVMSG			# SYSV-style message queues
6028029b68SRuslan Bukinoptions 	SYSVSEM			# SYSV-style semaphores
6128029b68SRuslan Bukinoptions 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
6228029b68SRuslan Bukinoptions 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
6328029b68SRuslan Bukinoptions 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
6428029b68SRuslan Bukin# options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
6528029b68SRuslan Bukinoptions 	AUDIT			# Security event auditing
6628029b68SRuslan Bukinoptions 	CAPABILITY_MODE		# Capsicum capability mode
6728029b68SRuslan Bukinoptions 	CAPABILITIES		# Capsicum capabilities
6828029b68SRuslan Bukinoptions 	MAC			# TrustedBSD MAC Framework
6922d5f354SRuslan Bukinoptions 	KDTRACE_FRAME		# Ensure frames are compiled in
7022d5f354SRuslan Bukinoptions 	KDTRACE_HOOKS		# Kernel DTrace hooks
7128029b68SRuslan Bukin# options 	VFP			# Floating-point support
7228029b68SRuslan Bukinoptions 	RACCT			# Resource accounting framework
7328029b68SRuslan Bukinoptions 	RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
7428029b68SRuslan Bukinoptions 	RCTL			# Resource limits
7517696c12SRuslan Bukinoptions 	SMP
7617696c12SRuslan Bukin
7717696c12SRuslan Bukin# Uncomment for memory disk
7817696c12SRuslan Bukin# options 	MD_ROOT
7917696c12SRuslan Bukin# options 	MD_ROOT_SIZE=8192	# 8MB ram disk
8017696c12SRuslan Bukin# makeoptions	MFS_IMAGE=/path/to/img
8117696c12SRuslan Bukin# options 	ROOTDEVNAME=\"ufs:/dev/md0\"
8228029b68SRuslan Bukin
8328029b68SRuslan Bukin# Debugging support.  Always need this:
84d52d6d7cSRuslan Bukinoptions 	KDB			# Enable kernel debugger support.
85d52d6d7cSRuslan Bukinoptions 	KDB_TRACE		# Print a stack trace for a panic.
8628029b68SRuslan Bukin# For full debugger support use (turn off in stable branch):
87d52d6d7cSRuslan Bukinoptions 	DDB			# Support DDB.
8828029b68SRuslan Bukin# options 	GDB			# Support remote GDB.
8928029b68SRuslan Bukinoptions 	DEADLKRES		# Enable the deadlock resolver
9028029b68SRuslan Bukinoptions 	INVARIANTS		# Enable calls of extra sanity checking
9128029b68SRuslan Bukinoptions 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
9228029b68SRuslan Bukin# options 	WITNESS			# Enable checks to detect deadlocks and cycles
9328029b68SRuslan Bukin# options 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed
9428029b68SRuslan Bukinoptions 	MALLOC_DEBUG_MAXZONES=8	# Separate malloc(9) zones
9528029b68SRuslan Bukin# options 	EARLY_PRINTF
96*98f50c44SRuslan Bukin# options 	VERBOSE_SYSINIT
9728029b68SRuslan Bukin
9828029b68SRuslan Bukin# Pseudo devices.
9928029b68SRuslan Bukindevice		loop		# Network loopback
10028029b68SRuslan Bukindevice		random		# Entropy device
10128029b68SRuslan Bukindevice		ether		# Ethernet support
10228029b68SRuslan Bukindevice		vlan		# 802.1Q VLAN support
10328029b68SRuslan Bukindevice		tun		# Packet tunnel.
10428029b68SRuslan Bukindevice		md		# Memory "disks"
10528029b68SRuslan Bukindevice		gif		# IPv6 and IPv4 tunneling
10628029b68SRuslan Bukindevice		firmware	# firmware assist module
10728029b68SRuslan Bukin
10822d5f354SRuslan Bukin# The `bpf' device enables the Berkeley Packet Filter.
10922d5f354SRuslan Bukin# Be aware of the administrative consequences of enabling this!
11022d5f354SRuslan Bukin# Note that 'bpf' is required for DHCP.
11122d5f354SRuslan Bukindevice		bpf		# Berkeley packet filter
11222d5f354SRuslan Bukin
11328029b68SRuslan Bukinoptions 	FDT
114