Kernel Build Version

Hi, I’m building a custom kernel and want to append a suffix to the kernel version. The only docs I can find say I should use “CONFIG_LOCALVERSION” but don’t give details how.

I have tried adding the following to my config.addon but it doesn’t work:

CONFIG_LOCALVERSION=“-suffix”

Can anyone tell where to define this and the syntax to use please?

Thank you

Famous “doesn’t work” … and I tried exactly the same and it worked.

[   27s] Merging /home/abuild/rpmbuild/BUILD/kernel-default-6.11.7/config.addon/x86_64/default
[   27s] Value of CONFIG_LOCALVERSION is redefined by fragment /home/abuild/rpmbuild/BUILD/kernel-default-6.11.7/config.addon/x86_64/default:
[   27s] Previous value: CONFIG_LOCALVERSION="-default"
[   27s] New value: CONFIG_LOCALVERSION="-local"
[   27s] 
[   27s] #
[   27s] # merged configuration written to .config (needs make)
...
[   31s] + /home/abuild/rpmbuild/SOURCES/check-for-config-changes .config.orig .config
[   31s] 
[   31s] Changes after running `make oldconfig':
[   31s] -# CONFIG_CFI_CLANG is not set
[   31s] -# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set
[   31s] -# CONFIG_GCC_PLUGIN_STACKLEAK is not set
[   31s] -# CONFIG_RANDSTRUCT_FULL is not set
[   31s] -# CONFIG_RANDSTRUCT_PERFORMANCE is not set
[   31s] -CONFIG_GCC_PLUGINS=y
[   31s] 
[   31s] + rm .config.orig
[   31s] + make prepare ARCH=x86 --output-sync -j12
[   32s]   GEN     Makefile

I already told you that your question was not related to OBS in any way. It is about SUSE kernel package, not about anything OBS does and better fits into Development category. But if you ask about problem with OBS, it usually needs link to your project to answer.

When I looked at the build log in your other question, there were more changes than just CONFIG_LOCALVERSION.