GENERIC revision 1.1
1# $NetBSD: GENERIC,v 1.1 2015/03/28 16:13:56 matt 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.1 $"
26
27maxusers	64		# estimated number of users
28
29# Standard system options
30
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#options 	KMEMSTATS	# kernel memory statistics (vmstat -m)
57
58#
59# Because gcc omits the frame pointer for any -O level, the line below
60# is needed to make backtraces in DDB work.
61#
62#makeoptions	COPTS="-O2 -fno-omit-frame-pointer"
63makeoptions	COPY_SYMTAB=1
64options 	DDB		# in-kernel debugger
65#options	DDB_COMMANDONENTER="bt"	# execute command when ddb is entered
66#options 	DDB_ONPANIC=1	# see also sysctl(7): `ddb.onpanic'
67options 	DDB_HISTORY_SIZE=512	# enable history editing in DDB
68#options 	KGDB		# remote debugger
69#options 	KGDB_DEVNAME="\"com\"",KGDB_DEVADDR=0x3f8,KGDB_DEVRATE=9600
70#options 	SYSCALL_STATS	# per syscall counts
71#options 	SYSCALL_TIMES	# per syscall times
72#options 	SYSCALL_TIMES_HASCOUNTER	# use 'broken' rdtsc (soekris)
73
74# Compatibility options
75options 	COMPAT_70	# NetBSD 7.0 binary compatibility.
76options 	COMPAT_43	# and 4.3BSD
77
78options 	COMPAT_OSSAUDIO
79options 	COMPAT_NETBSD32
80#options 	COMPAT_LINUX
81#options 	COMPAT_LINUX32	# req. COMPAT_LINUX and COMPAT_NETBSD32
82#options 	EXEC_ELF32
83options 	COMPAT_BSDPTY	# /dev/[pt]ty?? ptys.
84
85# Wedge support
86options 	DKWEDGE_AUTODISCOVER	# Automatically add dk(4) instances
87options 	DKWEDGE_METHOD_GPT	# Supports GPT partitions as wedges
88options 	DKWEDGE_METHOD_BSDLABEL	# Support disklabel entries as wedges
89options 	DKWEDGE_METHOD_MBR	# Support MBR partitions as wedges
90options		DKWEDGE_METHOD_APPLE    # Support Apple partitions as wedges
91
92include		"conf/filesystems.config"
93
94# File system options
95options 	QUOTA		# legacy UFS quotas
96options 	QUOTA2		# new, in-filesystem UFS quotas
97options 	FFS_EI		# FFS Endian Independent support
98options 	WAPBL		# File system journaling support
99# Note that UFS_DIRHASH is suspected of causing kernel memory corruption.
100# It is not recommended for general use.
101#options 	UFS_DIRHASH	# UFS Large Directory Hashing - Experimental
102options 	NFSSERVER	# Network File System server
103#options 	EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
104				# immutable) behave as system flags.
105#options 	FFS_NO_SNAPSHOT	# No FFS snapshot support
106
107# Networking options
108#options 	GATEWAY		# packet forwarding
109options 	INET		# IP + ICMP + TCP + UDP
110options 	INET6		# IPV6
111options 	IPSEC		# IP security
112#options 	IPSEC_DEBUG	# debug for IP security
113#options 	MPLS		# MultiProtocol Label Switching (needs ifmpls)
114#options 	MROUTING	# IP multicast routing
115#options 	PIM		# Protocol Independent Multicast
116#options 	NETATALK	# AppleTalk networking protocols
117#options 	PPP_BSDCOMP	# BSD-Compress compression support for PPP
118#options 	PPP_DEFLATE	# Deflate compression support for PPP
119#options 	PPP_FILTER	# Active filter support for PPP (requires bpf)
120#options 	IPFILTER_LOG	# ipmon(8) log support
121#options 	IPFILTER_LOOKUP	# ippool(8) support
122#options 	IPFILTER_COMPAT # Compat for IP-Filter
123#options 	IPFILTER_DEFAULT_BLOCK	# block all packets by default
124#options 	TCP_DEBUG	# Record last TCP_NDEBUG packets with SO_DEBUG
125
126#options 	ALTQ		# Manipulate network interfaces' output queues
127#options 	ALTQ_BLUE	# Stochastic Fair Blue
128#options 	ALTQ_CBQ	# Class-Based Queueing
129#options 	ALTQ_CDNR	# Diffserv Traffic Conditioner
130#options 	ALTQ_FIFOQ	# First-In First-Out Queue
131#options 	ALTQ_FLOWVALVE	# RED/flow-valve (red-penalty-box)
132#options 	ALTQ_HFSC	# Hierarchical Fair Service Curve
133#options 	ALTQ_LOCALQ	# Local queueing discipline
134#options 	ALTQ_PRIQ	# Priority Queueing
135#options 	ALTQ_RED	# Random Early Detection
136#options 	ALTQ_RIO	# RED with IN/OUT
137#options 	ALTQ_WFQ	# Weighted Fair Queueing
138
139# These options enable verbose messages for several subsystems.
140# Warning, these may compile large string tables into the kernel!
141
142# Kernel root file system and dump configuration.
143config		netbsd	root on ? type ?
144
145#
146# Device configuration
147#
148mainbus0	at root
149cpu0		at mainbus0
150htif0		at mainbus0
151htifcons0	at htif0
152htifdisk0	at htif0
153ld0		at htifdisk0
154
155
156# Pseudo-Devices
157
158pseudo-device 	crypto			# /dev/crypto device
159pseudo-device	swcrypto		# software crypto implementation
160
161# disk/mass storage pseudo-devices
162#pseudo-device	md			# memory disk device (ramdisk)
163#options 	MEMORY_DISK_HOOKS	# enable root ramdisk
164#options 	MEMORY_DISK_DYNAMIC	# loaded via kernel module(7)
165
166pseudo-device	vnd			# disk-like interface to files
167options 	VND_COMPRESSION		# compressed vnd(4)
168
169pseudo-device	loop			# network loopback
170pseudo-device	pty			# pseudo-terminals
171pseudo-device	clockctl		# user control of clock subsystem
172pseudo-device	ksyms			# /dev/ksyms
173pseudo-device	lockstat		# lock profiling
174
175# userland interface to drivers, including autoconf and properties retrieval
176pseudo-device	drvctl
177
178options 	PAX_MPROTECT=0		# PaX mprotect(2) restrictions
179options 	PAX_ASLR=0		# PaX Address Space Layout Randomization
180