Provide a WITHOUT_MODULES variable that specifies a list of modules

to elide.  This is a somewhat more convenient way of specifying in
e.g. make.conf a list of modules you know you will never need.

PR:		kern/76225
Submitted by:	David Yeske <dyeske@yahoo.com>
MFC after:	2 weeks
This commit is contained in:
wes 2005-01-20 05:43:24 +00:00
parent e394c4c99a
commit dace4e05a9

View File

@ -460,6 +460,10 @@ _sound= sound
SUBDIR=${MODULES_OVERRIDE}
.endif
.for reject in ${WITHOUT_MODULES}
SUBDIR:= ${SUBDIR:N${reject}}
.endfor
# Calling kldxref(8) for each module is expensive.
.if !defined(NO_XREF)
.MAKEFLAGS+= -DNO_XREF