I may have achieved this in a very simple way.
BTW I couldn’t get this to work, it kept complaining about missing packages in the system, and APT sources failed. Resorted to do the full kernel compile which doesn’t require a chroot environment, a bit of an overkill for a couple of changes in one file only…