mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-30 17:02:28 +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"
|
@echo "make config"
|
||||||
/bin/bash script/Configure script/config.in
|
/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
|
.PHONY: modules clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
Loading…
Reference in New Issue
Block a user