Luis Garrido wrote:
Is there a
neat around trick that takes something like lsmod (from a
working machine) as input and produces a config based on that?
There is a procedure outlined in chapter 7 of LKN, but I am not sure
about how scriptable it is.
http://www.kernel.org/pub/linux/kernel/people/gregkh/lkn/lkn_pdf/ch07.pdf
It would certainly be a neat thing.
First, identify the kernel .config to be migrated to the new kernel, and get
it into the new kernel source directory as '.config'.
Eg ...
zcat /proc/config.gz > .config or
cp /boot/config-2.6.28-xyz .config or
cp ~/my_brave_rt/2.6.28-rt11.config.good .config
Run 'make oldconfig'. That will stop when it encounters a new option that needs
an answer, so it's scriptable but not entirely automatic.
Then build && install new kernel.
cheers, Cal