blob: 7f489d2b1a936c2ab841b48d2b7ed6b988dc8f41 (
plain)
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
|
WIFI_SOURCE_7615:=MT7615_LinuxAP_V4.4.1.2_20170514.tar.bz2
WIFI_SOURCE_76x2:=MT76x2e_MT7620_LinuxAP_V3.0.4.0_DPA_20150618.tar.bz2
WIFI_SOURCE_7610:=mt7610e-p4rev-118062.tar.bz2
WIFI_SOURCE_7603:=MT7603e_LinuxAP_V4.0.1.0rev1_DPA_20150629.tar.bz2
WIFI_SOURCE_7620:=mt7620-p4rev-120998.tar.bz2
WIFI_SOURCE_7628:=mt7628-p4rev-120935.tar.bz2
FILE_7615_EXIT = $(shell if [ -a $(DL_DIR)/$(WIFI_SOURCE_7615) ];then echo "exist";else echo "notexit";fi;)
FILE_76x2_EXIT = $(shell if [ -a $(DL_DIR)/$(WIFI_SOURCE_76x2) ];then echo "exist";else echo "notexit";fi;)
define wifi-prepare
ifeq ($(FILE_76x2_EXIT),exist)
@echo =======76x2 exist=======;
@echo "Extract 76x2 wifi driver";
rm -rf $(LINUX_DIR)/drivers/net/wireless/rlt_wifi*;
$(TAR) -jxvf $(DL_DIR)/$(WIFI_SOURCE_76x2) -C $(LINUX_DIR)/drivers/net/wireless/;
$(call PatchDir,$(PKG_BUILD_DIR),$(MT76x2_PATCH_DIR),mt76x2/)
endif
ifeq ($(FILE_7615_EXIT),exist)
@echo =======7615 exist=======
@echo "Extract 7615 wifi driver";
rm -rf $(LINUX_DIR)/drivers/net/wireless/mt_wifi*;
$(TAR) -jxvf $(DL_DIR)/$(WIFI_SOURCE_7615) -C $(LINUX_DIR)/drivers/net/wireless/;
$(call PatchDir,$(PKG_BUILD_DIR),$(MT7615_PATCH_DIR),mt7615/)
endif
endef
|