Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Mar 2001 21:11:40 +0200
From:      Peter Pentchev <roam@orbitel.bg>
To:        arch@FreeBSD.org
Subject:   Building only a specified list of kernel modules
Message-ID:  <20010324211140.C4304@ringworld.oblivion.bg>

next in thread | raw e-mail | index | archive | help
Hi,

Any severe objections to the attached patch?  (and no, I still have not
taken the time to put my ICBM address into freebsd.committers.markers,
so any objections will have to be in the form of e-mail ;)

Something similar could be added for the sound/, netgraph/, et al
multi-tiered subdirs.  Could try this in a followup patch tomorrow,
need sleep right now :(

G'luck,
Peter

-- 
I am jealous of the first word in this sentence.

Index: src/etc/defaults/make.conf
===================================================================
RCS file: /home/ncvs/src/etc/defaults/make.conf,v
retrieving revision 1.153
diff -u -r1.153 make.conf
--- src/etc/defaults/make.conf	2001/03/14 11:30:57	1.153
+++ src/etc/defaults/make.conf	2001/03/24 19:07:06
@@ -116,6 +116,31 @@
 # To build sys/modules when building the world (our old way of doing things)
 #MODULES_WITH_WORLD=true	# do not build modules when building kernel
 #
+# To only build specific kernel modules
+#
+#MODULES_LIST=	3dfx accf_data accf_http agp aha amr an aue \
+#	cam ccd cd9660 coda cue dc de ed fdesc fxp if_disc if_ef \
+#	if_ppp if_sl if_tap if_tun ip6fw ipfilter ipfw ispfw joy kue \
+#	libmchain linux lnc md mfs mii mlx msdos ncp netgraph nfs ntfs nullfs \
+#	nwfs pcn portal procfs random \
+#	rl rp sf sis sk sn sound sppp ste sym syscons sysvipc ti tl twe tx \
+#	udbp ugen uhid ukbd ulpt umapfs umass umodem ums union urio usb \
+#	uscanner \
+#	vinum vpo vr vx wb wx xl
+#
+# Additional kernel modules to build on i386
+#
+#MODULES_LIST_I386=	aac aic ar asr atspeaker bktr coff el fpu gnufpu \
+#	ibcs2 linprocfs mly pecoff ray s3 splash sr streams vesa wi
+#
+# Additional kernel modules to build on PC98
+#
+#MODULES_LIST_PC98=	snc
+#
+# Additional kernel modules to build on Alpha
+#
+#MODULES_LIST_ALPHA=	osf1
+#
 #
 # The following controls building optional IDEA code in libcrypto and
 # certain ports.  Patents are involved - you must not use this unless
Index: src/sys/modules/Makefile
===================================================================
RCS file: /home/ncvs/src/sys/modules/Makefile,v
retrieving revision 1.171
diff -u -r1.171 Makefile
--- src/sys/modules/Makefile	2001/03/09 20:10:30	1.171
+++ src/sys/modules/Makefile	2001/03/24 19:07:06
@@ -2,10 +2,17 @@
 
 # XXX present but broken: ip_mroute_mod
 
+# When modules are added/removed from the following SUBDIR lists,
+# please make sure the corresponding MODULES_LIST defines
+# in /etc/defaults/make.conf are updated as well.
+
 .if exists(${.CURDIR}/../crypto) && !defined(NOCRYPT)
 _random=	random
 .endif
 
+.if defined(MODULES_LIST)
+SUBDIR=	${MODULES_LIST}
+.else
 SUBDIR=	3dfx accf_data accf_http agp aha amr an aue \
 	cam ccd cd9660 coda cue dc de ed fdesc fxp if_disc if_ef \
 	if_ppp if_sl if_tap if_tun ip6fw ipfilter ipfw ispfw joy kue \
@@ -15,19 +22,32 @@
 	udbp ugen uhid ukbd ulpt umapfs umass umodem ums union urio usb \
 	uscanner \
 	vinum vpo vr vx wb wx xl
+.endif
 
 # XXX some of these can move to the general case when de-i386'ed
 .if ${MACHINE_ARCH} == "i386"
+.if defined(MODULES_LIST_I386)
+SUBDIR+=${MODULES_LIST_I386}
+.else
 SUBDIR+=aac aic ar asr atspeaker bktr coff el fpu gnufpu ibcs2 linprocfs mly \
 	pecoff ray s3 splash sr streams vesa wi
 .endif
+.endif
 
 .if ${MACHINE} == "pc98"
+.if defined(MODULES_LIST_PC98)
+SUBDIR+=${MODULES_LIST_PC98}
+.else
 SUBDIR+=snc
 .endif
+.endif
 
 .if ${MACHINE_ARCH} == "alpha"
+.if defined(MODULES_LIST_ALPHA)
+SUBDIR+=${MODULES_LIST_ALPHA}
+.else
 SUBDIR+=osf1
+.endif
 .endif
 
 .include <bsd.subdir.mk>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010324211140.C4304>