Honor MODULES_OVERRIDE

Skip Ford skip.ford at verizon.net
Fri Oct 24 01:44:16 PDT 2003


Makefiles in sys/ should honor MODULES_OVERRIDE if defined.

Index: sys/Makefile
===================================================================
RCS file: /home/dcvs/src/sys/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- sys/Makefile	20 Oct 2003 04:47:30 -0000	1.7
+++ sys/Makefile	24 Oct 2003 06:10:22 -0000
@@ -15,7 +15,11 @@
 # KLD modules build for both a.out and ELF
 # note: emulation must come before dev (for arch_svr4 softlink)
 .if defined(MODULES_WITH_WORLD)
+.if defined(MODULES_OVERRIDE)
+SUBDIR+=${MODULES_OVERRIDE}
+.else
 SUBDIR+=bus checkpt crypto emulation dev kern net netgraph netproto vfs
+.endif
 .endif
 
 HTAGSFLAGS+= -at `awk -F= '/^RELEASE *=/{release=$2}; END {print "FreeBSD", release, "kernel"}' < conf/newvers.sh`
Index: sys/Makefile.modules
===================================================================
RCS file: /home/dcvs/src/sys/Makefile.modules,v
retrieving revision 1.2
diff -u -r1.2 Makefile.modules
--- sys/Makefile.modules	20 Oct 2003 04:47:30 -0000	1.2
+++ sys/Makefile.modules	24 Oct 2003 04:43:28 -0000
@@ -2,7 +2,11 @@
 # in Makefile).
 #
 # $DragonFly: src/sys/Makefile.modules,v 1.2 2003/10/20 04:47:30 dillon Exp $
+.if defined(MODULES_OVERRIDE)
+SUBDIR=${MODULES_OVERRIDE}
+.else
 SUBDIR=bus checkpt crypto emulation dev kern net netgraph netproto vfs
+.endif
 
 .include <bsd.subdir.mk>
 
-- 
Skip





More information about the Submit mailing list