1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-09 23:57:00 +00:00

Makefile: Simplify DKMS install/remove

This commit is contained in:
Christian Bremvåg 2020-10-10 01:29:24 +02:00 committed by GitHub
parent 07c704c0a7
commit 4a6d10f943
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2297,6 +2297,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: