Creating a kernel with only the drivers used by your computer

If you want to create a kernel with only the driver for your system then use the diet-kconfig:
http://mirror.leaseweb.com/kernel/people/tiwai/misc/diet-kconfig

Move to kernel source code that you want to compile and execute:
$ ./diet-kconfig -a i686

When you selected all basic information then leave it and execute:
$ make
$ sudo make install

Tip: if you want to convert all modules into built-in driver in the kernel then just edit the kconfig_mod function of diet-kconfig replacing ‘$1’=m/’ by ‘$1’=y/’ .

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s