From owner-freebsd-arch Tue Aug 6 11:53:53 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B39F237B400; Tue, 6 Aug 2002 11:53:50 -0700 (PDT) Received: from mailout10.sul.t-online.com (mailout10.sul.t-online.com [194.25.134.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C5A2643E6A; Tue, 6 Aug 2002 11:53:49 -0700 (PDT) (envelope-from corecode@corecode.ath.cx) Received: from fwd09.sul.t-online.de by mailout10.sul.t-online.com with smtp id 17c9Si-00027k-09; Tue, 06 Aug 2002 20:53:44 +0200 Received: from spirit.zuhause.stoert.net (320050403952-0001@[217.224.164.220]) by fmrl09.sul.t-online.com with esmtp id 17c9SZ-0sy89oC; Tue, 6 Aug 2002 20:53:35 +0200 Received: from terrorfish.uni.stoert.net (terrorfish.uni.stoert.net [10.150.180.178]) by spirit.zuhause.stoert.net (8.11.6/8.11.6) with ESMTP id g76IrUl24730; Tue, 6 Aug 2002 20:53:30 +0200 (CEST) (envelope-from corecode@corecode.ath.cx) Received: from terrorfish.uni.stoert.net (localhost [127.0.0.1]) by terrorfish.uni.stoert.net (8.12.5/8.12.5) with ESMTP id g76IqYbU024462; Tue, 6 Aug 2002 20:52:34 +0200 (CEST) (envelope-from corecode@terrorfish.uni.stoert.net) Received: (from corecode@localhost) by terrorfish.uni.stoert.net (8.12.5/8.12.5/Submit) id g76IqYse024461; Tue, 6 Aug 2002 20:52:34 +0200 (CEST) (envelope-from corecode) Date: Tue, 6 Aug 2002 20:52:30 +0200 From: "Simon 'corecode' Schubert" To: arch@FreeBSD.ORG Cc: dev-null@NUXI.com, rwatson@FreeBSD.ORG Subject: Re: Conditionally building modules based on kernel options Message-Id: <20020806205230.00106c25.corecode@corecode.ath.cx> In-Reply-To: <20020806165901.GB18409@dragon.nuxi.com> References: <20020806165901.GB18409@dragon.nuxi.com> X-Mailer: Sylpheed version 0.8.1claws (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="=.E9ABVOxVMeeloS" X-Sender: 320050403952-0001@t-dialin.net Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=.E9ABVOxVMeeloS Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 6 Aug 2002 09:59:01 -0700 David O'Brien wrote: > On Mon, Aug 05, 2002 at 12:19:48PM -0400, Robert Watson wrote: > > Index: src/sys/conf/kern.pre.mk > > =================================================================== > > RCS file: /home/ncvs/src/sys/conf/kern.pre.mk,v > > retrieving revision 1.16 > > diff -u -r1.16 kern.pre.mk > > --- src/sys/conf/kern.pre.mk 22 Jul 2002 00:15:01 -0000 1.16 > > +++ src/sys/conf/kern.pre.mk 2 Aug 2002 22:20:33 -0000 > > @@ -89,7 +89,7 @@ > > # MKMODULESENV is set here so that port makefiles can augment > > # them. > > > > -MKMODULESENV= MAKEOBJDIRPREFIX=${.OBJDIR}/modules KMODDIR=${KODIR} > > +MKMODULESENV= MAKEOBJDIRPREFIX=${.OBJDIR}/modules KMODDIR=${KODIR} AUTOMATIC_BUILD=yes > Please state (ie, document) what the AUTOMATIC_BUILD knob is supose to > acomplish. i thought of this: o when building modules as dependency of the standard buildkernel stuff, one can prevent these modules to be built if the user didn't put options MAC into his KERNCONF. o if user does cd sys/modules && make himself, there needn't be a compile/KERNCONF directory, thus we don't know if user didn't choose MAC. AUTOMATIC_BUILD is just a knob to tell sys/modules/Makefile wherer it has been invoked by a buildkernel or has been invoked manually. cheers simon ps: if some sentences don't make any sense, please forgive me, i just woke up :) -- /"\ http://corecode.ath.cx/#donate \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --=.E9ABVOxVMeeloS Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9UBrxr5S+dk6z85oRAh2qAKCTfM62MFfgrC2uKJ69ouf99D+TOwCeO9F1 cGBYv7e3ojvycrzZUkHXcIY= =fSA/ -----END PGP SIGNATURE----- --=.E9ABVOxVMeeloS-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message