MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/linux/comments/9uxwli/lines_of_code_in_the_linux_kernel/e98r54t/?context=3
r/linux • u/udoprog • Nov 07 '18
169 comments sorted by
View all comments
Show parent comments
54
How does one compile it for only the current hardware?
105 u/[deleted] Nov 07 '18 You can run make localmodconfig in the kernel to build with only what is currently loaded (and you probably want to enable a few more on top of that for removable devices, etc). 19 u/[deleted] Nov 07 '18 How long has that been around? 31 u/dbbo Nov 07 '18 I remember using it on Debian Lenny, so probably about decade at least. 28 u/[deleted] Nov 07 '18 you're close https://github.com/torvalds/linux/commit/03fa25da8335a942161a8070b3298cfd4edf9b6a 4 u/dbbo Nov 07 '18 Good find!
105
You can run make localmodconfig in the kernel to build with only what is currently loaded (and you probably want to enable a few more on top of that for removable devices, etc).
make localmodconfig
19 u/[deleted] Nov 07 '18 How long has that been around? 31 u/dbbo Nov 07 '18 I remember using it on Debian Lenny, so probably about decade at least. 28 u/[deleted] Nov 07 '18 you're close https://github.com/torvalds/linux/commit/03fa25da8335a942161a8070b3298cfd4edf9b6a 4 u/dbbo Nov 07 '18 Good find!
19
How long has that been around?
31 u/dbbo Nov 07 '18 I remember using it on Debian Lenny, so probably about decade at least. 28 u/[deleted] Nov 07 '18 you're close https://github.com/torvalds/linux/commit/03fa25da8335a942161a8070b3298cfd4edf9b6a 4 u/dbbo Nov 07 '18 Good find!
31
I remember using it on Debian Lenny, so probably about decade at least.
28 u/[deleted] Nov 07 '18 you're close https://github.com/torvalds/linux/commit/03fa25da8335a942161a8070b3298cfd4edf9b6a 4 u/dbbo Nov 07 '18 Good find!
28
you're close https://github.com/torvalds/linux/commit/03fa25da8335a942161a8070b3298cfd4edf9b6a
4 u/dbbo Nov 07 '18 Good find!
4
Good find!
54
u/aes_gcm Nov 07 '18
How does one compile it for only the current hardware?