Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip building v4l2loopback dkms module on qubes kernel
Qubes kernel already include v4l2loopback module by default, and it's usually newer version (or at least compatible with that kernel). Skip building the dkms module in that case. Since dkms doesn't have a setting to skip building on some specific version, try to exclude qubes kernels by a heuristic - looking for CONFIG_IKCONFIG. Usually distribution kernels have it disabled (especially Debian and Fedora kernels have) while Qubes has it enabled. This should still make the dkms module build for in-vm kernel. The guard on the running kernel may look a bit weird, but an additional safeguard if somebody want to build it for their in-vm kernel even if it has CONFIG_IKCONFIG enabled (maybe a different distribution? or a custom build?). While dkms will attempt to build for all installed kernels, the dom0-provided kernel source tree is available only when running dom0-provided kernel, so that `uname -r` call is valid.
- Loading branch information