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
 


osprey

Active Member
Joined
Apr 15, 2022
Messages
133
Reaction score
72
Credits
1,206
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.
 
OP
szlance

szlance

New Member
Joined
Nov 23, 2021
Messages
13
Reaction score
7
Credits
79
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
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online

No members online now.

Top