aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--README.md13
-rw-r--r--dkms.conf3
3 files changed, 15 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 2d88264..5e2ab40 100644
--- a/Makefile
+++ b/Makefile
@@ -13,4 +13,4 @@ clean: hid-tminit
.PHONY: hid-tminit
hid-tminit:
- $(MAKE) -C hid-tminit $(MAKECMDGOALS)
+ $(MAKE) -C hid-tminit KDIR="$(KDIR)" $(MAKECMDGOALS)
diff --git a/README.md b/README.md
index aed55df..f296b56 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,16 @@ With that in mind,
## Installation
-### Manual
+### Dependencies
+
+Kernel modules require kernel headers to be installed.
+
++ Debian-based: `apt install linux-headers-$(uname -m)` (typically `linux-headers-x86_64`
++ Arch-based: `pacman -S linux-headers`
++ Fedora-based: `yum install kernel-devel kernel-headers`
+
+
+### Manual installation
+ Unplug wheel from computer
+ `git clone --recurse-submodules https://github.com/Kimplul/hid-tmff2.git`
@@ -28,6 +37,8 @@ With that in mind,
Done!
+> Note: On some systems, you will get an error/warning about SSL. This is normal for unsigned modules. For info on signing modules yourself (completely optional), see [here](https://www.kernel.org/doc/html/latest/admin-guide/module-signing.html?highlight=module%20signing).
+
### DKMS
+ Unplug wheel from computer
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