Skip to content

Commit

Permalink
Merge DKMS-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
umlaeute committed Aug 5, 2022
2 parents 521397f + e7edf2f commit 76434ab
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions dkms.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@ PACKAGE_VERSION="0.12.7"

if [ -f $kernel_source_dir/.config ]; then
. $kernel_source_dir/.config
if [ "${CONFIG_VIDEO_V4L2:-n}" = "n" ]; then
BUILD_EXCLUSIVE_KERNEL="REQUIRES CONFIG_VIDEO_V4L2"
if ! { echo "$kernelver"; echo 5.18; } | sort -V -C; then
# for linux>=5.18, CONFIG_VIDEO_V4L2 has been renamed to CONFIG_VIDEO_DEV
if [ "${CONFIG_VIDEO_DEV:-n}" = "n" ]; then
BUILD_EXCLUSIVE_KERNEL="REQUIRES CONFIG_VIDEO_DEV"
fi
else
if [ "${CONFIG_VIDEO_V4L2:-n}" = "n" ]; then
BUILD_EXCLUSIVE_KERNEL="REQUIRES CONFIG_VIDEO_V4L2"
fi
fi
fi

Expand Down

0 comments on commit 76434ab

Please sign in to comment.