

this is my usual route. especially if it's a config I've taken considerable time tweaking and fiddling with.Hu wrote: In my opinion, it is less work to make oldconfig ; make menuconfig and proofread the results than to try to manually recreate the new configuration each time, even if such manual configuration keeps the old version visible as a reference.
The trouble here is not missing an important driver, you will notice that for sure. I used to do oldconfig all the time, and finally it borks your kernel config. You will get weird forced [y] options you do not need, for instance. Some options may go missing and not appear any more.Hu wrote:Contrary to the advice in the document Jaglover linked, you can use make oldconfig to jump major revisions. However, if you do so, you should be aware that there is the potential for it to generate a configuration that is not usable without some hand editing. For example, if the configuration option for the driver for your hard disk controller is moved, oldconfig may generate a configuration that omits the driver entirely. I believe this actually happened to people a few kernels back. In my opinion, it is less work to make oldconfig ; make menuconfig and proofread the results than to try to manually recreate the new configuration each time, even if such manual configuration keeps the old version visible as a reference.
Actually, many years ago I read docs in kernel.org and I remember the warning not to use make oldconfig to jump versions. So I doubt make menuconfig will silently run oldconfig.i can say i never used make oldconfig, but i suppose the "make" with an old .config might just trigger a make oldconfig + make session in one shot as the result looks similar ?
Yes, eventually. It can be aggravating to leave out a driver that is mandatory for a usable system, but not mandatory for starting (e.g. IPsec if you use an IPsec VPN).Jaglover wrote:The trouble here is not missing an important driver, you will notice that for sure.
Could you elaborate on any of these problems? When did you abandon use of oldconfig?Jaglover wrote:I used to do oldconfig all the time, and finally it borks your kernel config. You will get weird forced [y] options you do not need, for instance. Some options may go missing and not appear any more.
Like the kernel itself, the configuration system is prone to change over time. A quick search of current kernel sources shows no such warning in Documentation/. If you can find it again, I would be interested to see the full warning.Jaglover wrote:Actually, many years ago I read docs in kernel.org and I remember the warning not to use make oldconfig to jump versions. So I doubt make menuconfig will silently run oldconfig.
Code: Select all
eselect kernel list
eselect kernel set [#]
zcat /proc/config.gz > /usr/src/linux/.config
cd /usr/src/linux
make oldconfig
make menuconfig
make -j3 && make modules_install
mount /boot
mv /boot/bzImage.old /boot/bzImage.old.1
mv /boot/bzImage /boot/bzImage.old
cp arch/x86/boot/bzImage /boot
cp .config /boot/config-2.6.xx-gentoo-rx
umount /boot
module-rebuild rebuild