Re: modules & options

看板DFBSD_kernel作者時間21年前 (2004/09/06 15:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串7/8 (看更多)
--opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 06, 2004 at 03:20:47AM +0200, Simon 'corecode' Schubert wrote: > On 06.09.2004, at 02:42, Matthew Dillon wrote: > > Ouch. No, that's too non-deterministic. What we need is to check > > whether the module is being built by a kernel build (adding a make > > variable if necessary) and if so add an unconditional rule to copy= =20 > >the > > opt_* file if that is the case, else just create an empty file. >=20 > yea, except for the needed source dependancy on the kernel option=20 > header file, my version does the same (checking for kernel build is=20 > here simply checking for file existance, though this can be advanced=20 > somehow). I was hoping for a more terse version than the one below... >=20 > maybe i have some idea whilst sleeping >=20 > cheers > simon >=20 > >.if !target(opt_blah.h) > >.if (some way of determing that we are a kernel build) > > > >opt_blah.h: ${MAKEOBJDIRPREFIX}/opt_blah.h > > install ${.ALLSRC:M*.h} ${.TARGET} > > > >.else > > > >opt_blah.h: > > touch ${.TARGET} > > > >.endif > >.endif >=20 > --=20 > /"\ > \ / > \ ASCII Ribbon Campaign > / \ Against HTML Mail and News >=20 I made some patches for this back int the pre-FreeBSD 5.1, I will see if I = can figur out where I let them live after school today. --=20 Eirik Nygaard eirikn@kerneled.com --opJtzjQTFsWo+cga Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBPAsY1JB0Z4PFXt4RAjmPAKCaNWPZgt9yYA/FanMtE4SYsvnFsgCfX3RH 31UkocAs6yW0v/kqaWnUw3k= =nBuF -----END PGP SIGNATURE----- --opJtzjQTFsWo+cga--
文章代碼(AID): #11F19v00 (DFBSD_kernel)
文章代碼(AID): #11F19v00 (DFBSD_kernel)