mirror of
https://github.com/RinCat/RTL88x2BU-Linux-Driver.git
synced 2024-11-10 01:02:50 +00:00
Make driver dkms installation easier
This commit is contained in:
parent
bf52727c41
commit
cf82371372
13
Makefile
13
Makefile
@ -2480,6 +2480,19 @@ uninstall:
|
|||||||
rm -f $(MODDESTDIR)/$(MODULE_NAME).ko
|
rm -f $(MODDESTDIR)/$(MODULE_NAME).ko
|
||||||
/sbin/depmod -a ${KVER}
|
/sbin/depmod -a ${KVER}
|
||||||
|
|
||||||
|
DRIVER_VERSION = $(shell grep "\#define DRIVERVERSION" include/rtw_version.h | awk '{print $$3}' | tr -d v\")
|
||||||
|
|
||||||
|
dkms_install:
|
||||||
|
@mkdir -vp /usr/src/rtl88x2bu-$(DRIVER_VERSION)
|
||||||
|
cp -r * /usr/src/rtl88x2bu-$(DRIVER_VERSION)
|
||||||
|
+ dkms build -m rtl88x2bu -v $(DRIVER_VERSION)
|
||||||
|
dkms install -m rtl88x2bu -v $(DRIVER_VERSION)
|
||||||
|
dkms status -m rtl88x2bu
|
||||||
|
|
||||||
|
dkms_remove:
|
||||||
|
dkms remove rtl88x2bu/$(DRIVER_VERSION) --all
|
||||||
|
rm -rf /usr/src/rtl88x2bu-$(DRIVER_VERSION)
|
||||||
|
|
||||||
backup_rtlwifi:
|
backup_rtlwifi:
|
||||||
@echo "Making backup rtlwifi drivers"
|
@echo "Making backup rtlwifi drivers"
|
||||||
ifneq (,$(wildcard $(STAGINGMODDIR)/rtl*))
|
ifneq (,$(wildcard $(STAGINGMODDIR)/rtl*))
|
||||||
|
Loading…
Reference in New Issue
Block a user