Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Building Rockbox faster with make -j

Re: Building Rockbox faster with make -j

From: Thomas Martitz <thomas.martitz_at_fhtw-berlin.de>
Date: Fri, 06 Mar 2009 03:57:06 +0100

Boris Gjenero schrieb:
> Hello,
>
> By default GNU make runs one job at a time. This fails to take
> advantage of multiple cores and/or multiple CPUs on the system that's
> doing the building. With the -j option one can specify how many jobs
> to run at a time. I have a 4-core Intel Q6600 CPU, and -j 4 cuts the
> build time in half, from about 10 minutes to about 5 minutes. Rockbox
> seems to build correctly; what I got with -j 4 is identical to what I
> get without the -j option. The only disadvantage is that output
> messages from different jobs can be intermingled.
>
> Here is some info on this GNU make option:
> http://www.gnu.org/software/automake/manual/make/Parallel.html
>
> For now I've still been avoiding this option because when working on
> other patches or bugs I do not want to have potential problems from
> the build process. Is it okay to use the option?
>
> Regards,
>
> Boris
>
Totally fine. You might also try -j5 or just -j.

That works just fine.

The other question, I think 5 minutes is still a lot. Do you have ccache
installed?

Best regards.
Received on 2009-03-06


Page was last modified "Jan 10 2012" The Rockbox Crew
aaa