cvs commit: src/sys/dev/ata ata-queue.c
Warner Losh
imp at bsdimp.com
Tue May 17 11:40:44 PDT 2005
From: Alexander Leidinger <Alexander at Leidinger.net>
> And I haven't seen a technical reason why the classic way of doing it is bad.
> Did I missed it or do I have to say "I don't get it"?
It is better because it uses tools in your build tree, rather than
what's installed on the system. For development, the classic way is
as good as the new way. But for upgrades and such, you can get into
lots of trouble when config or binutils, etc change.
> >> If you just change one file and you want to recompile the kernel, which
> >> procedure is faster?
> >
> > They're equally fast, though 'buildkernel' normally does 'make clean'
> > and 'make depend' every time. Use NO_KERNELCLEAN when you can get
> > away with it (which is most of the time; I have it in make.conf) and
> > NO_KERNELDEPEND when you know you haven't changed the dependency tree
> > (i.e. when you haven't changed any #include statements). All the
> > usual tricks (KODIR, NO_MODULES, MODULES_OVERRIDE) also work.
>
> The "equally fast, though ..." part is funny (at least to me, YMMV)...
>
> So I have to type "make buildkernel -DNO_KERNELDEPEND" (while having
> NO_KERNELCLEAN=yes in make.conf) instead of "make"... sorry, but I'm too
> lazy to do this (at least as long as I don't get a benefit out of using the
> new way).
alias a "make buildkernel -DNO_KERNELDEPEND"
Warner
More information about the cvs-src
mailing list