Compile a kernel quicker with only wanted modules.

Asked by inurneck

In FreeBSD, I may add:

MODULES_OVERRIDE= some_module

To compile only the modules I am actually going to use.

Or:

NO_MODULES = true
If I don't need any.

I add these to make.conf

I can compile a kernel in one minute and 45 seconds using this method and a few others such as mounting /usr/src and /usr/obj in memory on FreeBSD.
How can I achieve this in ubuntu? Compiling a kernel is taking me over an hour on a box with two processors and 2 gigs of ram. Thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu yelp Edit question
Assignee:
No assignee Edit question
Solved by:
inurneck
Solved:
Last query:
Last reply:
Revision history for this message
inurneck (inurneck) said :
#1

The kernel I started compiling when I posted this -4 hours ago is still compiling 2200 modules. Anybody wanna chime in or should I dumb down my question.

Revision history for this message
inurneck (inurneck) said :
#2

Thank you all for your kind and informative answers. I fixed it using some more well defined google searches which is what I should have done in the first place; apparently..