Building a specific linux kernel version

I am able to follow these instructions and build a working SD card image:

I can override the release version with “v5.15” and build a new SD image where uname -a says:

5.15.0-00018-g76cb171c749b

I have some proprietary kernel modules which only work with this version:

5.15.0-00007-gfebbce87fedd

Is it possible to modify runme.sh to generate version 00007 instead of version 00018?

Thanks!

Dave Naddor GTRI

you can look at the kernel config option

CONFIG_LOCALVERSION=“”
CONFIG_LOCALVERSION_AUTO=y

disabling LOCALVERSION_AUTO and setting your LOCALVERSION to 00007-gfebbce87fedd should all vermagic to match on your module. However it is possible that some of the other checks will fail. Good luck.