Merge pull request #206 from RICCIARDI-Adrien/master

Easier DKMS installation/removal
This commit is contained in:
Ole Petter Bang 2020-09-28 12:40:57 +02:00 committed by GitHub
commit 0e042e7445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 12 deletions

View File

@ -1082,6 +1082,20 @@ config_r:
@echo "make config"
/bin/bash script/Configure script/config.in
DRIVER_VERSION = $(shell grep "#define DRIVERVERSION" include/rtw_version.h | awk '{print $$3}' | tr -d v\")
dkms_install:
mkdir -p /usr/src/8812au-$(DRIVER_VERSION)
cp -r * /usr/src/8812au-$(DRIVER_VERSION)
dkms add -m 8812au -v $(DRIVER_VERSION)
dkms build -m 8812au -v $(DRIVER_VERSION)
dkms install -m 8812au -v $(DRIVER_VERSION)
dkms status
dkms_remove:
dkms remove 8812au/$(DRIVER_VERSION) --all
rm -rf /usr/src/8812au-$(DRIVER_VERSION)
.PHONY: modules clean
clean:

View File

@ -58,27 +58,19 @@ Automatically rebuilds and installs on kernel updates. DKMS is in official sourc
$ sudo apt-get install build-essential dkms
```
The driver source must be copied to /usr/src/8812au-4.2.3
Then add it to DKMS:
Install the driver to DKMS with:
```sh
$ sudo dkms add -m 8812au -v 4.2.3
$ sudo dkms build -m 8812au -v 4.2.3
$ sudo dkms install -m 8812au -v 4.2.3
sudo make dkms_install
```
Check with:
```sh
$ sudo dkms status
```
Automatically load at boot:
```sh
$ echo 8812au | sudo tee -a /etc/modules
```
Eventually remove from DKMS with:
```sh
$ sudo dkms remove -m 8812au -v 4.2.3 --all
$ sudo make dkms_remove
```
### References