blob: 8c46764742979de5959c0d1a9bfd824ce02098af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# $FreeBSD$
.PATH: ${.CURDIR}/../../dev/random
.PATH: ${.CURDIR}/../../crypto/blowfish
KMOD= random
SRCS= bus_if.h device_if.h randomdev.c yarrow.c hash.c
SRCS+= bf_cbc.c bf_skey.c bf_enc.c
SRCS+= vnode_if.h opt_noblockrandom.h
NOMAN= yes
CFLAGS+= -I${.CURDIR}/../..
# Uncomment the below macro to make a /dev/random that will not block at
# boot time. Useful for personal workstations and the like where reboot
# speed is paramount.
#NOBLOCKRANDOM= yes
.if defined(NOBLOCKRANDOM)
RANDOM_OPTS= "\#define NOBLOCKRANDOM"
.endif
opt_noblockrandom.h:
touch opt_noblockrandom.h
echo $(RANDOM_OPTS) >> opt_noblockrandom.h
.include <bsd.kmod.mk>
|