diff options
author | markm <markm@FreeBSD.org> | 2000-10-27 06:06:04 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2000-10-27 06:06:04 +0000 |
commit | 6458d733a983150ebfc10b03d7734c3b42c6e303 (patch) | |
tree | bf869d324cadd5843af844a6c6d36a999b8a1278 /sys/modules/random | |
parent | a01491f9047180a93bb215af3fbb93771305357b (diff) | |
download | FreeBSD-src-6458d733a983150ebfc10b03d7734c3b42c6e303.zip FreeBSD-src-6458d733a983150ebfc10b03d7734c3b42c6e303.tar.gz |
As the blocking model has seems to be troublesome for many, disable
it for now with an option.
This option is already deprecated, and will be removed when the
entropy-harvesting code is fast enough to warrant it.
Diffstat (limited to 'sys/modules/random')
-rw-r--r-- | sys/modules/random/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/modules/random/Makefile b/sys/modules/random/Makefile index 5b2a261..d736feb 100644 --- a/sys/modules/random/Makefile +++ b/sys/modules/random/Makefile @@ -5,8 +5,17 @@ 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 +SRCS += vnode_if.h opt_noblockrandom.h CFLAGS += -I${.CURDIR}/../.. NOMAN = yes +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> |