How can I speed up the build process?
- Use
-j
switch to enable parallel builds - Use local mirror to avoid downloads (advanced build options)
CONFIG_LOCALMIRROR="file:///home/username/mirror
- use local feeds (src-link) instead of downloading with git
Building on multi-core CPU
Build may FAIL
The build process can be accelerated by running multiple concurrent job processes using the -j
-option:
make -j 3
- Use the standard formula
<your number of CPU cores + 1>
- If this produces random build errors try compiling again without the
-j
-option
Errors building gcc
If the build fails with errors that include [s-attrib] Killed
and [all-gcc] Error 2
while compiling gcc, this indicates you are out of disk space or RAM. This could be likely if you are building within a virtual machine with < 1 GB RAM allocated and no swap.