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

Well-Known Member
Joined
Apr 15, 2022
Messages
687
Reaction score
571
Credits
6,407
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
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online


Top