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:=2017-10-30
12 PKG_SOURCE_VERSION:=476a2850b1e8582d51187799d7de209daf1a57b2
13 PKG_MIRROR_HASH:=77ba59f75c5897c842c5c525945de019fd23f1e2d8bea6239924857e500bf73a
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)
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)
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
65 $(eval $(call Download,ath10k-firmware-qca988x-ct))
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
72 $(eval $(call Download,ath10k-firmware-qca9887-ct))
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
79 $(eval $(call Download,ath10k-firmware-qca99x0-ct))
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
86 $(eval $(call Download,ath10k-firmware-qca9984-ct))
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
93 $(eval $(call Download,ath10k-firmware-qca9888-ct))
95 define Package/ath10k-firmware-qca99x0
96 $(Package/ath10k-firmware-default)
97 TITLE:=ath10k firmware for QCA99x0 devices
102 define Package/ath10k-firmware-qca988x-ct
103 $(Package/ath10k-firmware-default)
104 TITLE:=ath10k CT 10.1 firmware for QCA988x devices
109 define Package/ath10k-firmware-qca9887-ct
110 $(Package/ath10k-firmware-default)
111 TITLE:=ath10k CT 10.1 firmware for QCA9887 devices
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
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
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
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
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
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
163 define Package/ath10k-firmware-qca99x0-ct
164 $(Package/ath10k-firmware-default)
165 TITLE:=ath10k CT 10.4.3 firmware for QCA99x0 devices
170 define Package/ath10k-firmware-qca9984-ct
171 $(Package/ath10k-firmware-default)
172 TITLE:=ath10k CT 10.4.3 firmware for QCA9984 devices
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
184 define Package/ath10k-firmware-qca9984
185 $(Package/ath10k-firmware-default)
186 TITLE:=ath10k firmware for QCA9984 devices
191 define Package/ath10k-firmware-qca4019
192 $(Package/ath10k-firmware-default)
193 TITLE:=ath10k firmware for IPQ/QCA4019 devices
198 define Package/ath10k-firmware-qca6174
199 $(Package/ath10k-firmware-default)
200 TITLE:=ath10k firmware for QCA6174 devices
205 QCA99X0_BOARD_REV:=ddcec9efd245da9365c474f513a855a55f3ac7fe
206 QCA99X0_BOARD_FILE:=board-2.bin.$(QCA99X0_BOARD_REV)
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
214 $(eval $(call Download,qca99x0-board))
220 define Package/ath10k-firmware-qca4019/install
221 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA4019/hw1.0
223 $(PKG_BUILD_DIR)/QCA4019/hw1.0/board-2.bin \
224 $(1)/lib/firmware/ath10k/QCA4019/hw1.0/
226 $(PKG_BUILD_DIR)/QCA4019/hw1.0/3.2.1/firmware-5.bin_10.4-3.2.1-00058 \
227 $(1)/lib/firmware/ath10k/QCA4019/hw1.0/firmware-5.bin
230 define Package/ath10k-firmware-qca9887/install
231 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9887/hw1.0
233 $(PKG_BUILD_DIR)/QCA9887/hw1.0/10.2.4-1.0/firmware-5.bin_10.2.4-1.0-00029 \
234 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/firmware-5.bin
236 $(PKG_BUILD_DIR)/QCA9887/hw1.0/board.bin \
237 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/board.bin
240 define Package/ath10k-firmware-qca9888/install
241 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9888/hw2.0
243 $(PKG_BUILD_DIR)/QCA9888/hw2.0/board-2.bin \
244 $(1)/lib/firmware/ath10k/QCA9888/hw2.0/board-2.bin
246 $(PKG_BUILD_DIR)/QCA9888/hw2.0/firmware-5.bin_10.4-3.2-00072 \
247 $(1)/lib/firmware/ath10k/QCA9888/hw2.0/firmware-5.bin
250 define Package/ath10k-firmware-qca988x/install
251 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
253 $(PKG_BUILD_DIR)/QCA988X/hw2.0/board.bin \
254 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
256 $(PKG_BUILD_DIR)/QCA988X/hw2.0/10.2.4-1.0/firmware-5.bin_10.2.4-1.0-00029 \
257 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-5.bin
260 define Package/ath10k-firmware-qca9887-ct/install
261 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9887/hw1.0
263 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA9887) \
264 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/firmware-2.bin
266 $(PKG_BUILD_DIR)/QCA9887/hw1.0/board.bin \
267 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/board.bin
270 define Package/ath10k-firmware-qca988x-ct/install
271 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
273 $(PKG_BUILD_DIR)/QCA988X/hw2.0/board.bin \
274 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
276 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA988X) \
277 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-2.bin
280 define Package/ath10k-firmware-qca6174/install
281 $(INSTALL_DIR) $(1)/lib/firmware/ath10k
282 $(CP) $(PKG_BUILD_DIR)/QCA6174 $(1)/lib/firmware/ath10k/
285 define Package/ath10k-firmware-qca99x0/install
286 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
288 $(DL_DIR)/$(QCA99X0_BOARD_FILE) \
289 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-2.bin
291 $(PKG_BUILD_DIR)/QCA99X0/hw2.0/boardData_AR900B_CUS239_5G_v2_001.bin \
292 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin
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
298 define Package/ath10k-firmware-qca99x0-ct/install
299 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
301 $(DL_DIR)/$(QCA99X0_BOARD_FILE) \
302 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-2.bin
304 $(PKG_BUILD_DIR)/QCA99X0/hw2.0/boardData_AR900B_CUS239_5G_v2_001.bin \
305 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin
307 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA99X0) \
308 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/firmware-5.bin
311 define Package/ath10k-firmware-qca9984/install
312 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9984/hw1.0
314 $(PKG_BUILD_DIR)/QCA9984/hw1.0/board-2.bin \
315 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
317 $(PKG_BUILD_DIR)/QCA9984/hw1.0/3.4/firmware-5.bin_10.4-3.4-00082 \
318 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/firmware-5.bin
321 define Package/ath10k-firmware-qca9984-ct/install
322 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9984/hw1.0
324 $(PKG_BUILD_DIR)/QCA9984/hw1.0/board-2.bin \
325 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
327 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA9984) \
328 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/firmware-5.bin
331 define Package/ath10k-firmware-qca9888-ct/install
332 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9888/hw2.0
334 ../../cal-pci-0000:01:00.0.bin \
335 $(1)/lib/firmware/ath10k/QCA9888/hw2.0/board.bin
337 $(PKG_BUILD_DIR)/QCA9888/hw2.0/board-2.bin \
338 $(1)/lib/firmware/ath10k/QCA9888/hw2.0/board-2.bin
340 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA9888) \
341 $(1)/lib/firmware/ath10k/QCA9888/hw2.0/firmware-5.bin
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))
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))