Re: modules & options
--Apple-Mail-18-162330341
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed
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
> the
> opt_* file if that is the case, else just create an empty file.
yea, except for the needed source dependancy on the kernel option
header file, my version does the same (checking for kernel build is
here simply checking for file existance, though this can be advanced
somehow). I was hoping for a more terse version than the one below...
maybe i have some idea whilst sleeping
cheers
simon
> .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
--
/"\
\ /
\ ASCII Ribbon Campaign
/ \ Against HTML Mail and News
--Apple-Mail-18-162330341
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)
iD8DBQFBO7tvr5S+dk6z85oRAl7WAJ4xcHM+HNfGIQ6Icmgy6XWOaNOkuQCgiw7g
hHRMapkAebcdCj8KY6/054k=
=9ZyY
-----END PGP SIGNATURE-----
--Apple-Mail-18-162330341--
討論串 (同標題文章)
完整討論串 (本文為第 6 之 8 篇):