99ff83da74
* Make Yarrow an optional kernel component -- enabled by "YARROW_RNG" option. The files sha2.c, hash.c, randomdev_soft.c and yarrow.c comprise yarrow. * random(4) device doesn't really depend on rijndael-*. Yarrow, however, does. * Add random_adaptors.[ch] which is basically a store of random_adaptor's. random_adaptor is basically an adapter that plugs in to random(4). random_adaptor can only be plugged in to random(4) very early in bootup. Unplugging random_adaptor from random(4) is not supported, and is probably a bad idea anyway, due to potential loss of entropy pools. We currently have 3 random_adaptors: + yarrow + rdrand (ivy.c) + nehemeiah * Remove platform dependent logic from probe.c, and move it into corresponding registration routines of each random_adaptor provider. probe.c doesn't do anything other than picking a specific random_adaptor from a list of registered ones. * If the kernel doesn't have any random_adaptor adapters present then the creation of /dev/random is postponed until next random_adaptor is kldload'ed. * Fix randomdev_soft.c to refer to its own random_adaptor, instead of a system wide one. Submitted by: arthurmesh@gmail.com, obrien Obtained from: Juniper Networks Reviewed by: obrien
80 lines
1.6 KiB
Plaintext
80 lines
1.6 KiB
Plaintext
#
|
|
# Custom kernel for the TS-7800 board.
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
ident TS7800
|
|
include "../mv/orion/std.ts7800"
|
|
|
|
options SOC_MV_ORION
|
|
makeoptions MODULES_OVERRIDE=""
|
|
|
|
#makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols
|
|
makeoptions WERROR="-Werror"
|
|
|
|
options SCHED_4BSD #4BSD scheduler
|
|
options INET #InterNETworking
|
|
options INET6 #IPv6 communications protocols
|
|
options FFS #Berkeley Fast Filesystem
|
|
options SOFTUPDATES # Enable FFS soft updates support
|
|
options NFSCL #New Network Filesystem Client
|
|
options NFSLOCKD #Network Lock Manager
|
|
options NFS_ROOT #NFS usable as /, requires NFSCL
|
|
options BOOTP
|
|
options BOOTP_NFSROOT
|
|
options BOOTP_NFSV3
|
|
options BOOTP_WIRED_TO=mge0
|
|
|
|
options SYSVSHM #SYSV-style shared memory
|
|
options SYSVMSG #SYSV-style message queues
|
|
options SYSVSEM #SYSV-style semaphores
|
|
options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions
|
|
options MUTEX_NOINLINE
|
|
options RWLOCK_NOINLINE
|
|
options NO_FFS_SNAPSHOT
|
|
options NO_SWAPPING
|
|
|
|
# Debugging
|
|
options ALT_BREAK_TO_DEBUGGER
|
|
options DDB
|
|
options KDB
|
|
options GDB # Support remote GDB.
|
|
|
|
device mvs
|
|
device pci
|
|
|
|
# Pseudo devices
|
|
device md
|
|
device loop
|
|
device random
|
|
options YARROW_RNG # Yarrow software RNG
|
|
|
|
# Serial ports
|
|
device uart
|
|
|
|
# Networking
|
|
device ether
|
|
device mge # Marvell Gigabit Ethernet controller
|
|
device mii
|
|
device e1000phy
|
|
device bpf
|
|
options HZ=1000
|
|
|
|
# USB
|
|
device usb
|
|
device ehci
|
|
device umass
|
|
device scbus
|
|
device pass
|
|
device da
|
|
|
|
# SATA
|
|
device ata
|
|
|
|
# Flattened Device Tree
|
|
options FDT
|
|
options FDT_DTB_STATIC
|
|
makeoptions FDT_DTS_FILE=ts7800.dts
|
|
|