Re: modules & options

看板DFBSD_kernel作者時間21年前 (2004/09/06 08:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/8 (看更多)
--Apple-Mail-16-158436150 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On 05.09.2004, at 19:14, Matthew Dillon wrote: > :> Is there a way to achieve what I want (kldload vesa but keep > debugging > :> output)? > :we should use this for every KLD, in my opinion. > I'd say 'maybe', though the mechanism should be to 'cp' the opt > file > into the module objdir rather then to use .PATH to access the > kernel > objdir. .PATH is too dangerous to be used in that manner. what about that: opt_vesa.h: _KERNELOPTS touch ${.TARGET} _KERNELOPTS: .USE @if [ -f ${MAKEOBJDIRPREFIX:Q}/${.TARGET:Q} ]; \ then \ printf 'Pulling config file "%s" from kernel build tree\n' ${.TARGET:Q}; \ cp ${MAKEOBJDIRPREFIX:Q}/${.TARGET:Q} ${.TARGET:Q}; \ fi cheers simon -- /"\ \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --Apple-Mail-16-158436150 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFBO6w5r5S+dk6z85oRAvOvAJ9sbvpC7QeCaxa5N4/JwKR2tlmthgCg1WJV dgovAey5TBzpSOhQdlAxhFQ= =ylge -----END PGP SIGNATURE----- --Apple-Mail-16-158436150--
文章代碼(AID): #11Ex0700 (DFBSD_kernel)
文章代碼(AID): #11Ex0700 (DFBSD_kernel)