[Kernel] Easy local kernel configuration col kernel 2.6.32 - che ne pensate
Inviato: giovedì 17 dicembre 2009, 21:30
salve gente! su http://kernelnewbies.org/LinuxChanges ho notato che c'è una nuova (credo sia nuova :P ) "funzione": l'easy local kernel configuration.
date un occhio:. questo comando ci da una configurazione particolare: tutto quello che era statico rimane tale,poi setta come moduli tutto quello che è caricato al momento. gli altri moduli vengono esclusi! per il resto credo che un successivo serva a migliorare le cose.
che ne dite?
date un occhio:
in pratica... quando si compila un kernel,al posto di un,ad esempio,make menuconfig,si da questo1.8. Easy local kernel configuration
Most people uses the kernel shipped by distros - and that's good. But some people like to compile their own kernels from kernel.org, or maybe they like following the Linux development and want to try it. Configuring your own kernel, however, has become a very difficult and tedious task - there're too many options, and some times userspace software will stop working if you don't enable some key option. You can use a standard distro .config file, but it takes too many time to compile all the options it enables.
To make easier the process of configuration, a new build target has been added: make localmodconfig. It runs "lsmod" to find all the modules loaded on the current running system. It will read all the Makefiles to map which CONFIG enables a module. It will read the Kconfig files to find the dependencies and selects that may be needed to support a CONFIG. Finally, it reads the .config file and removes any module "=m" that is not needed to enable the currently loaded modules. With this tool, you can strip a distro .config of all the unuseful drivers that are not needed in our machine, and it will take much less time to build the kernel. There's an additional "make localyesconfig" target, in case you don't want to use modules and/or initrds.
Codice: Seleziona tutto
make localmodconfigCodice: Seleziona tutto
make menuconfigche ne dite?