forked from neurobin/MT7630E
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (26 loc) · 810 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.PHONY: all clean install uninstall
KDIR ?= /lib/modules/`uname -r`/build
DST_DIR ?= /lib/modules/`uname -r`/kernel/drivers/net/wireless/
PKG_VER ?= 2.0.3
all:
$(MAKE) -C $(KDIR) M=$(CURDIR)/rt2x00 modules
$(MAKE) -C $(KDIR) M=$(CURDIR)/btloader modules
clean:
$(MAKE) -C $(KDIR) M=$(CURDIR)/rt2x00 clean
$(MAKE) -C $(KDIR) M=$(CURDIR)/btloader clean
install:
cp -v firmware/*/* /lib/firmware/
cp rt2x00/mt7630e.ko $(DST_DIR)
cp btloader/mt76xx.ko $(DST_DIR)
depmod
uninstall:
rm -vf /lib/firmware/mt76x0.bin /lib/firmware/MT7650E234.bin
rm -vf $(DST_DIR)/mt7630e.ko
rm -vf $(DST_DIR)/mt76xx.ko
depmod
dkms:
cp -v firmware/*/* /lib/firmware/
cp -R . /usr/src/mt7630e-$(PKG_VER)
dkms add -m mt7630e -v $(PKG_VER)
dkms build -m mt7630e -v $(PKG_VER)
dkms install -m mt7630e -v $(PKG_VER)