From owner-freebsd-arch@FreeBSD.ORG Wed Jul 23 03:02:39 2003 Return-Path: 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 576B337B401 for ; Wed, 23 Jul 2003 03:02:39 -0700 (PDT) Received: from gurney.bluecom.no (gurney.bluecom.no [217.118.32.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id A38F543FBF for ; Wed, 23 Jul 2003 03:02:38 -0700 (PDT) (envelope-from eirikn@kerneled.com) Received: from eirikn.net (a217-118-47-91.bluecom.no [217.118.47.91]) by gurney.bluecom.no (Postfix) with ESMTP id 06AEEA7AE1 for ; Wed, 23 Jul 2003 12:02:37 +0200 (CEST) Received: by eirikn.net (Postfix, from userid 1001) id 825C456; Wed, 23 Jul 2003 12:04:44 +0200 (CEST) Date: Wed, 23 Jul 2003 12:04:44 +0200 From: Eirik Nygaard To: arch@freebsd.org Message-ID: <20030723100444.GA83571@eirikn.net> Mail-Followup-To: arch@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ReaqsoxgOBHFXBhH" Content-Disposition: inline User-Agent: Mutt/1.5.4i Subject: Re: module opt_* building X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: eirikn@kerneled.com List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jul 2003 10:02:39 -0000 --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 21, 2003 at 01:08:36AM -0700, John-Mark Gurney wrote: > I recently realized that for kernel module building, we can simply create > a symlink pointing to the opt_*.h file created by config. (See attached > patch.) >=20 > This only is part of the work. The problem is that the modules/Makefile's > define a target, which needs to be overriden in the case of being built > as part of the kernel, and left intact when building standalone. >=20 > The only thing I can think of is to add a opt_xxx.h_def or something > similar to the target in the modules/Makefile, and then add a dependancy > on that target in the standalone case. I did not come up with another way to do it so I used the described approach. Did not attach the patch, but it can be found at http://kerneled.com/eirikn/freebsd/kmod_modules.diff > I have thought about a way to automate building of these options. It'd > require setting up a file with defaults to build from. Extending options > files? Yet another place to list options doesn't seem like a good idea. >=20 > Comments? The attached a patch symlinks the opt_*.h files and the files created by makeobjops.awk(So they don't have to be created several times in one kernel build). Sent this mail to John-Mark Gurney last night by mistake, hit the wrong replay button. --=20 Eirik Nygaard PGP Key: 83C55EDE --ReaqsoxgOBHFXBhH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/Hl281JB0Z4PFXt4RAraVAJwJ3LDEiYSHCKgLQYwFHBG9iD/MWwCeL5/H RPBcXOyxZkxw3Y10/UmW5BM= =GtQb -----END PGP SIGNATURE----- --ReaqsoxgOBHFXBhH--