kernel module package (KMP) and kernel LOCALVERSION


I compiled a kernel (based on default source tree) with “CONFIG_LOCALVERSION” defined (uname -r => All modules coming together with the default kernel source compiled fine with “vermagic : SMP mod_unload modversions PENTIUM4”.

When I try to put together and build a KMP, for example the one you can find in this suse/novell PDF doc, I do get RPMs compiled for all available kernel flavours. However, I do not get modules with a vermagic that matches my kernel with LOCALVERSION defined.

My question: how do I build RPMs to also get binaries for my Kernel with custom LOCALVERSION? Is there something I can do in the SPEC File or do I have to work with
“dirty hacks”?