Re: modules & options

看板DFBSD_kernel作者時間21年前 (2004/09/06 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/8 (看更多)
--Apple-Mail-10-125062744 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On 05.09.2004, at 14:34, Sascha Wildner wrote: > is it on purpose that the modules built with buildkernel do not honor > the options in the kernel config? seems so. I don't agree with that, though. > Is there a way to achieve what I want (kldload vesa but keep debugging > output)? yes: # Try and detect whether we are being built for a specific kernel ..if defined(MAKEOBJDIRPREFIX) && exists(${MAKEOBJDIRPREFIX}/opt_global.h) CFLAGS+= -I${MAKEOBJDIRPREFIX} ..PATH: ${MAKEOBJDIRPREFIX} ..endif .... opt_vesa.h: # .PATH searches only work for targes without source ..if !exists(opt_vesa.h) touch ${.TARGET} ..endif this means: iff the module is built by the kernel Makefile (which sets MAKEOBJDIRPREFIX appropriately) and iff opt_vesa.h is found, then the kernel opt_vesa.h is picked up. Else the "default" (which should be used for modules to be used for most people, i.e. GENERIC ABI compatibility) should be generated. we should use this for every KLD, in my opinion. cheers simon -- /"\ \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --Apple-Mail-10-125062744 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) iD8DBQFBOyner5S+dk6z85oRAjBLAKDMhR7+gDX6H03ieNgVPxrT4wkmlwCgsU6X gZnAzzXiIIRc5YVX87xk1Hc= =ktRt -----END PGP SIGNATURE----- --Apple-Mail-10-125062744--
文章代碼(AID): #11ErHv00 (DFBSD_kernel)
文章代碼(AID): #11ErHv00 (DFBSD_kernel)