Re: Suggestions request for speed-up kernel compilation

From: Sven-Haegar Koch
Date: Fri Apr 24 2009 - 06:38:31 EST


On Fri, 24 Apr 2009, Alessio Igor Bogani wrote:

> I'm a kernel newbie and I would be very happy to receive some tips
> about kernel compilation from experienced developers.
>
> I have recently elaborated some trivial patches. For each one I have
> done a build test at minimum and I find myself spend a lot of time
> waiting my Core Duo to accomplish this task. Make is a very smart tool
> but after a git pull or a git fetch origin/git reset --hard origin it
> can't help as desired.
>
> Unfortunately I don't have a clustered compilation farm under my control. :-)
>
> Anyone can suggest me how mitigate that issue?

What helps me with this is using ccache (compiler cache) - it keeps the
compile results inside a cache and when compiling the same file again it
fetches the result from there.

on debian it is just:
apt-get install ccache
export PATH=/usr/lib/ccache:$PATH
...work on kernel like normal...


c'ya
sven

--
The lights are fading out, once more...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/