Date: Wed, 23 Jul 2003 12:04:44 +0200 From: Eirik Nygaard <eirikn@kerneled.com> To: arch@freebsd.org Subject: Re: module opt_* building Message-ID: <20030723100444.GA83571@eirikn.net>
next in thread | raw e-mail | index | archive | help
--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 <eirikn@bluezone.no> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030723100444.GA83571>