Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Mar 2001 11:23:20 -0700
From:      Warner Losh <imp@harmony.village.org>
To:        Maxime Henrion <mux@qualys.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Patch to disallow the build of modules 
Message-ID:  <200103251823.f2PINK973628@harmony.village.org>
In-Reply-To: Your message of "Sat, 24 Mar 2001 20:42:12 %2B0100." <20010324204212.A777@nebula.cybercable.fr> 
References:  <20010324204212.A777@nebula.cybercable.fr>  

next in thread | previous in thread | raw e-mail | index | archive | help
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.

Warner

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?200103251823.f2PINK973628>