From owner-freebsd-hackers Sun Mar 25 10:27: 7 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id B3F7637B71A for ; Sun, 25 Mar 2001 10:27:04 -0800 (PST) (envelope-from roam@orbitel.bg) Received: (qmail 5105 invoked by uid 1000); 25 Mar 2001 18:26:05 -0000 Date: Sun, 25 Mar 2001 21:26:05 +0300 From: Peter Pentchev To: Warner Losh Cc: hackers@FreeBSD.ORG Subject: Re: Patch to disallow the build of modules Message-ID: <20010325212605.E3241@ringworld.oblivion.bg> Mail-Followup-To: Warner Losh , hackers@FreeBSD.ORG References: <20010324204212.A777@nebula.cybercable.fr> <200103251823.f2PINK973628@harmony.village.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200103251823.f2PINK973628@harmony.village.org>; from imp@harmony.village.org on Sun, Mar 25, 2001 at 11:23:20AM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Mar 25, 2001 at 11:23:20AM -0700, Warner Losh wrote: > In message <20010324204212.A777@nebula.cybercable.fr> Maxime Henrion writes: > : Here is a patch to select the modules you want and don't want. > : The patch is for /usr/src/sys/modules/Makefile from RELENG_4. > > My patch is even simpler: > > 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 > > > I then put make > > makeoptions MODULES_OVERRIDE="pcic pccard cardbus pccbb oldcard" > > in my config file. This gives you the ability to opt into just those > modules you want. Yes, I know that it computes SUBDIR twice in > modules/Makefile, but I did that to minimize diffs between my Makefile > and the real one for easier merging. See -arch for a detailed discussion :) G'luck, Peter -- What would this sentence be like if pi were 3? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message