aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-09-21 13:21:49 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2021-09-21 13:21:49 +0300
commitf1e563479f9e3015aa3f4b3e989b0b9bf9abc34f (patch)
tree264bc50e86265d7467f31d7c98b6cf20e33856bd
parentc7afc7d3f1aed699bc236ea4b85aff21aa2f467d (diff)
downloadhid-tmff2-f1e563479f9e3015aa3f4b3e989b0b9bf9abc34f.tar.gz
hid-tmff2-f1e563479f9e3015aa3f4b3e989b0b9bf9abc34f.zip
Use $kernel_source_dir instead of uname in dkms
-rw-r--r--dkms.conf3
1 files changed, 2 insertions, 1 deletions
diff --git a/dkms.conf b/dkms.conf
index d69a100..e634a52 100644
--- a/dkms.conf
+++ b/dkms.conf
@@ -6,7 +6,8 @@ AUTOINSTALL="yes"
# this will cause the kernel module build to infer that it was invoked via
# Kbuild directly instead of DKMS. The dkms(8) manual page recommends quoting
# the 'make' command name to suppress this behavior.
-MAKE[0]="'make'"
+MAKE[0]="'make' KDIR=\"$kernel_source_dir\""
+CLEAN[0]="'make' KDIR=\"$kernel_source_dir\" clean"
# The list of kernel modules.
#__DKMS_MODULES