Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Mar 2001 11:40:14 -0700
From:      Warner Losh <imp@harmony.village.org>
To:        Peter Pentchev <roam@orbitel.bg>
Cc:        arch@FreeBSD.ORG
Subject:   Re: Building only a specified list of kernel modules 
Message-ID:  <200103251840.f2PIeE973790@harmony.village.org>
In-Reply-To: Your message of "Sat, 24 Mar 2001 21:11:40 %2B0200." <20010324211140.C4304@ringworld.oblivion.bg> 
References:  <20010324211140.C4304@ringworld.oblivion.bg>  

next in thread | previous in thread | raw e-mail | index | archive | help
I object to this patch.  It is needlessly complicated.  It adds too
many icky knobs to the tree, created duplicate places where you'd need
lists, etc.

Index: Makefile
===================================================================
RCS file: /home/imp/FreeBSD/CVS/src/sys/modules/Makefile,v
retrieving revision 1.171
diff -u -r1.171 Makefile
--- Makefile	2001/03/09 20:10:30	1.171
+++ Makefile	2001/03/19 19:17:28
@@ -30,4 +30,8 @@
 SUBDIR+=osf1
 .endif
 
+.if defined(MODULES_OVERRIDE)
+SUBDIR=${MODULES_OVERRIDE}
+.endif
+
 .include <bsd.subdir.mk>


Should be all that's needed.  You can list all the directories you
want in there, or trees of directories.  No need to go and get extra
fancy with this.  Peter is working on a better scheme for -current and
this is minimally invasive in -stable.

People would just add a

makeoptions	MODULES_OVERRIDE="pcic sound/pcm sound/drivers/ex137x"

to their kernel config files and be done with it.

While this doesn't provide the NO_KMOD_xxx functionality, I don't
think that's needed.  People are much much more likely to compile just
what they want and nothing else than they are to compile the defaults
with one or two things trimmed out.

Warner

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103251840.f2PIeE973790>