I need to build a kernel with an additional patch on a driver. I was following the Build You Own kernel list using the apt version as I want to have in the end .deb packages I can install (an later uninstall):
apt source linux-image-unsigned-$(uname -r)
The I copied the sources to my home cp -r /usr/src/linux-hwe-6.5-6.5.0 ~/kernel/
and configured it as mentioned in the documentation.
I also modified the version number in debian.master/changelog
by adding my own +myversion
tag. However when building the kernel the generated .deb files have still the original version number and thus are causing conflicts when I install them as the original unmodified kernel packages have the exact same version. Also this complicates it to see if an installed package belongs to the original kernel or the modified one.
How do I configure the kernel to include my version tag +myversion
in the deb file configuration data and file-name?