From owner-freebsd-arch Sat Mar 24 23:57:37 2001 Delivered-To: freebsd-arch@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id D420F37B71E for ; Sat, 24 Mar 2001 23:57:29 -0800 (PST) (envelope-from roam@orbitel.bg) Received: (qmail 38630 invoked by uid 1000); 25 Mar 2001 07:56:32 -0000 Date: Sun, 25 Mar 2001 10:56:32 +0300 From: Peter Pentchev To: arch@FreeBSD.org Subject: Re: Building only a specified list of kernel modules Message-ID: <20010325105631.C36335@ringworld.oblivion.bg> Mail-Followup-To: arch@FreeBSD.org References: <20010324211140.C4304@ringworld.oblivion.bg> <20010324150603.A5365@dragon.nuxi.com> <20010325102013.B36335@ringworld.oblivion.bg> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010325102013.B36335@ringworld.oblivion.bg>; from roam@orbitel.bg on Sun, Mar 25, 2001 at 10:20:13AM +0300 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Mar 25, 2001 at 10:20:13AM +0300, Peter Pentchev wrote: > On Sat, Mar 24, 2001 at 03:06:04PM -0800, David O'Brien wrote: > > On Sat, Mar 24, 2001 at 09:11:40PM +0200, Peter Pentchev wrote: > > > 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 ;) > > > > I like this patch for RELENG_4 which will not get any of Peter's new and > > improved config(8) work. > > Yes, IMHO RELENG_4 systems could benefit from this, especially those > for which root fs space is at a premium. OK, here's a RELENG_4 patch, which also controls building the various netgraph, syscons and sound modules (since I'm using the audio/aureal-kmod port, not an in-tree driver, the ability to have just snd.ko and snd_pcm.ko in there is, well, cool ;) G'luck, Peter -- This sentence contains exactly threee erors. Index: src/etc/defaults/make.conf =================================================================== RCS file: /home/ncvs/src/etc/defaults/make.conf,v retrieving revision 1.97.2.45 diff -u -r1.97.2.45 make.conf --- src/etc/defaults/make.conf 2001/03/22 01:43:39 1.97.2.45 +++ src/etc/defaults/make.conf 2001/03/25 07:46:03 @@ -119,6 +119,48 @@ # 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= accf_data accf_http agp aha amr an aue \ +# ccd cd9660 coda cue dc fdesc fxp if_disc if_ef if_ppp \ +# if_sl if_tap if_tun ip6fw ipfilter ipfw ispfw joy kernfs kue \ +# linux md mfs mii mlx msdos ncp pcn netgraph nfs ntfs nullfs \ +# nwfs portal procfs rl sf sis sk sound ste syscons ti tl twe \ +# ugen uhid ukbd ulpt umapfs umass umodem ums union usb uscanner \ +# vinum vn vpo vr wb wx xl +# +# Additional kernel modules to build on i386 +# +#MODULES_LIST_I386= aac asr bktr coff fpu gnufpu ibcs2 linprocfs mly ray \ +# splash streams svr4 vesa wi +# +# Additional kernel modules to build on PC98 +# +#MODULES_LIST_PC98= snc +# +# Additional kernel modules to build on Alpha +# +#MODULES_LIST_ALPHA= osf1 +# +# Netgraph modules to build +# +#MODULES_LIST_NETGRAPH= async bpf bridge cisco echo ether frame_relay hole \ +# iface ksocket lmi mppc netgraph one2many ppp pppoe pptpgre rfc1490 \ +# socket tee tty UI vjc +# +# Sound modules to build +# +#MODULES_LIST_SOUND= ad1816 cmi cs4281 csa ds1 emu10k1 es137x ess fm801 \ +# maestro maestro3 mss neomagic sb16 sb8 sbc solo t4dwave via82c686 +# +# Syscons modules to build (mainly screensavers) +# +#MODULES_LIST_SYSCONS= blank daemon fade fire green logo rain snake star warp +# +# Additional syscons modules to build on i386 +# +#MODULES_LIST_SYSCONS_I386= apm +# # # 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.110.2.23 diff -u -r1.110.2.23 Makefile --- src/sys/modules/Makefile 2001/03/13 01:26:22 1.110.2.23 +++ src/sys/modules/Makefile 2001/03/25 07:46:03 @@ -2,6 +2,9 @@ # XXX present but broken: ip_mroute_mod pcic +.if defined(MODULES_LIST) +SUBDIR= ${MODULES_LIST} +.else SUBDIR= accf_data accf_http agp aha amr an aue \ ccd cd9660 coda cue dc fdesc fxp if_disc if_ef if_ppp \ if_sl if_tap if_tun ip6fw ipfilter ipfw ispfw joy kernfs kue \ @@ -9,19 +12,32 @@ nwfs portal procfs rl sf sis sk sound ste syscons ti tl twe \ ugen uhid ukbd ulpt umapfs umass umodem ums union usb uscanner \ vinum vn vpo vr 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 asr bktr coff fpu gnufpu ibcs2 linprocfs mly ray splash streams \ svr4 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 Index: src/sys/modules/netgraph/Makefile =================================================================== RCS file: /home/ncvs/src/sys/modules/netgraph/Makefile,v retrieving revision 1.8.2.4 diff -u -r1.8.2.4 Makefile --- src/sys/modules/netgraph/Makefile 2000/11/22 19:06:12 1.8.2.4 +++ src/sys/modules/netgraph/Makefile 2001/03/25 07:46:03 @@ -1,11 +1,15 @@ # $Whistle: Makefile,v 1.5 1999/01/24 06:48:37 archie Exp $ # $FreeBSD: src/sys/modules/netgraph/Makefile,v 1.8.2.4 2000/11/22 19:06:12 archie Exp $ +.if defined(MODULES_LIST_NETGRAPH) +SUBDIR= ${MODULES_LIST_NETGRAPH} +.else SUBDIR= async bpf bridge cisco echo ether frame_relay hole iface ksocket lmi \ netgraph one2many ppp pppoe pptpgre rfc1490 socket tee tty UI vjc .if !defined(NOCRYPT) && exists(${.CURDIR}/../../crypto/rc4/rc4.c) SUBDIR+= mppc +.endif .endif .include Index: src/sys/modules/sound/driver/Makefile =================================================================== RCS file: /home/ncvs/src/sys/modules/sound/driver/Makefile,v retrieving revision 1.5.2.6 diff -u -r1.5.2.6 Makefile --- src/sys/modules/sound/driver/Makefile 2001/03/04 08:15:29 1.5.2.6 +++ src/sys/modules/sound/driver/Makefile 2001/03/25 07:46:03 @@ -1,6 +1,10 @@ # $FreeBSD: src/sys/modules/sound/driver/Makefile,v 1.5.2.6 2001/03/04 08:15:29 scottl Exp $ -SUBDIR = ad1816 cmi cs4281 csa ds1 emu10k1 es137x ess fm801 maestro -SUBDIR += maestro3 mss neomagic sb16 sb8 sbc solo t4dwave via82c686 +.if defined(MODULES_LIST_SOUND) +SUBDIR= ${MODULES_LIST_SOUND} +.else +SUBDIR= ad1816 cmi cs4281 csa ds1 emu10k1 es137x ess fm801 maestro +SUBDIR+=maestro3 mss neomagic sb16 sb8 sbc solo t4dwave via82c686 +.endif .include Index: src/sys/modules/syscons/Makefile =================================================================== RCS file: /home/ncvs/src/sys/modules/syscons/Makefile,v retrieving revision 1.11.2.1 diff -u -r1.11.2.1 Makefile --- src/sys/modules/syscons/Makefile 2000/05/06 02:09:48 1.11.2.1 +++ src/sys/modules/syscons/Makefile 2001/03/25 07:46:03 @@ -1,5 +1,8 @@ # $FreeBSD: src/sys/modules/syscons/Makefile,v 1.11.2.1 2000/05/06 02:09:48 obrien Exp $ +.if defined(MODULES_LIST_SYSCONS) +SUBDIR= ${MODULES_LIST_SYSCONS} +.else SUBDIR = SUBDIR += blank SUBDIR += daemon @@ -11,9 +14,14 @@ SUBDIR += snake SUBDIR += star SUBDIR += warp +.endif .if ${MACHINE_ARCH} == "i386" +.if defined(MODULES_LIST_SYSCONS_I386) +SUBDIR+=${MODULES_LIST_SYSCONS_I386} +.else SUBDIR += apm +.endif .endif .include To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message