When is something wrong and compile fails, .config is not copied into /etc/kernels. But perhaps I wish next compilation will be done with the nearly same configuration. Reproducible: Always Steps to Reproduce: 1. genkernel --menuconfig all 2. #break genkrenel after menuconfig - e.g. in make bzImage, make modules, install... 3. see /etc/kernels Actual Results: Old (or none) version of kernel configuration in /etc/kernels Expected Results: Copy .config into /etc/kernels, despite of compilation fails-
Created attachment 24997 [details, diff] patch, which move code copying kernel configuration immediately after configuration is done. Configuartion is copied before compilation can fail :-)
this will not be accepted for obvious reasons. If the compile fails, the config is most likely NOT GOOD. The thing you need to do is --no-mrproper --no-clean --menuconfig to genkernel, and it will not override your config file, but will still enter menuconfig. If that compile is successful, it will copy the result to /etc/kernels. We will NOT ever copy a bad config to /etc/kernels because it would cause too many problems with people not knowing they need to rm -f the /etc/kernels config -Brad