Date: Sun, 25 Mar 2001 21:26:05 +0300 From: Peter Pentchev <roam@orbitel.bg> To: Warner Losh <imp@harmony.village.org> Cc: hackers@FreeBSD.ORG Subject: Re: Patch to disallow the build of modules Message-ID: <20010325212605.E3241@ringworld.oblivion.bg> In-Reply-To: <200103251823.f2PINK973628@harmony.village.org>; from imp@harmony.village.org on Sun, Mar 25, 2001 at 11:23:20AM -0700 References: <20010324204212.A777@nebula.cybercable.fr> <200103251823.f2PINK973628@harmony.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <bsd.subdir.mk>
>
>
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010325212605.E3241>
