Current versions of genkernel can either unset, add something to, or set CONFIG_LOCALVERSION to %%ARCH%%. There is no option to tell genkernel to leave localversion to the value chosen by the user in make *config alone (except by having genkernel have run no oldconfig and friends at all). This feature request is asking to respect the user's choice and not force some default of rather limited use. Reproducible: Always Steps to Reproduce: 1. run make menuconfig on a kernel 2. set CONFIG_LOCALVERSION to a custom value 3. run genkernel 4. observe settings from 2. be thrown away Actual Results: 4. observe settings from 2. be thrown away Expected Results: Respect values chosen by the configurant of the kernel
> There is no option to tell genkernel to leave localversion to the value chosen by the user in make *config alone (except by having genkernel have run no oldconfig and friends at all). Correction: there is simply NO option at all to prevent it from messing with the setting.
Sorry, I have to close this as WONTFIX: Like written in other bugs before, CONFIG_LOCALVERSION is the only place for us to get/set things like $ARCH in a *reliable* and *transparent* way. You can set LOCALVERSION through genkernel. You have full control: Either specify complete value using `--kernel-localversion=` parameter or use `--kernel-append-localversion=` parameter to just append anything to genkernel's default value (which I find quite useful in case you want to test a new revision with separate kernel image, initramfs and modules). You can also set them in your genkernel.conf file. These options also allow you to retain previous name schema. However, I cannot recommend getting rid of the default value because most users normally want that common tools can find /lib/modules for running kernel following `uname -r`.