building a new kernel for ubuntu 10.04

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Wed May 12 20:50:56 UTC 2010


On Wed, May 12, 2010 at 04:27:32PM -0400, Jamon Camisso wrote:
> For make add -j to parallelize processes and speed up the compile, e.g.
> make -j $(($(grep processor /proc/cpuinfo -c) + 1))
> make -j $(awk -F "-" '{printf $2+2}' /sys/devices/system/cpu/possible)
> 
> Bash folk, syntax sanity check?
> 
> No point in wasting all but one of those cores in that fancy quad or
> octal core box sitting under your desk ;)

The kernel prefers using the environment MAKEFLAGS=-j# instead.
Safer apparently.  Also works with things like make-kpkg of course.

-- 
Len Sorensen
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list