From owner-freebsd-bugs@FreeBSD.ORG Fri Jan 14 07:30:27 2005 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE16316A4CE for ; Fri, 14 Jan 2005 07:30:27 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1D2343D54 for ; Fri, 14 Jan 2005 07:30:27 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.1/8.13.1) with ESMTP id j0E7URFr033243 for ; Fri, 14 Jan 2005 07:30:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.1/8.13.1/Submit) id j0E7URIj033242; Fri, 14 Jan 2005 07:30:27 GMT (envelope-from gnats) Date: Fri, 14 Jan 2005 07:30:27 GMT Message-Id: <200501140730.j0E7URIj033242@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Edwin Groothuis Subject: Re: kern/76225: WITHOUT_MODULES option for sys/modules/Makefile X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Edwin Groothuis List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2005 07:30:28 -0000 The following reply was made to PR kern/76225; it has been noted by GNATS. From: Edwin Groothuis To: David Yeske Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: kern/76225: WITHOUT_MODULES option for sys/modules/Makefile Date: Fri, 14 Jan 2005 18:29:44 +1100 On Thu, Jan 13, 2005 at 10:46:05PM +0000, David Yeske wrote: > WITHOUT_MODULES is a list that can be set in /etc/make.conf > or per build so that the directorys in that list will be removed > from the list of directorys to build. This vastly speeds up kernel > compile time by allowing the user to specify to not build certain > modules. It is also useful to cherry pick a certain module and not > build it similar to the NO_PF and NO_IPFILTER options. The NO_PF > and NO_IPFILTER options could in theory be removed and set via > WITHOUT_MODULES= pf ipfilter If you add this to the Makefile in every subdirectory (this is for netgraph, for each directory please replace the string netgraph with the name of the current directory): .if ${MACHINE_ARCH} == "i386" # Things that don't compile on alpha or are aout specific: SUBDIR+= bluetooth .endif +CURDIR:=${.CURDIR:C/^.*\/modules\///} +.for d in ${SUBDIR} +.if ${WITHOUT_MODULES:Mnetgraph/${d}}!="" +SUBDIR:= ${SUBDIR:N${d}} +.endif +.endfor .include you can do: WITHOUT_MODULES= netgraph/one2many syscons/fire and then the modules netgraph/one2man and syscons/fire are ignored, while the rest is happily made. Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/