dkms/dkms-2.8.3-kernel-5.4.patch

13 lines
772 B
Diff
Raw Permalink Normal View History

diff -Nru dkms-2.8.3.orig/dkms dkms-2.8.3/dkms
--- dkms-2.8.3.orig/dkms 2020-07-17 03:57:34.000000000 +0200
+++ dkms-2.8.3/dkms 2020-07-24 10:23:30.880000000 +0200
@@ -702,6 +702,8 @@
[[ ! $make_command ]] && make_command="make -C $kernel_source_dir SUBDIRS=$dkms_tree/$module/$module_version/build modules"
[[ ! $clean ]] && clean="make -C $kernel_source_dir SUBDIRS=$dkms_tree/$module/$module_version/build clean"
else
+ make_command="${make_command/SUBDIRS=/M=}"
+ clean="${clean/SUBDIRS=/M=}"
[[ ! $make_command ]] && make_command="make -C $kernel_source_dir M=$dkms_tree/$module/$module_version/build"
[[ ! $clean ]] && clean="make -C $kernel_source_dir M=$dkms_tree/$module/$module_version/build clean"
fi