On Tue, 2007-09-18 at 16:50 +0800, Ramil Galib wrote: > Is there a way to autogenerate a .config file based on the currently > loaded modules?
I don't know. At some point, some distros had their configs in /proc. This was a tgz file in /proc that you would un-tgz somewhere and then you could copy it to where you kernel source was so you could configure just the pieces you needed to (the rest being taken from the config). I don't see that in my current ubuntu /proc though > Using the config supplied by the distros take so long to compile > coz of so many modules that are enabled. do you mean compile as in make;make modules;make modules_install? or do you mean when you make menuconfig and you have to step through everything and make sure that the modules you need will be built? if the first, you're going to pay that cost anyway. compiling the kernel takes a while, the more CPU and RAM you have the better (you can tell make to compile multiple files, using as many CPUs as you've got). but even with multiple CPUs, it's going to take a while. if the second, well, if you can find a usable config (e.g., in /proc) then that's good. use that. otherwise, you can always take the kernel source package of your distro and see if it's got a .config in there. I think the distros I've tried in the past *did* have their .configs in there. Try that. tiger _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph

