kernel module package (KMP) and kernel LOCALVERSION

Hi,

I compiled a kernel (based on default source tree) with “CONFIG_LOCALVERSION” defined (uname -r => 2.6.31.12-0.2-P4). All modules coming together with the default kernel source compiled fine with “vermagic : 2.6.31.12-0.2-P4 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”?