GENERIC revision 1.15
1# $NetBSD: GENERIC,v 1.15 2022/09/27 08:18:21 skrll Exp $
2#
3# GENERIC machine description file
4#
5# This machine description file is used to generate the default NetBSD
6# kernel.  The generic kernel does not include all options, subsystems
7# and device drivers, but should be useful for most applications.
8#
9# The machine description file can be customised for your specific
10# machine to reduce the kernel size and improve its performance.
11#
12# For further information on compiling NetBSD kernels, see the config(8)
13# man page.
14#
15# For further information on hardware support for this architecture, see
16# the intro(4) man page.  For further information about kernel options
17# for this architecture, see the options(4) man page.  For an explanation
18# of each device driver in this file see the section 4 man page for the
19# device.
20
21include	"arch/riscv/conf/std.riscv64"
22
23options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
24
25#ident 		"GENERIC-$Revision: 1.15 $"
26
27maxusers	64		# estimated number of users
28
29options 	FDT
30
31#options 	EARLYCONS=com, CONSADDR=0x10000000
32#options 	EARLYCONS=com, CONSADDR=0x12440000
33options 	VERBOSE_INIT_RISCV
34
35# Standard system options
36#options 	FPE		# Floating-point extension support
37options 	NTP		# NTP phase/frequency locked loop
38
39options 	KTRACE		# system call tracing via ktrace(1)
40
41# Note: SysV IPC parameters could be changed dynamically, see sysctl(8).
42options 	SYSVMSG		# System V-like message queues
43options 	SYSVSEM		# System V-like semaphores
44options 	SYSVSHM		# System V-like memory sharing
45
46options 	MODULAR		# new style module(7) framework
47options 	MODULAR_DEFAULT_AUTOLOAD
48options 	USERCONF	# userconf(4) support
49#options 	PIPE_SOCKETPAIR	# smaller, but slower pipe(2)
50options 	SYSCTL_INCLUDE_DESCR	# Include sysctl descriptions in kernel
51
52# Alternate buffer queue strategies for better responsiveness under high
53# disk I/O load.
54#options 	BUFQ_READPRIO
55options 	BUFQ_PRIOCSCAN
56
57# Diagnostic/debugging support options
58options 	DIAGNOSTIC	# inexpensive kernel consistency checks
59				# XXX to be commented out on release branch
60#options  	DEBUG		# expensive debugging checks/support
61#options  	LOCKDEBUG	# expensive locking checks/support
62#options  	KERNHIST
63#options  	KERNHIST_PRINT
64#options  	UVMHIST
65#options  	UVMHIST_PRINT
66#options  	PMAPHIST
67#options  	PMAPHIST_PRINT
68#options  	SYSCTL_DEBUG
69#options  	SYSCTL_DEBUG_SETUP
70#options  	SYSCTL_DEBUG_CREATE
71
72
73#
74# Because gcc omits the frame pointer for any -O level, the line below
75# is needed to make backtraces in DDB work.
76#
77makeoptions	COPTS="-O2 -fno-omit-frame-pointer"
78makeoptions	COPY_SYMTAB=1
79options 	DDB		# in-kernel debugger
80#options	DDB_COMMANDONENTER="bt"	# execute command when ddb is entered
81options 	DDB_ONPANIC=1	# see also sysctl(7): `ddb.onpanic'
82options 	DDB_HISTORY_SIZE=512	# enable history editing in DDB
83#options 	KGDB		# remote debugger
84#options 	KGDB_DEVNAME="\"com\"",KGDB_DEVADDR=0x3f8,KGDB_DEVRATE=9600
85#options 	SYSCALL_STATS	# per syscall counts
86#options 	SYSCALL_TIMES	# per syscall times
87#options 	SYSCALL_TIMES_HASCOUNTER	# use 'broken' rdtsc (soekris)
88
89# Compatibility options
90include 	"conf/compat_netbsd70.config"
91
92#options 	COMPAT_NETBSD32
93#options 	EXEC_ELF32
94
95# Wedge support
96options 	DKWEDGE_AUTODISCOVER	# Automatically add dk(4) instances
97options 	DKWEDGE_METHOD_GPT	# Supports GPT partitions as wedges
98options 	DKWEDGE_METHOD_BSDLABEL	# Support disklabel entries as wedges
99options 	DKWEDGE_METHOD_MBR	# Support MBR partitions as wedges
100options		DKWEDGE_METHOD_APPLE    # Support Apple partitions as wedges
101#options	DKWEDGE_METHOD_RDB	# Support RDB partitions as wedges
102
103include 	"conf/filesystems.config"
104
105# File system options
106options 	FFS_EI		# FFS Endian Independent support
107#options 	FFS_NO_SNAPSHOT	# No FFS snapshot support
108options 	QUOTA		# legacy UFS quotas
109options 	QUOTA2		# new, in-filesystem UFS quotas
110#options 	UFS_DIRHASH	# UFS Large Directory Hashing
111options 	WAPBL		# File system journaling support
112#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
113				# immutable) behave as system flags.
114#options 	DISKLABEL_EI	# disklabel Endian Independent support
115options 	NFSSERVER	# Network File System server
116
117# Networking options
118#options 	GATEWAY		# packet forwarding
119options 	INET		# IP + ICMP + TCP + UDP
120options 	INET6		# IPV6
121options 	IPSEC		# IP security
122#options 	IPSEC_DEBUG	# debug for IP security
123#options 	MPLS		# MultiProtocol Label Switching (needs mpls)
124#options 	MROUTING	# IP multicast routing
125#options 	PIM		# Protocol Independent Multicast
126#options 	NETATALK	# AppleTalk networking protocols
127#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
128#options 	PPP_DEFLATE	# Deflate compression support for PPP
129#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
130#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
131
132#options 	ALTQ		# Manipulate network interfaces' output queues
133#options 	ALTQ_BLUE	# Stochastic Fair Blue
134#options 	ALTQ_CBQ	# Class-Based Queueing
135#options 	ALTQ_CDNR	# Diffserv Traffic Conditioner
136#options 	ALTQ_FIFOQ	# First-In First-Out Queue
137#options 	ALTQ_FLOWVALVE	# RED/flow-valve (red-penalty-box)
138#options 	ALTQ_HFSC	# Hierarchical Fair Service Curve
139#options 	ALTQ_LOCALQ	# Local queueing discipline
140#options 	ALTQ_PRIQ	# Priority Queueing
141#options 	ALTQ_RED	# Random Early Detection
142#options 	ALTQ_RIO	# RED with IN/OUT
143#options 	ALTQ_WFQ	# Weighted Fair Queueing
144
145# These options enable verbose messages for several subsystems.
146# Warning, these may compile large string tables into the kernel!
147
148# Kernel root file system and dump configuration.
149config		netbsd	root on ? type ?
150
151#
152# Device configuration
153#
154mainbus0 	at root
155simplebus* 	at fdt? pass 0
156
157# UART
158com* 		at fdt?			# UART
159
160# Pseudo-Devices
161
162pseudo-device 	crypto			# /dev/crypto device
163pseudo-device	swcrypto		# software crypto implementation
164
165# disk/mass storage pseudo-devices
166#pseudo-device	md			# memory disk device (ramdisk)
167#options 	MEMORY_DISK_HOOKS	# enable root ramdisk
168#options 	MEMORY_DISK_DYNAMIC	# loaded via kernel module(7)
169
170pseudo-device	vnd			# disk-like interface to files
171options 	VND_COMPRESSION		# compressed vnd(4)
172
173pseudo-device	loop			# network loopback
174pseudo-device	pty			# pseudo-terminals
175pseudo-device	clockctl		# user control of clock subsystem
176pseudo-device	ksyms			# /dev/ksyms
177pseudo-device	lockstat		# lock profiling
178
179# userland interface to drivers, including autoconf and properties retrieval
180pseudo-device	drvctl
181
182options 	PAX_MPROTECT=0		# PaX mprotect(2) restrictions
183options 	PAX_ASLR=0		# PaX Address Space Layout Randomization
184