Re: modules & options

看板DFBSD_kernel作者時間21年前 (2004/09/06 09:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/8 (看更多)
:what about that: 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 the opt_* file if that is the case, else just create an empty file. ..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 -Matt Matthew Dillon <dillon@backplane.com>
文章代碼(AID): #11ExRK00 (DFBSD_kernel)
文章代碼(AID): #11ExRK00 (DFBSD_kernel)