Someone on Reddit showed me this yesterday

https://git.kernel.org/pub/scm/linux/kernel/git/westeri/thunderbolt.git/commit/?h=next&id=9a966517a83090ee3e26e9a93a92523e2358c5b3

Looks like I should be able to change one line of code, and then I can achieve what I want, but this is going to require rebuilding the kernel

I haven't built a custom kernel in a long long time, and never on a deb based distro

I am following these instructions here

https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel

I used apt and downloaded the kernel, changed the thunderbolt file and added the line of code

I get to “quicker build” fakeroot debian/rules binary-headers binary-generic binary-perarch

And the build fails, the error is
```
Debug: /home/nick/linux-oem-6.5-6.5.0/debian/stamps/stamp-install-generic kernel_file arch/x86/boot/bzImage kernfile arch/x86/boot/bzImage install_file vmlinuz instfile vmlinuz
dh_testdir
dh_prep -plinux-image-unsigned-6.5.0-1019-generic
dh_prep: error: Requested unknown package linux-image-unsigned-6.5.0-1019-generic via -p/--package, expected one of: linux-oem-6.5-headers-6.5.0-1019 linux-oem-6.5-tools-6.5.0-1019 linux-oem-6.5-tools-host linux-image-unsigned-6.5.0-1019-oem linux-modules-6.5.0-1019-oem linux-modules-extra-6.5.0-1019-oem linux-headers-6.5.0-1019-oem linux-oem-6.5-lib-rust-6.5.0-1019-oem linux-image-unsigned-6.5.0-1019-oem-dbgsym linux-tools-6.5.0-1019-oem linux-cloud-tools-6.5.0-1019-oem linux-buildinfo-6.5.0-1019-oem linux-modules-ipu6-6.5.0-1019-oem linux-modules-ivsc-6.5.0-1019-oem linux-modules-iwlwifi-6.5.0-1019-oem linux-modules-usbio-6.5.0-1019-oem
dh_prep: error: unknown option or error during option parsing; aborting
make: *** [debian/rules.d/2-binary-arch.mk:132: /home/nick/linux-oem-6.5-6.5.0/debian/stamps/stamp-install-generic] Error 255
```
If there's an easier way to achieve this, or if someone could help me with this, I would appreciate it.

Even if there’s another distro that I can install that will use that latest patch or will be easier to make kernel changes, I would be willing to do that too. I only need this temporarily to make thunderbolt nvm changes.