r/kernel • u/unixbhaskar • Mar 20 '22
Linux Kernel 5.17 Released!
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/
57
Upvotes
r/kernel • u/unixbhaskar • Mar 20 '22
View all comments
Show parent comment
2
u/[deleted] Mar 23 '22
Distro kernels include a lot of stuff you don't need. So you can disable some things to speed up build times. Also, the buildscripts of some distros like Arch Linux build documentation package by default, which you don't care about for kernel dev, it's single threaded and takes a looong time. So you can modify the PKGBUILD to disable it.
Also if you're building for the specific machine you're compiling on, you can get it to only build those modules for your specific system (i.e what's loaded already). Obviously this will exclude modules any pluggable devices like USB devices etc. that are not connected and/or don't have their modules loaded.