firmware: ath10k-firmware: update to 2018-02-09
[openwrt/staging/wigyori.git] / package / firmware / ath10k-firmware / Makefile
1 #
2 # Copyright (C) 2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ath10k-firmware
11 PKG_SOURCE_DATE:=2018-02-09
12 PKG_SOURCE_VERSION:=8f4bafdd400d21a65966004d0ce6e0686ef4d9bc
13 PKG_MIRROR_HASH:=4f4f0678b9d07c0282f18c69bd63a5e2a2ae015b9ce7298cedb88a60be87ed3a
14 PKG_RELEASE:=1
15
16 PKG_SOURCE_PROTO:=git
17 PKG_SOURCE_URL:=https://github.com/kvalo/ath10k-firmware.git
18
19 PKG_MAINTAINER:=Felix Fietkau <nbd@nbd.name>
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/ath10k-firmware-default
24 SECTION:=firmware
25 CATEGORY:=Firmware
26 URL:=$(PKG_SOURCE_URL)
27 DEPENDS:=
28 endef
29
30 define Package/ath10k-firmware-qca9887
31 $(Package/ath10k-firmware-default)
32 TITLE:=ath10k firmware for QCA9887 devices
33 endef
34
35 define Package/ath10k-firmware-qca9888
36 $(Package/ath10k-firmware-default)
37 TITLE:=ath10k firmware for QCA9888 devices
38 endef
39
40 define Package/ath10k-firmware-qca9887-ct
41 $(Package/ath10k-firmware-default)
42 TITLE:=ath10k-CT firmware for QCA9887 devices
43 endef
44
45 define Package/ath10k-firmware-qca988x
46 $(Package/ath10k-firmware-default)
47 TITLE:=ath10k firmware for QCA988x devices
48 SECTION:=firmware
49 CATEGORY:=Firmware
50 endef
51
52 CT_FIRMWARE_FILE = $(1)-$($(1)_FIRMWARE_FILE_CT)
53
54 define Download/ct-firmware
55 URL:=https://www.candelatech.com/downloads/$(2)
56 FILE:=$(call CT_FIRMWARE_FILE,$(1))
57 URL_FILE:=$($(1)_FIRMWARE_FILE_CT)
58 endef
59
60 QCA988X_FIRMWARE_FILE_CT:=firmware-2-ct-full-community-19.bin.lede
61 define Download/ath10k-firmware-qca988x-ct
62 $(call Download/ct-firmware,QCA988X,)
63 HASH:=bff98f028062dae9fc638c7596aec3c79bf9eddaff65cfacba067f6d72f217cd
64 endef
65 $(eval $(call Download,ath10k-firmware-qca988x-ct))
66
67 QCA9887_FIRMWARE_FILE_CT:=firmware-2-ct-full-community-19.bin.lede
68 define Download/ath10k-firmware-qca9887-ct
69 $(call Download/ct-firmware,QCA9887,ath10k-9887)
70 HASH:=95dc106f98672bd9c7d3fe6881ed79ab079cb49b0a995650991b1beaff2b0101
71 endef
72 $(eval $(call Download,ath10k-firmware-qca9887-ct))
73
74 QCA99X0_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-9.bin-lede.004
75 define Download/ath10k-firmware-qca99x0-ct
76 $(call Download/ct-firmware,QCA99X0,ath10k-10-4)
77 HASH:=993c29fd64bb2a59b86d34f58601a1a48b83b541750bc511f78cc17152829b4d
78 endef
79 $(eval $(call Download,ath10k-firmware-qca99x0-ct))
80
81 QCA9984_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-9.bin-lede.004
82 define Download/ath10k-firmware-qca9984-ct
83 $(call Download/ct-firmware,QCA9984,ath10k-9984-10-4)
84 HASH:=d997eed9a8bc6809c01d367759ba8545c10e3be93ea1f33d6d753127ef0f7c5e
85 endef
86 $(eval $(call Download,ath10k-firmware-qca9984-ct))
87
88 QCA9888_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-9.bin-lede.004
89 define Download/ath10k-firmware-qca9888-ct
90 $(call Download/ct-firmware,QCA9888,ath10k-9888-10-4)
91 HASH:=bbaa71bc7dcaa264c5875e86639f174908fed09fbace975e325959d42f3754ff
92 endef
93 $(eval $(call Download,ath10k-firmware-qca9888-ct))
94
95 define Package/ath10k-firmware-qca99x0
96 $(Package/ath10k-firmware-default)
97 TITLE:=ath10k firmware for QCA99x0 devices
98 SECTION:=firmware
99 CATEGORY:=Firmware
100 endef
101
102 define Package/ath10k-firmware-qca988x-ct
103 $(Package/ath10k-firmware-default)
104 TITLE:=ath10k CT 10.1 firmware for QCA988x devices
105 SECTION:=firmware
106 CATEGORY:=Firmware
107 endef
108
109 define Package/ath10k-firmware-qca9887-ct
110 $(Package/ath10k-firmware-default)
111 TITLE:=ath10k CT 10.1 firmware for QCA9887 devices
112 SECTION:=firmware
113 CATEGORY:=Firmware
114 endef
115
116 define Package/ath10k-firmware-qca988x-ct/description
117 Alternative ath10k firmware for QCA988X from Candela Technologies.
118 Enables IBSS and other features. See:
119 http://www.candelatech.com/ath10k-10.1.php
120 This firmware will NOT be used unless the standard ath10k-firmware-qca988x
121 is un-selected since the driver will try to load firmware-5.bin before
122 firmware-2.bin
123 endef
124
125 define Package/ath10k-firmware-qca9887-ct/description
126 Alternative ath10k firmware for QCA9887 from Candela Technologies.
127 Enables IBSS and other features. See:
128 http://www.candelatech.com/ath10k-10.1.php
129 This firmware conflicts with the standard 9887 firmware, so select only
130 one.
131 endef
132
133 define Package/ath10k-firmware-qca99x0-ct/description
134 Alternative ath10k firmware for QCA99x0 from Candela Technologies.
135 Enables IBSS and other features. See:
136 http://www.candelatech.com/ath10k-10.4.php
137 This firmware conflicts with the standard 99x0 firmware, so select only
138 one.
139 endef
140
141 define Package/ath10k-firmware-qca9984-ct/description
142 Alternative ath10k firmware for QCA9984 from Candela Technologies.
143 Enables IBSS and other features. See:
144 http://www.candelatech.com/ath10k-10.4.php
145 This firmware conflicts with the standard 9984 firmware, so select only
146 one.
147 endef
148
149 define Package/ath10k-firmware-qca9888-ct/description
150 Alternative ath10k firmware for QCA9886 and QCA9888 from Candela Technologies.
151 Enables IBSS and other features. See:
152 http://www.candelatech.com/ath10k-10.4.php
153 This firmware conflicts with the standard 9886 and 9888 firmware, so select only
154 one.
155 endef
156
157 define Package/ath10k-firmware-qca99x0/description
158 Standard ath10k firmware for QCA99x0 from QCA
159 This firmware conflicts with the CT 99x0 firmware, so select only
160 one.
161 endef
162
163 define Package/ath10k-firmware-qca99x0-ct
164 $(Package/ath10k-firmware-default)
165 TITLE:=ath10k CT 10.4.3 firmware for QCA99x0 devices
166 SECTION:=firmware
167 CATEGORY:=Firmware
168 endef
169
170 define Package/ath10k-firmware-qca9984-ct
171 $(Package/ath10k-firmware-default)
172 TITLE:=ath10k CT 10.4.3 firmware for QCA9984 devices
173 SECTION:=firmware
174 CATEGORY:=Firmware
175 endef
176
177 define Package/ath10k-firmware-qca9888-ct
178 $(Package/ath10k-firmware-default)
179 TITLE:=ath10k CT 10.4.3 firmware for QCA9886 and QCA9888 devices
180 SECTION:=firmware
181 CATEGORY:=Firmware
182 endef
183
184 define Package/ath10k-firmware-qca9984
185 $(Package/ath10k-firmware-default)
186 TITLE:=ath10k firmware for QCA9984 devices
187 SECTION:=firmware
188 CATEGORY:=Firmware
189 endef
190
191 define Package/ath10k-firmware-qca4019
192 $(Package/ath10k-firmware-default)
193 TITLE:=ath10k firmware for IPQ/QCA4019 devices
194 SECTION:=firmware
195 CATEGORY:=Firmware
196 endef
197
198 define Package/ath10k-firmware-qca6174
199 $(Package/ath10k-firmware-default)
200 TITLE:=ath10k firmware for QCA6174 devices
201 SECTION:=firmware
202 CATEGORY:=Firmware
203 endef
204
205 QCA99X0_BOARD_REV:=ddcec9efd245da9365c474f513a855a55f3ac7fe
206 QCA99X0_BOARD_FILE:=board-2.bin.$(QCA99X0_BOARD_REV)
207
208 define Download/qca99x0-board
209 URL:=https://source.codeaurora.org/quic/qsdk/oss/firmware/ath10k-firmware/plain/ath10k/QCA99X0/hw2.0
210 URL_FILE:=board-2.bin?id=$(QCA99X0_BOARD_REV)
211 FILE:=$(QCA99X0_BOARD_FILE)
212 HASH:=03711ac21e60ef59d3815e235eb721c0c22851b5410299411085aa6f2af45401
213 endef
214 $(eval $(call Download,qca99x0-board))
215
216 define Build/Compile
217
218 endef
219
220 define Package/ath10k-firmware-qca4019/install
221 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA4019/hw1.0
222 $(INSTALL_DATA) \
223 $(PKG_BUILD_DIR)/QCA4019/hw1.0/board-2.bin \
224 $(1)/lib/firmware/ath10k/QCA4019/hw1.0/
225 $(INSTALL_DATA) \
226 $(PKG_BUILD_DIR)/QCA4019/hw1.0/3.4/firmware-5.bin_10.4-3.4-00104 \
227 $(1)/lib/firmware/ath10k/QCA4019/hw1.0/firmware-5.bin
228 endef
229
230 define Package/ath10k-firmware-qca9887/install
231 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9887/hw1.0
232 $(INSTALL_DATA) \
233 $(PKG_BUILD_DIR)/QCA9887/hw1.0/10.2.4-1.0/firmware-5.bin_10.2.4-1.0-00033 \
234 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/firmware-5.bin
235 $(INSTALL_DATA) \
236 $(PKG_BUILD_DIR)/QCA9887/hw1.0/board.bin \
237 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/board.bin
238 endef
239
240 define Package/ath10k-firmware-qca9888/install
241 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9888/hw2.0
242 $(INSTALL_DATA) \
243 $(PKG_BUILD_DIR)/QCA9888/hw2.0/board-2.bin \
244 $(1)/lib/firmware/ath10k/QCA9888/hw2.0/board-2.bin
245 $(INSTALL_DATA) \
246 $(PKG_BUILD_DIR)/QCA9888/hw2.0/3.5.3/firmware-5.bin_10.4-3.5.3-00053 \
247 $(1)/lib/firmware/ath10k/QCA9888/hw2.0/firmware-5.bin
248 endef
249
250 define Package/ath10k-firmware-qca988x/install
251 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
252 $(INSTALL_DATA) \
253 $(PKG_BUILD_DIR)/QCA988X/hw2.0/board.bin \
254 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
255 $(INSTALL_DATA) \
256 $(PKG_BUILD_DIR)/QCA988X/hw2.0/10.2.4-1.0/firmware-5.bin_10.2.4-1.0-00033 \
257 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-5.bin
258 endef
259
260 define Package/ath10k-firmware-qca9887-ct/install
261 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9887/hw1.0
262 $(INSTALL_DATA) \
263 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA9887) \
264 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/firmware-2.bin
265 $(INSTALL_DATA) \
266 $(PKG_BUILD_DIR)/QCA9887/hw1.0/board.bin \
267 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/board.bin
268 endef
269
270 define Package/ath10k-firmware-qca988x-ct/install
271 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
272 $(INSTALL_DATA) \
273 $(PKG_BUILD_DIR)/QCA988X/hw2.0/board.bin \
274 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
275 $(INSTALL_DATA) \
276 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA988X) \
277 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-2.bin
278 endef
279
280 define Package/ath10k-firmware-qca6174/install
281 $(INSTALL_DIR) $(1)/lib/firmware/ath10k
282 $(CP) $(PKG_BUILD_DIR)/QCA6174 $(1)/lib/firmware/ath10k/
283 endef
284
285 define Package/ath10k-firmware-qca99x0/install
286 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
287 $(INSTALL_DATA) \
288 $(DL_DIR)/$(QCA99X0_BOARD_FILE) \
289 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-2.bin
290 $(INSTALL_DATA) \
291 $(PKG_BUILD_DIR)/QCA99X0/hw2.0/boardData_AR900B_CUS239_5G_v2_001.bin \
292 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin
293 $(INSTALL_DATA) \
294 $(PKG_BUILD_DIR)/QCA99X0/hw2.0/firmware-5.bin_10.4.1.00030-1 \
295 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/firmware-5.bin
296 endef
297
298 define Package/ath10k-firmware-qca99x0-ct/install
299 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
300 $(INSTALL_DATA) \
301 $(DL_DIR)/$(QCA99X0_BOARD_FILE) \
302 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-2.bin
303 $(INSTALL_DATA) \
304 $(PKG_BUILD_DIR)/QCA99X0/hw2.0/boardData_AR900B_CUS239_5G_v2_001.bin \
305 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin
306 $(INSTALL_DATA) \
307 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA99X0) \
308 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/firmware-5.bin
309 endef
310
311 define Package/ath10k-firmware-qca9984/install
312 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9984/hw1.0
313 $(INSTALL_DATA) \
314 $(PKG_BUILD_DIR)/QCA9984/hw1.0/board-2.bin \
315 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
316 $(INSTALL_DATA) \
317 $(PKG_BUILD_DIR)/QCA9984/hw1.0/3.4/firmware-5.bin_10.4-3.4-00104 \
318 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/firmware-5.bin
319 endef
320
321 define Package/ath10k-firmware-qca9984-ct/install
322 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9984/hw1.0
323 $(INSTALL_DATA) \
324 $(PKG_BUILD_DIR)/QCA9984/hw1.0/board-2.bin \
325 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
326 $(INSTALL_DATA) \
327 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA9984) \
328 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/firmware-5.bin
329 endef
330
331 define Package/ath10k-firmware-qca9888-ct/install
332 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9888/hw2.0
333 ln -s \
334 ../../cal-pci-0000:01:00.0.bin \
335 $(1)/lib/firmware/ath10k/QCA9888/hw2.0/board.bin
336 $(INSTALL_DATA) \
337 $(PKG_BUILD_DIR)/QCA9888/hw2.0/board-2.bin \
338 $(1)/lib/firmware/ath10k/QCA9888/hw2.0/board-2.bin
339 $(INSTALL_DATA) \
340 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA9888) \
341 $(1)/lib/firmware/ath10k/QCA9888/hw2.0/firmware-5.bin
342 endef
343
344 $(eval $(call BuildPackage,ath10k-firmware-qca9887))
345 $(eval $(call BuildPackage,ath10k-firmware-qca9888))
346 $(eval $(call BuildPackage,ath10k-firmware-qca988x))
347 $(eval $(call BuildPackage,ath10k-firmware-qca99x0))
348 $(eval $(call BuildPackage,ath10k-firmware-qca6174))
349 $(eval $(call BuildPackage,ath10k-firmware-qca9984))
350 $(eval $(call BuildPackage,ath10k-firmware-qca4019))
351
352 $(eval $(call BuildPackage,ath10k-firmware-qca9887-ct))
353 $(eval $(call BuildPackage,ath10k-firmware-qca988x-ct))
354 $(eval $(call BuildPackage,ath10k-firmware-qca99x0-ct))
355 $(eval $(call BuildPackage,ath10k-firmware-qca9984-ct))
356 $(eval $(call BuildPackage,ath10k-firmware-qca9888-ct))