Skip to content

Commit

Permalink
Backported dkms-patch from Ubuntu
Browse files Browse the repository at this point in the history
Closes: #498
  • Loading branch information
umlaeute committed Aug 5, 2022
1 parent 0e0a99e commit e7edf2f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions dkms.conf
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 e7edf2f

Please sign in to comment.