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:
parent
07c704c0a7
commit
4a6d10f943
14
Makefile
14
Makefile
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user