xref: /freebsd/sys/riscv/conf/GENERIC (revision 8657387683946d0c03e09fe77029edfe309eeb20)
1#
2# GENERIC -- Generic kernel configuration file for FreeBSD/RISC-V
3#
4# For more information on this file, please read the config(5) manual page,
5# and/or the handbook section on Kernel Configuration Files:
6#
7#    http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
8#
9# The handbook is also available locally in /usr/share/doc/handbook
10# if you've installed the doc distribution, otherwise always see the
11# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
12# latest information.
13#
14# An exhaustive list of options and more detailed explanations of the
15# device lines is also present in the ../../conf/NOTES and NOTES files.
16# If you are in doubt as to the purpose or necessity of a line, check first
17# in NOTES.
18#
19# $FreeBSD$
20
21cpu		RISCV
22ident		GENERIC
23
24makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
25# makeoptions	WITH_CTF=1		# Run ctfconvert(1) for DTrace support
26
27# FIXME: linker error. "--relax and -r may not be used together"
28makeoptions	WITHOUT_MODULES="usb otusfw mwlfw ispfw mwlfw ralfw rtwnfw"
29# makeoptions	NO_MODULES
30
31options 	SCHED_ULE		# ULE scheduler
32options 	PREEMPTION		# Enable kernel thread preemption
33options 	INET			# InterNETworking
34options 	INET6			# IPv6 communications protocols
35options 	TCP_HHOOK		# hhook(9) framework for TCP
36options 	IPSEC			# IP (v4/v6) security
37options 	TCP_OFFLOAD		# TCP offload
38options 	SCTP			# Stream Control Transmission Protocol
39options 	FFS			# Berkeley Fast Filesystem
40options 	SOFTUPDATES		# Enable FFS soft updates support
41options 	UFS_ACL			# Support for access control lists
42options 	UFS_DIRHASH		# Improve performance on big directories
43options 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
44options 	QUOTA			# Enable disk quotas for UFS
45options 	NFSCL			# Network Filesystem Client
46options 	NFSD			# Network Filesystem Server
47options 	NFSLOCKD		# Network Lock Manager
48options 	NFS_ROOT		# NFS usable as /, requires NFSCL
49options 	MSDOSFS			# MSDOS Filesystem
50options 	CD9660			# ISO 9660 Filesystem
51options 	PROCFS			# Process filesystem (requires PSEUDOFS)
52options 	PSEUDOFS		# Pseudo-filesystem framework
53options 	GEOM_PART_GPT		# GUID Partition Tables.
54# options 	GEOM_RAID		# Soft RAID functionality.
55options 	GEOM_LABEL		# Provides labelization
56options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
57options 	KTRACE			# ktrace(1) support
58# options 	STACK			# stack(9) support
59options 	SYSVSHM			# SYSV-style shared memory
60options 	SYSVMSG			# SYSV-style message queues
61options 	SYSVSEM			# SYSV-style semaphores
62options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
63options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
64options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
65# options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
66options 	AUDIT			# Security event auditing
67options 	CAPABILITY_MODE		# Capsicum capability mode
68options 	CAPABILITIES		# Capsicum capabilities
69options 	MAC			# TrustedBSD MAC Framework
70options 	KDTRACE_FRAME		# Ensure frames are compiled in
71options 	KDTRACE_HOOKS		# Kernel DTrace hooks
72options 	FPE			# Floating-point extension support
73options 	RACCT			# Resource accounting framework
74options 	RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
75options 	RCTL			# Resource limits
76options 	SMP
77
78# RISC-V SBI console
79device		rcons
80
81# Uncomment for memory disk
82# options 	MD_ROOT
83# options 	MD_ROOT_SIZE=32768	# 32MB ram disk
84# makeoptions	MFS_IMAGE=/path/to/img
85# options 	ROOTDEVNAME=\"ufs:/dev/md0\"
86
87# Debugging support.  Always need this:
88options 	KDB			# Enable kernel debugger support.
89options 	KDB_TRACE		# Print a stack trace for a panic.
90# For full debugger support use (turn off in stable branch):
91options 	DDB			# Support DDB.
92# options 	GDB			# Support remote GDB.
93options 	DEADLKRES		# Enable the deadlock resolver
94options 	INVARIANTS		# Enable calls of extra sanity checking
95options 	INVARIANT_SUPPORT	# Extra sanity checks of internal structures, required by INVARIANTS
96# options 	WITNESS			# Enable checks to detect deadlocks and cycles
97# options 	WITNESS_SKIPSPIN	# Don't run witness on spinlocks for speed
98options 	MALLOC_DEBUG_MAXZONES=8	# Separate malloc(9) zones
99# options 	EARLY_PRINTF
100# options 	VERBOSE_SYSINIT
101
102# Pseudo devices.
103device		loop		# Network loopback
104device		random		# Entropy device
105device		ether		# Ethernet support
106device		vlan		# 802.1Q VLAN support
107device		tun		# Packet tunnel.
108device		md		# Memory "disks"
109device		gif		# IPv6 and IPv4 tunneling
110device		firmware	# firmware assist module
111
112# The `bpf' device enables the Berkeley Packet Filter.
113# Be aware of the administrative consequences of enabling this!
114# Note that 'bpf' is required for DHCP.
115device		bpf		# Berkeley packet filter
116
117options 	FDT
118