2000-06-25 10:12:33 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2000-10-14 10:59:56 +00:00
|
|
|
.PATH: ${.CURDIR}/../../dev/random
|
2000-06-25 10:12:33 +00:00
|
|
|
.PATH: ${.CURDIR}/../../crypto/blowfish
|
2000-09-10 13:52:19 +00:00
|
|
|
KMOD = random
|
|
|
|
SRCS = bus_if.h device_if.h randomdev.c yarrow.c hash.c
|
2000-06-25 10:12:33 +00:00
|
|
|
SRCS += bf_cbc.c bf_skey.c bf_enc.c
|
2000-10-27 06:06:04 +00:00
|
|
|
SRCS += vnode_if.h opt_noblockrandom.h
|
2000-06-26 12:18:09 +00:00
|
|
|
CFLAGS += -I${.CURDIR}/../..
|
2000-06-25 10:12:33 +00:00
|
|
|
NOMAN = yes
|
|
|
|
|
2000-12-02 18:29:18 +00:00
|
|
|
# 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
|
2000-10-27 06:06:04 +00:00
|
|
|
.if defined(NOBLOCKRANDOM)
|
|
|
|
RANDOM_OPTS= "\#define NOBLOCKRANDOM"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
opt_noblockrandom.h:
|
|
|
|
touch opt_noblockrandom.h
|
|
|
|
echo $(RANDOM_OPTS) >> opt_noblockrandom.h
|
|
|
|
|
2000-06-25 10:12:33 +00:00
|
|
|
.include <bsd.kmod.mk>
|