Re: modules & options
--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--
討論串 (同標題文章)
完整討論串 (本文為第 4 之 8 篇):