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