From owner-freebsd-hackers Sun Mar 25 10:23:28 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id F295837B719 for ; Sun, 25 Mar 2001 10:23:23 -0800 (PST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.1/8.11.1) with ESMTP id f2PINK973628; Sun, 25 Mar 2001 11:23:20 -0700 (MST) (envelope-from imp@harmony.village.org) Message-Id: <200103251823.f2PINK973628@harmony.village.org> To: Maxime Henrion Subject: Re: Patch to disallow the build of modules Cc: hackers@FreeBSD.ORG In-reply-to: Your message of "Sat, 24 Mar 2001 20:42:12 +0100." <20010324204212.A777@nebula.cybercable.fr> References: <20010324204212.A777@nebula.cybercable.fr> Date: Sun, 25 Mar 2001 11:23:20 -0700 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message