GENERIC revision 1.19
1# $NetBSD: GENERIC,v 1.19 2022/11/15 14:44:04 simonb 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.19 $" 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 116options NFS_BOOT_DHCP # Support DHCP NFS root 117 118# Networking options 119#options GATEWAY # packet forwarding 120options INET # IP + ICMP + TCP + UDP 121options INET6 # IPV6 122options IPSEC # IP security 123#options IPSEC_DEBUG # debug for IP security 124#options MPLS # MultiProtocol Label Switching (needs mpls) 125#options MROUTING # IP multicast routing 126#options PIM # Protocol Independent Multicast 127#options NETATALK # AppleTalk networking protocols 128#options PPP_BSDCOMP # BSD-Compress compression support for PPP 129#options PPP_DEFLATE # Deflate compression support for PPP 130#options PPP_FILTER # Active filter support for PPP (requires bpf) 131#options TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG 132 133#options ALTQ # Manipulate network interfaces' output queues 134#options ALTQ_BLUE # Stochastic Fair Blue 135#options ALTQ_CBQ # Class-Based Queueing 136#options ALTQ_CDNR # Diffserv Traffic Conditioner 137#options ALTQ_FIFOQ # First-In First-Out Queue 138#options ALTQ_FLOWVALVE # RED/flow-valve (red-penalty-box) 139#options ALTQ_HFSC # Hierarchical Fair Service Curve 140#options ALTQ_LOCALQ # Local queueing discipline 141#options ALTQ_PRIQ # Priority Queueing 142#options ALTQ_RED # Random Early Detection 143#options ALTQ_RIO # RED with IN/OUT 144#options ALTQ_WFQ # Weighted Fair Queueing 145 146# These options enable verbose messages for several subsystems. 147# Warning, these may compile large string tables into the kernel! 148 149# Kernel root file system and dump configuration. 150config netbsd root on ? type ? 151 152# 153# Device configuration 154# 155mainbus0 at root 156simplebus* at fdt? pass 0 157 158# UART 159com* at fdt? # UART 160 161# Pseudo-Devices 162 163pseudo-device crypto # /dev/crypto device 164pseudo-device swcrypto # software crypto implementation 165 166# disk/mass storage pseudo-devices 167#pseudo-device md # memory disk device (ramdisk) 168#options MEMORY_DISK_HOOKS # enable root ramdisk 169#options MEMORY_DISK_DYNAMIC # loaded via kernel module(7) 170 171pseudo-device vnd # disk-like interface to files 172options VND_COMPRESSION # compressed vnd(4) 173 174pseudo-device loop # network loopback 175pseudo-device pty # pseudo-terminals 176pseudo-device clockctl # user control of clock subsystem 177pseudo-device ksyms # /dev/ksyms 178pseudo-device lockstat # lock profiling 179pseudo-device swwdog # software watchdog timer -- swwdog(4) 180 181# userland interface to drivers, including autoconf and properties retrieval 182pseudo-device drvctl 183 184options PAX_MPROTECT=0 # PaX mprotect(2) restrictions 185options PAX_ASLR=0 # PaX Address Space Layout Randomization 186 187cinclude "arch/riscv/conf/GENERIC.local" 188