[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: do I really need "make-kpkg clean"?

On Sunday, 01.05.2005 at 18:41 -0400, H. S. wrote:

> I am compiling a new kernel and tinkering with various options. If I
> just compiled a new version and just want to make slight changes in
> it, do I really need to do "make-kpkg clean" and wait an hour before I
> get a new one?

Just read this entire thread and have a suggestion for you: install
'ccache'.  As the package description says: "ccache is a compiler cache.
It speeds up re-compilation of C/C++ code by caching previous compiles
and detecting when the same compile is being done again."

This means that you can do a 'make-kpkg clean' but if any source is
being rebuilt *exactly* as during the last kernel build, the results
will be pulled from the cache rather than having to be recompiled.

Assuming your kernel compilation is a CPU-bound task, this will help
hugely for the second and subsequent builds.

If, however, the problem is disk access speed, then it may not help so

Also, if you're feeling brave, you can combine ccache with 'distcc', to
spread the compilation load across multiple hosts.

Please don't CC me on list messages!
Dave Ewart - davee@sungate.co.uk - jabber: davee@jabber.org
All email from me is now digitally signed, key from http://www.sungate.co.uk/
Fingerprint: AEC5 9360 0A35 7F66 66E9 82E4 9E10 6769 CD28 DA92

Attachment: signature.asc
Description: Digital signature

Reply to: