From dace4e05a949c6c80bd6b778506434378abf4603 Mon Sep 17 00:00:00 2001 From: wes Date: Thu, 20 Jan 2005 05:43:24 +0000 Subject: [PATCH] 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 MFC after: 2 weeks --- sys/modules/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/modules/Makefile b/sys/modules/Makefile index 0a2c32f7f03c..5afaf5610719 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -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