compile the kernel

szlance

New Member
Joined
Nov 23, 2021
Messages
13
Reaction score
7
Credits
79
Dear All
I am compiling the kernel5.15,encountered some problems。
How to remove unwanted drivers in ,keep it simple
E.g:sound card driver,Graphics driver

thanks
 


The answer is in the kernel docs at:
That file is also in the kernel source tarball.
Select one of configuration applications mentioned there, e.g. make menuconfig.
Wander through the configuration until you find the drivers that you wish to exclude, mark them out, save the configuration and compile the kernel.

It's possible to "extract" such drivers from an existing kernel if they are there as loadable modules, in which case you can unload them and/or blacklist them.
 
The answer is in the kernel docs at:
That file is also in the kernel source tarball.
Select one of configuration applications mentioned there, e.g. make menuconfig.
Wander through the configuration until you find the drivers that you wish to exclude, mark them out, save the configuration and compile the kernel.

It's possible to "extract" such drivers from an existing kernel if they are there as loadable modules, in which case you can unload them and/or blacklist them.
thanks
 

Staff online


Top