2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=ath10k-firmware
11 PKG_SOURCE_DATE
:=2018-02-09
12 PKG_SOURCE_VERSION
:=8f4bafdd400d21a65966004d0ce6e0686ef4d9bc
13 PKG_MIRROR_HASH
:=4f4f0678b9d07c0282f18c69bd63a5e2a2ae015b9ce7298cedb88a60be87ed3a
17 PKG_SOURCE_URL
:=https
://github.com
/kvalo
/ath10k-firmware.git
19 PKG_MAINTAINER
:=Felix Fietkau
<nbd@nbd.name
>
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/ath10k-firmware-default
26 URL
:=$(PKG_SOURCE_URL
)
30 define Package
/ath10k-firmware-qca9887
31 $(Package
/ath10k-firmware-default
)
32 TITLE
:=ath10k firmware for QCA9887 devices
35 define Package
/ath10k-firmware-qca9888
36 $(Package
/ath10k-firmware-default
)
37 TITLE
:=ath10k firmware for QCA9888 devices
40 define Package
/ath10k-firmware-qca9887-ct
41 $(Package
/ath10k-firmware-default
)
42 TITLE
:=ath10k-CT firmware for QCA9887 devices
45 define Package
/ath10k-firmware-qca988x
46 $(Package
/ath10k-firmware-default
)
47 TITLE
:=ath10k firmware for QCA988x devices
52 CT_FIRMWARE_FILE
= $(1)-$($(1)_FIRMWARE_FILE_CT
)
53 CT_FIRMWARE_FILE_HTT
= $(1)-$($(1)_FIRMWARE_FILE_CT_HTT
)
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
)
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
)
67 QCA988X_FIRMWARE_FILE_CT
:=firmware-2-ct-full-community-19.bin.lede
68 define Download
/ath10k-firmware-qca988x-ct
69 $(call Download
/ct-firmware
,QCA988X
,)
70 HASH
:=bff98f028062dae9fc638c7596aec3c79bf9eddaff65cfacba067f6d72f217cd
72 $(eval
$(call Download
,ath10k-firmware-qca988x-ct
))
74 QCA9887_FIRMWARE_FILE_CT
:=firmware-2-ct-full-community-19.bin.lede
75 define Download
/ath10k-firmware-qca9887-ct
76 $(call Download
/ct-firmware
,QCA9887
,ath10k-9887
)
77 HASH
:=95dc106f98672bd9c7d3fe6881ed79ab079cb49b0a995650991b1beaff2b0101
79 $(eval
$(call Download
,ath10k-firmware-qca9887-ct
))
81 QCA99X0_FIRMWARE_FILE_CT
:=firmware-5-ct-full-community-9.bin-lede
.004
82 define Download
/ath10k-firmware-qca99x0-ct
83 $(call Download
/ct-firmware
,QCA99X0
,ath10k-10-4
)
84 HASH
:=993c29fd64bb2a59b86d34f58601a1a48b83b541750bc511f78cc17152829b4d
86 $(eval
$(call Download
,ath10k-firmware-qca99x0-ct
))
88 QCA9984_FIRMWARE_FILE_CT
:=firmware-5-ct-full-community-9.bin-lede
.004
89 define Download
/ath10k-firmware-qca9984-ct
90 $(call Download
/ct-firmware
,QCA9984
,ath10k-9984-10-4
)
91 HASH
:=d997eed9a8bc6809c01d367759ba8545c10e3be93ea1f33d6d753127ef0f7c5e
93 $(eval
$(call Download
,ath10k-firmware-qca9984-ct
))
95 QCA4019_FIRMWARE_FILE_CT_HTT
:=firmware-5-ct-full-htt-mgt-community-10.bin-lede
.002
96 define Download
/ath10k-firmware-qca4019-ct-htt
97 $(call Download
/ct-firmware-htt
,QCA4019
,ath10k-4019-10-4
)
98 HASH
:=e67bbc8eba56bc72c1aa99a6304ea98345bddc34f4844d5d79a51db1d6d8c425
100 $(eval
$(call Download
,ath10k-firmware-qca4019-ct-htt
))
102 QCA4019_FIRMWARE_FILE_CT
:=firmware-5-ct-full-community-10.bin-lede
.002
103 define Download
/ath10k-firmware-qca4019-ct
104 $(call Download
/ct-firmware
,QCA4019
,ath10k-4019-10-4
)
105 HASH
:=f1ebb73903e4e6a6209b8acdc623bc43d355d32cce838ce0448befe9196c7866
107 $(eval
$(call Download
,ath10k-firmware-qca4019-ct
))
109 QCA9888_FIRMWARE_FILE_CT
:=firmware-5-ct-full-community-9.bin-lede
.004
110 define Download
/ath10k-firmware-qca9888-ct
111 $(call Download
/ct-firmware
,QCA9888
,ath10k-9888-10-4
)
112 HASH
:=bbaa71bc7dcaa264c5875e86639f174908fed09fbace975e325959d42f3754ff
114 $(eval
$(call Download
,ath10k-firmware-qca9888-ct
))
116 define Package
/ath10k-firmware-qca99x0
117 $(Package
/ath10k-firmware-default
)
118 TITLE
:=ath10k firmware for QCA99x0 devices
123 define Package
/ath10k-firmware-qca988x-ct
124 $(Package
/ath10k-firmware-default
)
125 TITLE
:=ath10k CT
10.1 firmware for QCA988x devices
128 PROVIDES
:=ath10k-firmware-qca988x
131 define Package
/ath10k-firmware-qca9887-ct
132 $(Package
/ath10k-firmware-default
)
133 TITLE
:=ath10k CT
10.1 firmware for QCA9887 devices
136 PROVIDES
:=ath10k-firmware-qca9887
139 define Package
/ath10k-firmware-qca988x-ct
/description
140 Alternative ath10k firmware for QCA988X from Candela Technologies.
141 Enables IBSS and other features. See
:
142 http
://www.candelatech.com
/ath10k-10.1.php
143 This firmware will NOT be used unless the standard ath10k-firmware-qca988x
144 is un-selected since the driver will try to load firmware-5.bin before
148 define Package
/ath10k-firmware-qca9887-ct
/description
149 Alternative ath10k firmware for QCA9887 from Candela Technologies.
150 Enables IBSS and other features. See
:
151 http
://www.candelatech.com
/ath10k-10.1.php
152 This firmware conflicts with the standard
9887 firmware
, so select only
156 define Package
/ath10k-firmware-qca99x0-ct
/description
157 Alternative ath10k firmware for QCA99x0 from Candela Technologies.
158 Enables IBSS and other features. See
:
159 http
://www.candelatech.com
/ath10k-10.4.php
160 This firmware conflicts with the standard
99x0 firmware
, so select only
164 define Package
/ath10k-firmware-qca9984-ct
/description
165 Alternative ath10k firmware for QCA9984 from Candela Technologies.
166 Enables IBSS and other features. See
:
167 http
://www.candelatech.com
/ath10k-10.4.php
168 This firmware conflicts with the standard
9984 firmware
, so select only
172 define Package
/ath10k-firmware-qca4019-ct-htt
/description
173 Alternative ath10k firmware for IPQ4019 radio from Candela Technologies.
174 Enables IBSS and other features. Requires ath10k-ct driver to function.
175 See
: http
://www.candelatech.com
/ath10k-10.4.php
178 define Package
/ath10k-firmware-qca4019-ct
/description
179 Alternative ath10k firmware for IPQ4019 radio from Candela Technologies.
180 Enables IBSS and other features. Works with standard or ath10k-ct driver.
181 See
: http
://www.candelatech.com
/ath10k-10.4.php
184 define Package
/ath10k-firmware-qca9888-ct
/description
185 Alternative ath10k firmware for QCA9886 and QCA9888 from Candela Technologies.
186 Enables IBSS and other features. See
:
187 http
://www.candelatech.com
/ath10k-10.4.php
188 This firmware conflicts with the standard
9886 and
9888 firmware
, so select only
192 define Package
/ath10k-firmware-qca99x0
/description
193 Standard ath10k firmware for QCA99x0 from QCA
194 This firmware conflicts with the CT
99x0 firmware
, so select only
198 define Package
/ath10k-firmware-qca99x0-ct
199 $(Package
/ath10k-firmware-default
)
200 TITLE
:=ath10k CT
10.4 firmware for QCA99x0 devices
203 PROVIDES
:=ath10k-firmware-qca99x0
206 define Package
/ath10k-firmware-qca9984-ct
207 $(Package
/ath10k-firmware-default
)
208 TITLE
:=ath10k CT
10.4 firmware for QCA9984 devices
211 PROVIDES
:=ath10k-firmware-qca9984
214 define Package
/ath10k-firmware-qca4019-ct-htt
215 $(Package
/ath10k-firmware-default
)
216 TITLE
:=ath10k CT
10.4 htt-mgt for QCA4018
/9
219 PROVIDES
:=ath10k-firmware-qca4019
220 DEPENDS
:=+kmod-ath10k-ct
222 define Package
/ath10k-firmware-qca4019-ct
223 $(Package
/ath10k-firmware-default
)
224 TITLE
:=ath10k CT
10.4 firmware for QCA4018
/9
227 PROVIDES
:=ath10k-firmware-qca4019
230 define Package
/ath10k-firmware-qca9888-ct
231 $(Package
/ath10k-firmware-default
)
232 TITLE
:=ath10k CT
10.4 fw for QCA9886
/8 devices
235 PROVIDES
:=ath10k-firmware-qca9888
238 define Package
/ath10k-firmware-qca9984
239 $(Package
/ath10k-firmware-default
)
240 TITLE
:=ath10k firmware for QCA9984 devices
245 define Package
/ath10k-firmware-qca4019
246 $(Package
/ath10k-firmware-default
)
247 TITLE
:=ath10k firmware for IPQ
/QCA4019 devices
252 define Package
/ath10k-firmware-qca6174
253 $(Package
/ath10k-firmware-default
)
254 TITLE
:=ath10k firmware for QCA6174 devices
259 QCA99X0_BOARD_REV
:=ddcec9efd245da9365c474f513a855a55f3ac7fe
260 QCA99X0_BOARD_FILE
:=board-2.bin.
$(QCA99X0_BOARD_REV
)
262 define Download
/qca99x0-board
263 URL
:=https
://source.codeaurora.org
/quic
/qsdk
/oss
/firmware
/ath10k-firmware
/plain
/ath10k
/QCA99X0
/hw2.0
264 URL_FILE
:=board-2.bin?id
=$(QCA99X0_BOARD_REV
)
265 FILE
:=$(QCA99X0_BOARD_FILE
)
266 HASH
:=03711ac21e60ef59d3815e235eb721c0c22851b5410299411085aa6f2af45401
268 $(eval
$(call Download
,qca99x0-board
))
274 define Package
/ath10k-firmware-qca4019
/install
275 $(INSTALL_DIR
) $(1)/lib
/firmware
/ath10k
/QCA4019
/hw1.0
277 $(PKG_BUILD_DIR
)/QCA4019
/hw1.0
/board-2.bin \
278 $(1)/lib
/firmware
/ath10k
/QCA4019
/hw1.0
/
280 $(PKG_BUILD_DIR
)/QCA4019
/hw1.0
/3.4/firmware-5.bin_10.4
-3.4-00104 \
281 $(1)/lib
/firmware
/ath10k
/QCA4019
/hw1.0
/firmware-5.bin
284 define Package
/ath10k-firmware-qca9887
/install
285 $(INSTALL_DIR
) $(1)/lib
/firmware
/ath10k
/QCA9887
/hw1.0
287 $(PKG_BUILD_DIR
)/QCA9887
/hw1.0
/10.2.4-1.0/firmware-5.bin_10.2
.4-1.0-00033 \
288 $(1)/lib
/firmware
/ath10k
/QCA9887
/hw1.0
/firmware-5.bin
290 $(PKG_BUILD_DIR
)/QCA9887
/hw1.0
/board.bin \
291 $(1)/lib
/firmware
/ath10k
/QCA9887
/hw1.0
/board.bin
294 define Package
/ath10k-firmware-qca9888
/install
295 $(INSTALL_DIR
) $(1)/lib
/firmware
/ath10k
/QCA9888
/hw2.0
297 $(PKG_BUILD_DIR
)/QCA9888
/hw2.0
/board-2.bin \
298 $(1)/lib
/firmware
/ath10k
/QCA9888
/hw2.0
/board-2.bin
300 $(PKG_BUILD_DIR
)/QCA9888
/hw2.0
/3.5.3/firmware-5.bin_10.4
-3.5.3-00053 \
301 $(1)/lib
/firmware
/ath10k
/QCA9888
/hw2.0
/firmware-5.bin
304 define Package
/ath10k-firmware-qca988x
/install
305 $(INSTALL_DIR
) $(1)/lib
/firmware
/ath10k
/QCA988X
/hw2.0
307 $(PKG_BUILD_DIR
)/QCA988X
/hw2.0
/board.bin \
308 $(1)/lib
/firmware
/ath10k
/QCA988X
/hw2.0
/
310 $(PKG_BUILD_DIR
)/QCA988X
/hw2.0
/10.2.4-1.0/firmware-5.bin_10.2
.4-1.0-00033 \
311 $(1)/lib
/firmware
/ath10k
/QCA988X
/hw2.0
/firmware-5.bin
314 define Package
/ath10k-firmware-qca9887-ct
/install
315 $(INSTALL_DIR
) $(1)/lib
/firmware
/ath10k
/QCA9887
/hw1.0
317 $(DL_DIR
)/$(call CT_FIRMWARE_FILE
,QCA9887
) \
318 $(1)/lib
/firmware
/ath10k
/QCA9887
/hw1.0
/firmware-2.bin
320 $(PKG_BUILD_DIR
)/QCA9887
/hw1.0
/board.bin \
321 $(1)/lib
/firmware
/ath10k
/QCA9887
/hw1.0
/board.bin
324 define Package
/ath10k-firmware-qca988x-ct
/install
325 $(INSTALL_DIR
) $(1)/lib
/firmware
/ath10k
/QCA988X
/hw2.0
327 $(PKG_BUILD_DIR
)/QCA988X
/hw2.0
/board.bin \
328 $(1)/lib
/firmware
/ath10k
/QCA988X
/hw2.0
/
330 $(DL_DIR
)/$(call CT_FIRMWARE_FILE
,QCA988X
) \
331 $(1)/lib
/firmware
/ath10k
/QCA988X
/hw2.0
/firmware-2.bin
334 define Package
/ath10k-firmware-qca6174
/install
335 $(INSTALL_DIR
) $(1)/lib
/firmware
/ath10k
336 $(CP
) $(PKG_BUILD_DIR
)/QCA6174
$(1)/lib
/firmware
/ath10k
/
339 define Package
/ath10k-firmware-qca99x0
/install
340 $(INSTALL_DIR
) $(1)/lib
/firmware
/ath10k
/QCA99X0
/hw2.0
342 $(DL_DIR
)/$(QCA99X0_BOARD_FILE
) \
343 $(1)/lib
/firmware
/ath10k
/QCA99X0
/hw2.0
/board-2.bin
345 $(PKG_BUILD_DIR
)/QCA99X0
/hw2.0
/boardData_AR900B_CUS239_5G_v2_001.bin \
346 $(1)/lib
/firmware
/ath10k
/QCA99X0
/hw2.0
/board.bin
348 $(PKG_BUILD_DIR
)/QCA99X0
/hw2.0
/firmware-5.bin_10.4
.1.00030-1 \
349 $(1)/lib
/firmware
/ath10k
/QCA99X0
/hw2.0
/firmware-5.bin
352 define Package
/ath10k-firmware-qca99x0-ct
/install
353 $(INSTALL_DIR
) $(1)/lib
/firmware
/ath10k
/QCA99X0
/hw2.0
355 $(DL_DIR
)/$(QCA99X0_BOARD_FILE
) \
356 $(1)/lib
/firmware
/ath10k
/QCA99X0
/hw2.0
/board-2.bin
358 $(PKG_BUILD_DIR
)/QCA99X0
/hw2.0
/boardData_AR900B_CUS239_5G_v2_001.bin \
359 $(1)/lib
/firmware
/ath10k
/QCA99X0
/hw2.0
/board.bin
361 $(DL_DIR
)/$(call CT_FIRMWARE_FILE
,QCA99X0
) \
362 $(1)/lib
/firmware
/ath10k
/QCA99X0
/hw2.0
/firmware-5.bin
365 define Package
/ath10k-firmware-qca9984
/install
366 $(INSTALL_DIR
) $(1)/lib
/firmware
/ath10k
/QCA9984
/hw1.0
368 $(PKG_BUILD_DIR
)/QCA9984
/hw1.0
/board-2.bin \
369 $(1)/lib
/firmware
/ath10k
/QCA9984
/hw1.0
/board-2.bin
371 $(PKG_BUILD_DIR
)/QCA9984
/hw1.0
/3.5.3/firmware-5.bin_10.4
-3.5.3-00053 \
372 $(1)/lib
/firmware
/ath10k
/QCA9984
/hw1.0
/firmware-5.bin
375 define Package
/ath10k-firmware-qca9984-ct
/install
376 $(INSTALL_DIR
) $(1)/lib
/firmware
/ath10k
/QCA9984
/hw1.0
378 $(PKG_BUILD_DIR
)/QCA9984
/hw1.0
/board-2.bin \
379 $(1)/lib
/firmware
/ath10k
/QCA9984
/hw1.0
/board-2.bin
381 $(DL_DIR
)/$(call CT_FIRMWARE_FILE
,QCA9984
) \
382 $(1)/lib
/firmware
/ath10k
/QCA9984
/hw1.0
/firmware-5.bin
385 define Package
/ath10k-firmware-qca4019-ct-htt
/install
386 $(INSTALL_DIR
) $(1)/lib
/firmware
/ath10k
/QCA4019
/hw1.0
388 $(PKG_BUILD_DIR
)/QCA4019
/hw1.0
/board-2.bin \
389 $(1)/lib
/firmware
/ath10k
/QCA4019
/hw1.0
/
391 $(DL_DIR
)/$(call CT_FIRMWARE_FILE_HTT
,QCA4019
) \
392 $(1)/lib
/firmware
/ath10k
/QCA4019
/hw1.0
/ct-firmware-5.bin
395 define Package
/ath10k-firmware-qca4019-ct
/install
396 $(INSTALL_DIR
) $(1)/lib
/firmware
/ath10k
/QCA4019
/hw1.0
398 $(PKG_BUILD_DIR
)/QCA4019
/hw1.0
/board-2.bin \
399 $(1)/lib
/firmware
/ath10k
/QCA4019
/hw1.0
/
401 $(DL_DIR
)/$(call CT_FIRMWARE_FILE
,QCA4019
) \
402 $(1)/lib
/firmware
/ath10k
/QCA4019
/hw1.0
/firmware-5.bin
405 define Package
/ath10k-firmware-qca9888-ct
/install
406 $(INSTALL_DIR
) $(1)/lib
/firmware
/ath10k
/QCA9888
/hw2.0
408 ..
/..
/cal-pci-0000
:01:00.0.bin \
409 $(1)/lib
/firmware
/ath10k
/QCA9888
/hw2.0
/board.bin
411 $(PKG_BUILD_DIR
)/QCA9888
/hw2.0
/board-2.bin \
412 $(1)/lib
/firmware
/ath10k
/QCA9888
/hw2.0
/board-2.bin
414 $(DL_DIR
)/$(call CT_FIRMWARE_FILE
,QCA9888
) \
415 $(1)/lib
/firmware
/ath10k
/QCA9888
/hw2.0
/firmware-5.bin
418 $(eval
$(call BuildPackage
,ath10k-firmware-qca9887
))
419 $(eval
$(call BuildPackage
,ath10k-firmware-qca9888
))
420 $(eval
$(call BuildPackage
,ath10k-firmware-qca988x
))
421 $(eval
$(call BuildPackage
,ath10k-firmware-qca99x0
))
422 $(eval
$(call BuildPackage
,ath10k-firmware-qca6174
))
423 $(eval
$(call BuildPackage
,ath10k-firmware-qca9984
))
424 $(eval
$(call BuildPackage
,ath10k-firmware-qca4019
))
426 $(eval
$(call BuildPackage
,ath10k-firmware-qca9887-ct
))
427 $(eval
$(call BuildPackage
,ath10k-firmware-qca988x-ct
))
428 $(eval
$(call BuildPackage
,ath10k-firmware-qca99x0-ct
))
429 $(eval
$(call BuildPackage
,ath10k-firmware-qca9984-ct
))
430 $(eval
$(call BuildPackage
,ath10k-firmware-qca4019-ct-htt
))
431 $(eval
$(call BuildPackage
,ath10k-firmware-qca4019-ct
))
432 $(eval
$(call BuildPackage
,ath10k-firmware-qca9888-ct
))