Patch existing kernel module with dkms
<p>Creating a debian package with a kernel module seems fairly easy as described <a href="http://www.xkyle.com/building-linux-packages-for-kernel-drivers/" rel="nofollow">here</a> and elsewhere. I want to update an existing module with <a href="https://github.com/IntelRealSense/librealsense/blob/master/scripts/realsense-camera-formats.patch" rel="nofollow">a patch</a>. How would I go about this? I don't really have a source tarball to unpack, but rather I would use the module source for whatever kernel version dkms is building for.</p>

<p>For example let's say I have kernel version 1.2.3 installed, then I would like to build the kernelmodule uvcvideo with version 1.2.3 of the sources, with the addition of a patch. Do I get the sources before I create the dkms .deb package, or do I fetch them during build somehow?</p>

<p>Does the question make sense? How to do it?</p>