OSDN Git Service

e6beef791ba4ae2242841567e54d0ea1769ff44e
[immortalwrt/immortalwrt.git] / package / firmware / linux-firmware / qca_ath10k.mk
1 QCA99X0_BOARD_REV:=e404444dfc0baf7d0fcde21ab8ec333608c9960c
2 QCA99X0_BOARD_FILE:=board-2.bin.$(QCA99X0_BOARD_REV)
3
4 define Download/qca99x0-board
5   URL:=https://github.com/kvalo/ath10k-firmware/raw/master/QCA99X0/hw2.0/
6   URL_FILE:=board-2.bin
7   FILE:=$(QCA99X0_BOARD_FILE)
8   HASH:=f91975dca2435fa6f8570146e6b255c2a70b9ffbdf5ef16a29d67bec7374c11a
9 endef
10 $(eval $(call Download,qca99x0-board))
11
12 Package/ath10k-board-qca4019 = $(call Package/firmware-default,ath10k qca4019 board firmware)
13 define Package/ath10k-board-qca4019/install
14         $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA4019/hw1.0
15         $(INSTALL_DATA) \
16                 $(PKG_BUILD_DIR)/ath10k/QCA4019/hw1.0/board-2.bin \
17                 $(1)/lib/firmware/ath10k/QCA4019/hw1.0/
18 endef
19 $(eval $(call BuildPackage,ath10k-board-qca4019))
20 Package/ath10k-firmware-qca4019 = $(call Package/firmware-default,ath10k qca4019 firmware)
21 define Package/ath10k-firmware-qca4019/install
22         $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA4019/hw1.0
23         $(INSTALL_DATA) \
24                 $(PKG_BUILD_DIR)/ath10k/QCA4019/hw1.0/firmware-5.bin \
25                 $(1)/lib/firmware/ath10k/QCA4019/hw1.0/firmware-5.bin
26 endef
27 $(eval $(call BuildPackage,ath10k-firmware-qca4019))
28
29 Package/ath10k-board-qca9377 = $(call Package/firmware-default,ath10k qca9377 board firmware)
30 define Package/ath10k-board-qca9377/install
31         $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9377/hw1.0
32         $(INSTALL_DATA) \
33                 $(PKG_BUILD_DIR)/ath10k/QCA9377/hw1.0/board-2.bin \
34                 $(1)/lib/firmware/ath10k/QCA9377/hw1.0/
35 endef
36 $(eval $(call BuildPackage,ath10k-board-qca9377))
37 Package/ath10k-firmware-qca9377 = $(call Package/firmware-default,ath10k qca9377 firmware,+ath10k-board-qca9377)
38 define Package/ath10k-firmware-qca9377/install
39         $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9377/hw1.0
40         $(INSTALL_DATA) \
41                 $(PKG_BUILD_DIR)/ath10k/QCA9377/hw1.0/firmware-6.bin \
42                 $(1)/lib/firmware/ath10k/QCA9377/hw1.0/firmware-6.bin
43 endef
44 $(eval $(call BuildPackage,ath10k-firmware-qca9377))
45
46 Package/ath10k-board-qca9887 = $(call Package/firmware-default,ath10k qca9887 board firmware)
47 define Package/ath10k-board-qca9887/install
48         $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9887/hw1.0
49         $(INSTALL_DATA) \
50                 $(PKG_BUILD_DIR)/ath10k/QCA9887/hw1.0/board.bin \
51                 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/board.bin
52 endef
53 $(eval $(call BuildPackage,ath10k-board-qca9887))
54 Package/ath10k-firmware-qca9887 = $(call Package/firmware-default,ath10k qca9887 firmware,+ath10k-board-qca9887)
55 define Package/ath10k-firmware-qca9887/install
56         $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9887/hw1.0
57         $(INSTALL_DATA) \
58                 $(PKG_BUILD_DIR)/ath10k/QCA9887/hw1.0/firmware-5.bin \
59                 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/firmware-5.bin
60 endef
61 $(eval $(call BuildPackage,ath10k-firmware-qca9887))
62
63 Package/ath10k-board-qca9888 = $(call Package/firmware-default,ath10k qca9888 board firmware)
64 define Package/ath10k-board-qca9888/install
65         $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9888/hw2.0
66         $(INSTALL_DATA) \
67                 $(PKG_BUILD_DIR)/ath10k/QCA9888/hw2.0/board-2.bin \
68                 $(1)/lib/firmware/ath10k/QCA9888/hw2.0/board-2.bin
69 endef
70 $(eval $(call BuildPackage,ath10k-board-qca9888))
71 Package/ath10k-firmware-qca9888 = $(call Package/firmware-default,ath10k qca9888 firmware,+ath10k-board-qca9888)
72 define Package/ath10k-firmware-qca9888/install
73         $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9888/hw2.0
74         $(INSTALL_DATA) \
75                 $(PKG_BUILD_DIR)/ath10k/QCA9888/hw2.0/firmware-5.bin \
76                 $(1)/lib/firmware/ath10k/QCA9888/hw2.0/firmware-5.bin
77 endef
78 $(eval $(call BuildPackage,ath10k-firmware-qca9888))
79
80 Package/ath10k-board-qca988x = $(call Package/firmware-default,ath10k qca988x board firmware)
81 define Package/ath10k-board-qca988x/install
82         $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
83         $(INSTALL_DATA) \
84                 $(PKG_BUILD_DIR)/ath10k/QCA988X/hw2.0/board.bin \
85                 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
86 endef
87 $(eval $(call BuildPackage,ath10k-board-qca988x))
88 Package/ath10k-firmware-qca988x = $(call Package/firmware-default,ath10k qca988x firmware,+ath10k-board-qca988x)
89 define Package/ath10k-firmware-qca988x/install
90         $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
91         $(INSTALL_DATA) \
92                 $(PKG_BUILD_DIR)/ath10k/QCA988X/hw2.0/firmware-5.bin \
93                 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-5.bin
94 endef
95 $(eval $(call BuildPackage,ath10k-firmware-qca988x))
96
97 Package/ath10k-firmware-qca6174 = $(call Package/firmware-default,ath10k qca6174 firmware)
98 define Package/ath10k-firmware-qca6174/install
99         $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA6174/hw2.1
100         $(INSTALL_DATA) \
101                 $(PKG_BUILD_DIR)/ath10k/QCA6174/hw2.1/board-2.bin \
102                 $(1)/lib/firmware/ath10k/QCA6174/hw2.1/
103         $(INSTALL_DATA) \
104                 $(PKG_BUILD_DIR)/ath10k/QCA6174/hw2.1/firmware-5.bin \
105                 $(1)/lib/firmware/ath10k/QCA6174/hw2.1/firmware-5.bin
106         $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA6174/hw3.0
107         $(INSTALL_DATA) \
108                 $(PKG_BUILD_DIR)/ath10k/QCA6174/hw3.0/board-2.bin \
109                 $(1)/lib/firmware/ath10k/QCA6174/hw3.0/
110         $(INSTALL_DATA) \
111                 $(PKG_BUILD_DIR)/ath10k/QCA6174/hw3.0/firmware-6.bin \
112                 $(1)/lib/firmware/ath10k/QCA6174/hw3.0/firmware-6.bin
113 endef
114 $(eval $(call BuildPackage,ath10k-firmware-qca6174))
115
116 Package/ath10k-board-qca99x0 = $(call Package/firmware-default,ath10k qca99x0 board firmware)
117 define Package/ath10k-board-qca99x0/install
118         $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
119         $(INSTALL_DATA) \
120                 $(DL_DIR)/$(QCA99X0_BOARD_FILE) \
121                 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-2.bin
122 endef
123 $(eval $(call BuildPackage,ath10k-board-qca99x0))
124
125 Package/ath10k-firmware-qca99x0 = $(call Package/firmware-default,ath10k qca99x0 firmware,+ath10k-board-qca99x0)
126 define Package/ath10k-firmware-qca99x0/install
127         $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
128         $(INSTALL_DATA) \
129                 $(PKG_BUILD_DIR)/ath10k/QCA99X0/hw2.0/firmware-5.bin \
130                 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/firmware-5.bin
131 endef
132 $(eval $(call BuildPackage,ath10k-firmware-qca99x0))
133
134 Package/ath10k-board-qca9984 = $(call Package/firmware-default,ath10k qca9984 board firmware)
135 define Package/ath10k-board-qca9984/install
136         $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9984/hw1.0
137         $(INSTALL_DATA) \
138                 $(PKG_BUILD_DIR)/ath10k/QCA9984/hw1.0/board-2.bin \
139                 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
140 endef
141 $(eval $(call BuildPackage,ath10k-board-qca9984))
142 Package/ath10k-firmware-qca9984 = $(call Package/firmware-default,ath10k qca9984 firmware,+ath10k-board-qca9984)
143 define Package/ath10k-firmware-qca9984/install
144         $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9984/hw1.0
145         $(INSTALL_DATA) \
146                 $(PKG_BUILD_DIR)/ath10k/QCA9984/hw1.0/firmware-5.bin \
147                 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/firmware-5.bin
148 endef
149 $(eval $(call BuildPackage,ath10k-firmware-qca9984))