a8c3e7dee4312c304b79a094ce5dfd73274b8bc3
[openwrt/openwrt.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 CT_FIRMWARE_FILE_HTT = $(1)-$($(1)_FIRMWARE_FILE_CT_HTT)
54
55 define Download/ct-firmware
56 URL:=https://www.candelatech.com/downloads/$(2)
57 FILE:=$(call CT_FIRMWARE_FILE,$(1))
58 URL_FILE:=$($(1)_FIRMWARE_FILE_CT)
59 endef
60
61 define Download/ct-firmware-htt
62 URL:=https://www.candelatech.com/downloads/$(2)
63 FILE:=$(call CT_FIRMWARE_FILE_HTT,$(1))
64 URL_FILE:=$($(1)_FIRMWARE_FILE_CT_HTT)
65 endef
66
67 QCA988X_FIRMWARE_FILE_CT:=firmware-2-ct-full-community-20.bin.lede.006
68 define Download/ath10k-firmware-qca988x-ct
69 $(call Download/ct-firmware,QCA988X,)
70 HASH:=b28ff3eb10f15033be68bbedc91abcf40f7369cc44da4273e3c0df285c74a4f8
71 endef
72 $(eval $(call Download,ath10k-firmware-qca988x-ct))
73
74 QCA988X_FIRMWARE_FILE_CT_HTT:=firmware-2-ct-full-htt-mgt-community-20.bin.lede.006
75 define Download/ath10k-firmware-qca988x-ct-htt
76 $(call Download/ct-firmware-htt,QCA988X,)
77 HASH:=08dd8d339079c9a704cf3f91787cc06a73168a9f57eeb777edaa9cd4194c246c
78 endef
79 $(eval $(call Download,ath10k-firmware-qca988x-ct-htt))
80
81
82 QCA9887_FIRMWARE_FILE_CT:=firmware-2-ct-full-community-20.bin.lede.006
83 define Download/ath10k-firmware-qca9887-ct
84 $(call Download/ct-firmware,QCA9887,ath10k-9887)
85 HASH:=8d3fd2fb62479efa955e0d0487ca8971409e68b395f3a2df28569ec243bd937d
86 endef
87 $(eval $(call Download,ath10k-firmware-qca9887-ct))
88
89 QCA9887_FIRMWARE_FILE_CT_HTT:=firmware-2-ct-full-htt-mgt-community-20.bin.lede.006
90 define Download/ath10k-firmware-qca9887-ct-htt
91 $(call Download/ct-firmware-htt,QCA9887,ath10k-9887)
92 HASH:=f192b5a8ac4b90d828cace0a2279c02fda689fa936f5154f08df6658d0230e9b
93 endef
94 $(eval $(call Download,ath10k-firmware-qca9887-ct-htt))
95
96
97 QCA99X0_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-10.bin-lede.006
98 define Download/ath10k-firmware-qca99x0-ct
99 $(call Download/ct-firmware,QCA99X0,ath10k-10-4)
100 HASH:=1aa21acab7974651af6c0a2698891fc8792edb5124824fac1587123d3b48df67
101 endef
102 $(eval $(call Download,ath10k-firmware-qca99x0-ct))
103
104 QCA99X0_FIRMWARE_FILE_CT_HTT:=firmware-5-ct-full-htt-mgt-community-10.bin-lede.006
105 define Download/ath10k-firmware-qca99x0-ct-htt
106 $(call Download/ct-firmware-htt,QCA99X0,ath10k-10-4)
107 HASH:=e3d89c00f194975649b2f41ff5f5ffc34d60c393d15800df6ea56a8ac29aeeee
108 endef
109 $(eval $(call Download,ath10k-firmware-qca99x0-ct-htt))
110
111
112 QCA9984_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-10.bin-lede.006
113 define Download/ath10k-firmware-qca9984-ct
114 $(call Download/ct-firmware,QCA9984,ath10k-9984-10-4)
115 HASH:=f9700cafb4e2cebe8364eb6fe1754eb2c37b1b02a7408ded908ecc78954380a3
116 endef
117 $(eval $(call Download,ath10k-firmware-qca9984-ct))
118
119 QCA9984_FIRMWARE_FILE_CT_HTT:=firmware-5-ct-full-htt-mgt-community-10.bin-lede.006
120 define Download/ath10k-firmware-qca9984-ct-htt
121 $(call Download/ct-firmware-htt,QCA9984,ath10k-9984-10-4)
122 HASH:=c8c288cd38f3e6b378d7ed8407ee6b01cfcc73acc03d6ad5b8d392a8a346dd82
123 endef
124 $(eval $(call Download,ath10k-firmware-qca9984-ct-htt))
125
126
127 QCA4019_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-10.bin-lede.006
128 define Download/ath10k-firmware-qca4019-ct
129 $(call Download/ct-firmware,QCA4019,ath10k-4019-10-4)
130 HASH:=d2207982b49959b9526d4dc1fd4181b49b3d43a841cf5d6cc396ccb1bc4b572c
131 endef
132 $(eval $(call Download,ath10k-firmware-qca4019-ct))
133
134 QCA4019_FIRMWARE_FILE_CT_HTT:=firmware-5-ct-full-htt-mgt-community-10.bin-lede.006
135 define Download/ath10k-firmware-qca4019-ct-htt
136 $(call Download/ct-firmware-htt,QCA4019,ath10k-4019-10-4)
137 HASH:=3c900bb656f093fe6882616d788c6e2e8fc09edbdda06691e16e5f08d79c4955
138 endef
139 $(eval $(call Download,ath10k-firmware-qca4019-ct-htt))
140
141
142 QCA9888_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-10.bin-lede.006
143 define Download/ath10k-firmware-qca9888-ct
144 $(call Download/ct-firmware,QCA9888,ath10k-9888-10-4)
145 HASH:=9bd38e80ec52484bae5edc785df09cf9acdad3e28ee5080a8105ba786118193a
146 endef
147 $(eval $(call Download,ath10k-firmware-qca9888-ct))
148
149 QCA9888_FIRMWARE_FILE_CT_HTT:=firmware-5-ct-full-htt-mgt-community-10.bin-lede.006
150 define Download/ath10k-firmware-qca9888-ct-htt
151 $(call Download/ct-firmware-htt,QCA9888,ath10k-9888-10-4)
152 HASH:=63e695f55400f784ca8123c299e240626a403437b30d197a7e69a4b42d155b8a
153 endef
154 $(eval $(call Download,ath10k-firmware-qca9888-ct-htt))
155
156
157 define Package/ath10k-firmware-qca99x0
158 $(Package/ath10k-firmware-default)
159 TITLE:=ath10k firmware for QCA99x0 devices
160 SECTION:=firmware
161 CATEGORY:=Firmware
162 endef
163
164 define Package/ath10k-firmware-qca988x-ct
165 $(Package/ath10k-firmware-default)
166 TITLE:=ath10k CT 10.1 firmware for QCA988x devices
167 SECTION:=firmware
168 CATEGORY:=Firmware
169 PROVIDES:=ath10k-firmware-qca988x
170 endef
171 define Package/ath10k-firmware-qca988x-ct-htt
172 $(Package/ath10k-firmware-default)
173 TITLE:=ath10k CT 10.1 htt-mgt fw for QCA988x
174 SECTION:=firmware
175 CATEGORY:=Firmware
176 PROVIDES:=ath10k-firmware-qca988x
177 DEPENDS:=+kmod-ath10k-ct
178 endef
179
180 define Package/ath10k-firmware-qca9887-ct
181 $(Package/ath10k-firmware-default)
182 TITLE:=ath10k CT 10.1 firmware for QCA9887 devices
183 SECTION:=firmware
184 CATEGORY:=Firmware
185 PROVIDES:=ath10k-firmware-qca9887
186 endef
187 define Package/ath10k-firmware-qca9887-ct-htt
188 $(Package/ath10k-firmware-default)
189 TITLE:=ath10k CT 10.1 htt-mgt fw for QCA9887
190 SECTION:=firmware
191 CATEGORY:=Firmware
192 PROVIDES:=ath10k-firmware-qca9887
193 DEPENDS:=+kmod-ath10k-ct
194 endef
195
196 define Package/ath10k-firmware-qca988x-ct/description
197 Alternative ath10k firmware for QCA988X from Candela Technologies.
198 Enables IBSS and other features. See:
199 http://www.candelatech.com/ath10k-10.1.php
200 This firmware will NOT be used unless the standard ath10k-firmware-qca988x
201 is un-selected since the driver will try to load firmware-5.bin before
202 firmware-2.bin
203 endef
204 define Package/ath10k-firmware-qca988x-ct-htt/description
205 Alternative ath10k firmware for QCA988X from Candela Technologies.
206 Uses normal HTT TX data path for management frames, which improves
207 stability in busy networks and fixes .11r authentication.
208 Enables IBSS and other features. See:
209 http://www.candelatech.com/ath10k-10.1.php
210 This firmware selects and requires the ath10k-ct driver.
211 endef
212
213 define Package/ath10k-firmware-qca9887-ct/description
214 Alternative ath10k firmware for QCA9887 from Candela Technologies.
215 Enables IBSS and other features. See:
216 http://www.candelatech.com/ath10k-10.1.php
217 This firmware conflicts with the standard 9887 firmware, so select only
218 one.
219 endef
220 define Package/ath10k-firmware-qca9887-ct-htt/description
221 Alternative ath10k firmware for QCA9887 from Candela Technologies.
222 Uses normal HTT TX data path for management frames, which improves
223 stability in busy networks and fixes .11r authentication.
224 Enables IBSS and other features. See:
225 http://www.candelatech.com/ath10k-10.1.php
226 This firmware selects and requires the ath10k-ct driver.
227 endef
228
229 define Package/ath10k-firmware-qca99x0-ct/description
230 Alternative ath10k firmware for QCA99x0 from Candela Technologies.
231 Enables IBSS and other features. See:
232 http://www.candelatech.com/ath10k-10.4.php
233 This firmware conflicts with the standard 99x0 firmware, so select only
234 one.
235 endef
236 define Package/ath10k-firmware-qca99x0-ct-htt/description
237 Alternative ath10k firmware for QCA99x0 from Candela Technologies.
238 Uses normal HTT TX data path for management frames, which improves
239 stability in busy networks and may be required for .11r authentication.
240 Enables IBSS and other features. See:
241 http://www.candelatech.com/ath10k-10.4.php
242 This firmware selects and requires the ath10k-ct driver.
243 endef
244
245 define Package/ath10k-firmware-qca9984-ct/description
246 Alternative ath10k firmware for QCA9984 from Candela Technologies.
247 Enables IBSS and other features. See:
248 http://www.candelatech.com/ath10k-10.4.php
249 This firmware conflicts with the standard 9984 firmware, so select only
250 one.
251 endef
252 define Package/ath10k-firmware-qca9984-ct-htt/description
253 Alternative ath10k firmware for QCA9984 from Candela Technologies.
254 Uses normal HTT TX data path for management frames, which improves
255 stability in busy networks and may be required for .11r authentication.
256 Enables IBSS and other features. See:
257 http://www.candelatech.com/ath10k-10.4.php
258 This firmware selects and requires the ath10k-ct driver.
259 endef
260
261 define Package/ath10k-firmware-qca4019-ct/description
262 Alternative ath10k firmware for IPQ4019 radio from Candela Technologies.
263 Enables IBSS and other features. Works with standard or ath10k-ct driver.
264 See: http://www.candelatech.com/ath10k-10.4.php
265 endef
266 define Package/ath10k-firmware-qca4019-ct-htt/description
267 Alternative ath10k firmware for IPQ4019 radio from Candela Technologies.
268 Uses normal HTT TX data path for management frames, which improves
269 stability in busy networks and may be required for .11r authentication.
270 Enables IBSS and other features.
271 See: http://www.candelatech.com/ath10k-10.4.php
272 This firmware selects and requires the ath10k-ct driver.
273 endef
274
275 define Package/ath10k-firmware-qca9888-ct/description
276 Alternative ath10k firmware for QCA9886 and QCA9888 from Candela Technologies.
277 Enables IBSS and other features. See:
278 http://www.candelatech.com/ath10k-10.4.php
279 This firmware conflicts with the standard 9886 and 9888 firmware, so select only
280 one.
281 endef
282 define Package/ath10k-firmware-qca9888-ct-htt/description
283 Alternative ath10k firmware for QCA9886 and QCA9888 from Candela Technologies.
284 Uses normal HTT TX data path for management frames, which improves
285 stability in busy networks and may be required for .11r authentication.
286 Enables IBSS and other features. See:
287 http://www.candelatech.com/ath10k-10.4.php
288 This firmware selects and requires the ath10k-ct driver.
289 endef
290
291
292 define Package/ath10k-firmware-qca99x0/description
293 Standard ath10k firmware for QCA99x0 from QCA
294 This firmware conflicts with the CT 99x0 firmware, so select only
295 one.
296 endef
297
298 define Package/ath10k-firmware-qca99x0-ct
299 $(Package/ath10k-firmware-default)
300 TITLE:=ath10k CT 10.4 firmware for QCA99x0 devices
301 SECTION:=firmware
302 CATEGORY:=Firmware
303 PROVIDES:=ath10k-firmware-qca99x0
304 endef
305 define Package/ath10k-firmware-qca99x0-ct-htt
306 $(Package/ath10k-firmware-default)
307 TITLE:=ath10k CT 10.4 htt-mgt fw for QCA99x0
308 SECTION:=firmware
309 CATEGORY:=Firmware
310 PROVIDES:=ath10k-firmware-qca99x0
311 DEPENDS:=+kmod-ath10k-ct
312 endef
313
314 define Package/ath10k-firmware-qca9984-ct
315 $(Package/ath10k-firmware-default)
316 TITLE:=ath10k CT 10.4 firmware for QCA9984 devices
317 SECTION:=firmware
318 CATEGORY:=Firmware
319 PROVIDES:=ath10k-firmware-qca9984
320 endef
321 define Package/ath10k-firmware-qca9984-ct-htt
322 $(Package/ath10k-firmware-default)
323 TITLE:=ath10k CT 10.4 htt-mgt fw for QCA9984
324 SECTION:=firmware
325 CATEGORY:=Firmware
326 PROVIDES:=ath10k-firmware-qca9984
327 DEPENDS:=+kmod-ath10k-ct
328 endef
329
330 define Package/ath10k-firmware-qca4019-ct
331 $(Package/ath10k-firmware-default)
332 TITLE:=ath10k CT 10.4 firmware for QCA4018/9
333 SECTION:=firmware
334 CATEGORY:=Firmware
335 PROVIDES:=ath10k-firmware-qca4019
336 endef
337 define Package/ath10k-firmware-qca4019-ct-htt
338 $(Package/ath10k-firmware-default)
339 TITLE:=ath10k CT 10.4 htt-mgt for QCA4018/9
340 SECTION:=firmware
341 CATEGORY:=Firmware
342 PROVIDES:=ath10k-firmware-qca4019
343 DEPENDS:=+kmod-ath10k-ct
344 endef
345
346 define Package/ath10k-firmware-qca9888-ct
347 $(Package/ath10k-firmware-default)
348 TITLE:=ath10k CT 10.4 fw for QCA9886/8 devices
349 SECTION:=firmware
350 CATEGORY:=Firmware
351 PROVIDES:=ath10k-firmware-qca9888
352 endef
353 define Package/ath10k-firmware-qca9888-ct-htt
354 $(Package/ath10k-firmware-default)
355 TITLE:=ath10k CT 10.4 htt-mgt fw for QCA9886/8
356 SECTION:=firmware
357 CATEGORY:=Firmware
358 PROVIDES:=ath10k-firmware-qca9888
359 DEPENDS:=+kmod-ath10k-ct
360 endef
361
362
363
364 define Package/ath10k-firmware-qca9984
365 $(Package/ath10k-firmware-default)
366 TITLE:=ath10k firmware for QCA9984 devices
367 SECTION:=firmware
368 CATEGORY:=Firmware
369 endef
370
371 define Package/ath10k-firmware-qca4019
372 $(Package/ath10k-firmware-default)
373 TITLE:=ath10k firmware for IPQ/QCA4019 devices
374 SECTION:=firmware
375 CATEGORY:=Firmware
376 endef
377
378 define Package/ath10k-firmware-qca6174
379 $(Package/ath10k-firmware-default)
380 TITLE:=ath10k firmware for QCA6174 devices
381 SECTION:=firmware
382 CATEGORY:=Firmware
383 endef
384
385 QCA99X0_BOARD_REV:=ddcec9efd245da9365c474f513a855a55f3ac7fe
386 QCA99X0_BOARD_FILE:=board-2.bin.$(QCA99X0_BOARD_REV)
387
388 define Download/qca99x0-board
389 URL:=https://source.codeaurora.org/quic/qsdk/oss/firmware/ath10k-firmware/plain/ath10k/QCA99X0/hw2.0
390 URL_FILE:=board-2.bin?id=$(QCA99X0_BOARD_REV)
391 FILE:=$(QCA99X0_BOARD_FILE)
392 HASH:=03711ac21e60ef59d3815e235eb721c0c22851b5410299411085aa6f2af45401
393 endef
394 $(eval $(call Download,qca99x0-board))
395
396 define Build/Compile
397
398 endef
399
400 define Package/ath10k-firmware-qca4019/install
401 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA4019/hw1.0
402 $(INSTALL_DATA) \
403 $(PKG_BUILD_DIR)/QCA4019/hw1.0/board-2.bin \
404 $(1)/lib/firmware/ath10k/QCA4019/hw1.0/
405 $(INSTALL_DATA) \
406 $(PKG_BUILD_DIR)/QCA4019/hw1.0/3.4/firmware-5.bin_10.4-3.4-00104 \
407 $(1)/lib/firmware/ath10k/QCA4019/hw1.0/firmware-5.bin
408 endef
409
410 define Package/ath10k-firmware-qca9887/install
411 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9887/hw1.0
412 $(INSTALL_DATA) \
413 $(PKG_BUILD_DIR)/QCA9887/hw1.0/10.2.4-1.0/firmware-5.bin_10.2.4-1.0-00033 \
414 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/firmware-5.bin
415 $(INSTALL_DATA) \
416 $(PKG_BUILD_DIR)/QCA9887/hw1.0/board.bin \
417 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/board.bin
418 endef
419
420 define Package/ath10k-firmware-qca9888/install
421 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9888/hw2.0
422 $(INSTALL_DATA) \
423 $(PKG_BUILD_DIR)/QCA9888/hw2.0/board-2.bin \
424 $(1)/lib/firmware/ath10k/QCA9888/hw2.0/board-2.bin
425 $(INSTALL_DATA) \
426 $(PKG_BUILD_DIR)/QCA9888/hw2.0/3.5.3/firmware-5.bin_10.4-3.5.3-00053 \
427 $(1)/lib/firmware/ath10k/QCA9888/hw2.0/firmware-5.bin
428 endef
429
430 define Package/ath10k-firmware-qca988x/install
431 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
432 $(INSTALL_DATA) \
433 $(PKG_BUILD_DIR)/QCA988X/hw2.0/board.bin \
434 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
435 $(INSTALL_DATA) \
436 $(PKG_BUILD_DIR)/QCA988X/hw2.0/10.2.4-1.0/firmware-5.bin_10.2.4-1.0-00033 \
437 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-5.bin
438 endef
439
440 define Package/ath10k-firmware-qca6174/install
441 $(INSTALL_DIR) $(1)/lib/firmware/ath10k
442 $(CP) $(PKG_BUILD_DIR)/QCA6174 $(1)/lib/firmware/ath10k/
443 endef
444
445 define Package/ath10k-firmware-qca99x0/install
446 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
447 $(INSTALL_DATA) \
448 $(DL_DIR)/$(QCA99X0_BOARD_FILE) \
449 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-2.bin
450 $(INSTALL_DATA) \
451 $(PKG_BUILD_DIR)/QCA99X0/hw2.0/boardData_AR900B_CUS239_5G_v2_001.bin \
452 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin
453 $(INSTALL_DATA) \
454 $(PKG_BUILD_DIR)/QCA99X0/hw2.0/firmware-5.bin_10.4.1.00030-1 \
455 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/firmware-5.bin
456 endef
457
458 define Package/ath10k-firmware-qca9984/install
459 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9984/hw1.0
460 $(INSTALL_DATA) \
461 $(PKG_BUILD_DIR)/QCA9984/hw1.0/board-2.bin \
462 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
463 $(INSTALL_DATA) \
464 $(PKG_BUILD_DIR)/QCA9984/hw1.0/3.5.3/firmware-5.bin_10.4-3.5.3-00053 \
465 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/firmware-5.bin
466 endef
467
468
469 # CT related firmware
470
471 define Package/ath10k-firmware-qca9887-ct/install
472 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9887/hw1.0
473 $(INSTALL_DATA) \
474 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA9887) \
475 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/firmware-2.bin
476 $(INSTALL_DATA) \
477 $(PKG_BUILD_DIR)/QCA9887/hw1.0/board.bin \
478 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/board.bin
479 endef
480 define Package/ath10k-firmware-qca9887-ct-htt/install
481 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9887/hw1.0
482 $(INSTALL_DATA) \
483 $(DL_DIR)/$(call CT_FIRMWARE_FILE_HTT,QCA9887) \
484 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/ct-firmware-2.bin
485 $(INSTALL_DATA) \
486 $(PKG_BUILD_DIR)/QCA9887/hw1.0/board.bin \
487 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/board.bin
488 endef
489
490 define Package/ath10k-firmware-qca988x-ct/install
491 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
492 $(INSTALL_DATA) \
493 $(PKG_BUILD_DIR)/QCA988X/hw2.0/board.bin \
494 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
495 $(INSTALL_DATA) \
496 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA988X) \
497 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-2.bin
498 endef
499 define Package/ath10k-firmware-qca988x-ct-htt/install
500 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
501 $(INSTALL_DATA) \
502 $(PKG_BUILD_DIR)/QCA988X/hw2.0/board.bin \
503 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
504 $(INSTALL_DATA) \
505 $(DL_DIR)/$(call CT_FIRMWARE_FILE_HTT,QCA988X) \
506 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/ct-firmware-2.bin
507 endef
508
509 define Package/ath10k-firmware-qca99x0-ct/install
510 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
511 $(INSTALL_DATA) \
512 $(DL_DIR)/$(QCA99X0_BOARD_FILE) \
513 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-2.bin
514 $(INSTALL_DATA) \
515 $(PKG_BUILD_DIR)/QCA99X0/hw2.0/boardData_AR900B_CUS239_5G_v2_001.bin \
516 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin
517 $(INSTALL_DATA) \
518 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA99X0) \
519 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/firmware-5.bin
520 endef
521 define Package/ath10k-firmware-qca99x0-ct-htt/install
522 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
523 $(INSTALL_DATA) \
524 $(DL_DIR)/$(QCA99X0_BOARD_FILE) \
525 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-2.bin
526 $(INSTALL_DATA) \
527 $(PKG_BUILD_DIR)/QCA99X0/hw2.0/boardData_AR900B_CUS239_5G_v2_001.bin \
528 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin
529 $(INSTALL_DATA) \
530 $(DL_DIR)/$(call CT_FIRMWARE_FILE_HTT,QCA99X0) \
531 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/ct-firmware-5.bin
532 endef
533
534 define Package/ath10k-firmware-qca9984-ct/install
535 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9984/hw1.0
536 $(INSTALL_DATA) \
537 $(PKG_BUILD_DIR)/QCA9984/hw1.0/board-2.bin \
538 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
539 $(INSTALL_DATA) \
540 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA9984) \
541 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/firmware-5.bin
542 endef
543 define Package/ath10k-firmware-qca9984-ct-htt/install
544 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9984/hw1.0
545 $(INSTALL_DATA) \
546 $(PKG_BUILD_DIR)/QCA9984/hw1.0/board-2.bin \
547 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
548 $(INSTALL_DATA) \
549 $(DL_DIR)/$(call CT_FIRMWARE_FILE_HTT,QCA9984) \
550 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/ct-firmware-5.bin
551 endef
552
553 define Package/ath10k-firmware-qca4019-ct/install
554 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA4019/hw1.0
555 $(INSTALL_DATA) \
556 $(PKG_BUILD_DIR)/QCA4019/hw1.0/board-2.bin \
557 $(1)/lib/firmware/ath10k/QCA4019/hw1.0/
558 $(INSTALL_DATA) \
559 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA4019) \
560 $(1)/lib/firmware/ath10k/QCA4019/hw1.0/firmware-5.bin
561 endef
562 define Package/ath10k-firmware-qca4019-ct-htt/install
563 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA4019/hw1.0
564 $(INSTALL_DATA) \
565 $(PKG_BUILD_DIR)/QCA4019/hw1.0/board-2.bin \
566 $(1)/lib/firmware/ath10k/QCA4019/hw1.0/
567 $(INSTALL_DATA) \
568 $(DL_DIR)/$(call CT_FIRMWARE_FILE_HTT,QCA4019) \
569 $(1)/lib/firmware/ath10k/QCA4019/hw1.0/ct-firmware-5.bin
570 endef
571
572 define Package/ath10k-firmware-qca9888-ct/install
573 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9888/hw2.0
574 ln -s \
575 ../../cal-pci-0000:01:00.0.bin \
576 $(1)/lib/firmware/ath10k/QCA9888/hw2.0/board.bin
577 $(INSTALL_DATA) \
578 $(PKG_BUILD_DIR)/QCA9888/hw2.0/board-2.bin \
579 $(1)/lib/firmware/ath10k/QCA9888/hw2.0/board-2.bin
580 $(INSTALL_DATA) \
581 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA9888) \
582 $(1)/lib/firmware/ath10k/QCA9888/hw2.0/firmware-5.bin
583 endef
584 define Package/ath10k-firmware-qca9888-ct-htt/install
585 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9888/hw2.0
586 ln -s \
587 ../../cal-pci-0000:01:00.0.bin \
588 $(1)/lib/firmware/ath10k/QCA9888/hw2.0/board.bin
589 $(INSTALL_DATA) \
590 $(PKG_BUILD_DIR)/QCA9888/hw2.0/board-2.bin \
591 $(1)/lib/firmware/ath10k/QCA9888/hw2.0/board-2.bin
592 $(INSTALL_DATA) \
593 $(DL_DIR)/$(call CT_FIRMWARE_FILE_HTT,QCA9888) \
594 $(1)/lib/firmware/ath10k/QCA9888/hw2.0/ct-firmware-5.bin
595 endef
596
597 $(eval $(call BuildPackage,ath10k-firmware-qca9887))
598 $(eval $(call BuildPackage,ath10k-firmware-qca9888))
599 $(eval $(call BuildPackage,ath10k-firmware-qca988x))
600 $(eval $(call BuildPackage,ath10k-firmware-qca99x0))
601 $(eval $(call BuildPackage,ath10k-firmware-qca6174))
602 $(eval $(call BuildPackage,ath10k-firmware-qca9984))
603 $(eval $(call BuildPackage,ath10k-firmware-qca4019))
604
605 $(eval $(call BuildPackage,ath10k-firmware-qca9887-ct))
606 $(eval $(call BuildPackage,ath10k-firmware-qca9887-ct-htt))
607 $(eval $(call BuildPackage,ath10k-firmware-qca988x-ct))
608 $(eval $(call BuildPackage,ath10k-firmware-qca988x-ct-htt))
609 $(eval $(call BuildPackage,ath10k-firmware-qca99x0-ct))
610 $(eval $(call BuildPackage,ath10k-firmware-qca99x0-ct-htt))
611 $(eval $(call BuildPackage,ath10k-firmware-qca9984-ct))
612 $(eval $(call BuildPackage,ath10k-firmware-qca9984-ct-htt))
613 $(eval $(call BuildPackage,ath10k-firmware-qca4019-ct))
614 $(eval $(call BuildPackage,ath10k-firmware-qca4019-ct-htt))
615 $(eval $(call BuildPackage,ath10k-firmware-qca9888-ct))
616 $(eval $(call BuildPackage,ath10k-firmware-qca9888-ct-htt))