You are not logged in.
Hi,
I'm building my own kernel including some patches with abs. But I do not want to compile every module at every time. Is there an easy way to remove all modules from the config file, which I don't need? Probably I could use the lsmod output in a bash script, but I'm not used to it
It would be a very nice way to save time and slim down the kernel.
dante
"Lasciate ogni speranza, voi ch' entrate"
- Laßt jede Hoffnung hinter euch, ihr, die ihr eintretet -
Dante Alighieri
Offline
hi,
you said it! boot the arch-kernel, watch which modules are needed (through lsmod) and then compile them into your new kernel. because arch uses
an initrd-kernel you should rather build a modular than a monolithic kernel (build almost everything needed as modules).
and i guess no, there is no easy way to get rid of the unused modules. you have to run
make menuconfig
and walk through each subtree. you can use the default arch .config file (run "make oldconfig", then all modules are enabled) or delete the .config file in the /usr/src/linux directory and than you have an "empty" .config file (no modules enabled at all).
vlad
Last edited by DonVla (2007-09-02 11:12:21)
Offline
OK, but I think that the advantage isn't that high compared to the huge working input in doing it manually It was only a idea to tweak the compiling process.
dante
"Lasciate ogni speranza, voi ch' entrate"
- Laßt jede Hoffnung hinter euch, ihr, die ihr eintretet -
Dante Alighieri
Offline
I'm wondering if there aren't tools for doing that. Maybe in Gentoo ?
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline
hi,
ok it's a huge working input, but you do this only once.
"I'm wondering if there aren't tools for doing that. Maybe in Gentoo ?"
hey it's a computer not a fortune telling machine...
vlad
Offline