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-03-13
12 PKG_SOURCE_VERSION:=2209b0f8d41aef3435c7238b9eb99de7ed36fd5a
13 PKG_MIRROR_HASH:=884e4678f6b6b5d8b367a90769784ef6449d6774b749104d7a20552b5601b041
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-qca9887-ct
36 $(Package/ath10k-firmware-default)
37 TITLE:=ath10k-CT firmware for QCA9887 devices
40 QCA9887_REV:=3cce88e245f2d685e49411c4f80998f94baf67b8
41 QCA9887_FIRMWARE_FILE:=firmware-5.bin_10.2.4-1.0-00013
42 QCA9887_FIRMWARE_FILE_HASH:=5966408bd41f309edb595344b8dd088c0fed212debfd91e5f3e8a55ea119c16d
43 QCA9887_FIRMWARE_FILE_DL:=$(QCA9887_FIRMWARE_FILE).$(QCA9887_FIRMWARE_FILE_HASH)
44 QCA9887_BOARD_FILE:=board.bin
45 QCA9887_BOARD_FILE_HASH:=cf4df099f6ee05c181f55ce17297a1d32c61d725eb96246fd315ad5587c42426
46 QCA9887_BOARD_FILE_DL:=$(QCA9887_BOARD_FILE).$(QCA9887_BOARD_FILE_HASH)
48 define Download/ath10k-qca9887-firmware
49 URL:=https://github.com/kvalo/ath10k-firmware/raw/$(QCA9887_REV)/QCA9887/hw1.0/
50 URL_FILE:=$(QCA9887_FIRMWARE_FILE)
51 FILE:=$(QCA9887_FIRMWARE_FILE_DL)
52 HASH:=$(QCA9887_FIRMWARE_FILE_HASH)
54 $(eval $(call Download,ath10k-qca9887-firmware))
56 define Download/ath10k-qca9887-board
57 URL:=https://github.com/kvalo/ath10k-firmware/raw/$(QCA9887_REV)/QCA9887/hw1.0/
58 URL_FILE:=$(QCA9887_BOARD_FILE)
59 FILE:=$(QCA9887_BOARD_FILE_DL)
60 HASH:=$(QCA9887_BOARD_FILE_HASH)
62 $(eval $(call Download,ath10k-qca9887-board))
64 define Package/ath10k-firmware-qca988x
65 $(Package/ath10k-firmware-default)
66 TITLE:=ath10k firmware for QCA988x devices
71 CT_FIRMWARE_FILE = $(1)-$($(1)_FIRMWARE_FILE_CT)
73 define Download/ct-firmware
74 URL:=https://www.candelatech.com/downloads/$(2)
75 FILE:=$(call CT_FIRMWARE_FILE,$(1))
76 URL_FILE:=$($(1)_FIRMWARE_FILE_CT)
79 QCA988X_FIRMWARE_FILE_CT:=firmware-2-ct-full-community.bin-19-rc3-lede
80 define Download/ath10k-firmware-qca988x-ct
81 $(call Download/ct-firmware,QCA988X,)
82 HASH:=4112d78161a2c20e7a9490ea8d04e9f919508bafb097d88761dcce026c26f93f
84 $(eval $(call Download,ath10k-firmware-qca988x-ct))
86 QCA9887_FIRMWARE_FILE_CT:=firmware-2-ct-full-community.bin-19-rc3-lede
87 define Download/ath10k-firmware-qca9887-ct
88 $(call Download/ct-firmware,QCA9887,ath10k-9887)
89 HASH:=18b61875726d4384de46f75dec1d42fea31aa6d66dba4940cb9d375bc98732e4
91 $(eval $(call Download,ath10k-firmware-qca9887-ct))
93 QCA99X0_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-9.bin-lede.001
94 define Download/ath10k-firmware-qca99x0-ct
95 $(call Download/ct-firmware,QCA99X0,ath10k-10-4)
96 HASH:=61ff2b52617ae805579f423d6539284f056aba2b9f7e3629d600f6a5077ab703
98 $(eval $(call Download,ath10k-firmware-qca99x0-ct))
100 QCA9984_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-9.bin-lede.001
101 define Download/ath10k-firmware-qca9984-ct
102 $(call Download/ct-firmware,QCA9984,ath10k-9984-10-4)
103 HASH:=e079db5059cf28979ff50c7f6706df87e96a375e8048deeb4f6ede5357577f74
105 $(eval $(call Download,ath10k-firmware-qca9984-ct))
107 define Package/ath10k-firmware-qca99x0
108 $(Package/ath10k-firmware-default)
109 TITLE:=ath10k firmware for QCA99x0 devices
114 define Package/ath10k-firmware-qca988x-ct
115 $(Package/ath10k-firmware-default)
116 TITLE:=ath10k CT 10.1 firmware for QCA988x devices
121 define Package/ath10k-firmware-qca9887-ct
122 $(Package/ath10k-firmware-default)
123 TITLE:=ath10k CT 10.1 firmware for QCA9887 devices
128 define Package/ath10k-firmware-qca988x-ct/description
129 Alternative ath10k firmware for QCA988X from Candela Technologies.
130 Enables IBSS and other features. See:
131 http://www.candelatech.com/ath10k-10.1.php
132 This firmware will NOT be used unless the standard ath10k-firmware-qca988x
133 is un-selected since the driver will try to load firmware-5.bin before
137 define Package/ath10k-firmware-qca9887-ct/description
138 Alternative ath10k firmware for QCA9887 from Candela Technologies.
139 Enables IBSS and other features. See:
140 http://www.candelatech.com/ath10k-10.1.php
141 This firmware conflicts with the standard 9887 firmware, so select only
145 define Package/ath10k-firmware-qca99x0-ct/description
146 Alternative ath10k firmware for QCA99x0 from Candela Technologies.
147 Enables IBSS and other features. See:
148 http://www.candelatech.com/ath10k-10.4.php
149 This firmware conflicts with the standard 99x0 firmware, so select only
153 define Package/ath10k-firmware-qca9984-ct/description
154 Alternative ath10k firmware for QCA9984 from Candela Technologies.
155 Enables IBSS and other features. See:
156 http://www.candelatech.com/ath10k-10.4.php
157 This firmware conflicts with the standard 9984 firmware, so select only
161 define Package/ath10k-firmware-qca99x0/description
162 Standard ath10k firmware for QCA99x0 from QCA
163 This firmware conflicts with the CT 99x0 firmware, so select only
167 define Package/ath10k-firmware-qca99x0-ct
168 $(Package/ath10k-firmware-default)
169 TITLE:=ath10k CT 10.4.3 firmware for QCA99x0 devices
174 define Package/ath10k-firmware-qca9984-ct
175 $(Package/ath10k-firmware-default)
176 TITLE:=ath10k CT 10.4.3 firmware for QCA9984 devices
181 define Package/ath10k-firmware-qca9984
182 $(Package/ath10k-firmware-default)
183 TITLE:=ath10k firmware for QCA9984 devices
188 define Package/ath10k-firmware-qca4019
189 $(Package/ath10k-firmware-default)
190 TITLE:=ath10k firmware for IPQ/QCA4019 devices
195 define Package/ath10k-firmware-qca6174
196 $(Package/ath10k-firmware-default)
197 TITLE:=ath10k firmware for QCA6174 devices
202 QCA99X0_BOARD_REV:=ddcec9efd245da9365c474f513a855a55f3ac7fe
203 QCA99X0_BOARD_FILE:=board-2.bin.$(QCA99X0_BOARD_REV)
205 define Download/qca99x0-board
206 URL:=https://source.codeaurora.org/quic/qsdk/oss/firmware/ath10k-firmware/plain/ath10k/QCA99X0/hw2.0
207 URL_FILE:=board-2.bin?id=$(QCA99X0_BOARD_REV)
208 FILE:=$(QCA99X0_BOARD_FILE)
209 HASH:=03711ac21e60ef59d3815e235eb721c0c22851b5410299411085aa6f2af45401
211 $(eval $(call Download,qca99x0-board))
213 QCA9984_BOARD_REV:=719c0127e52bd70559e71b85ab0331790e1bf66c
214 QCA9984_BOARD_FILE:=board-2.bin
215 QCA9984_BOARD_FILE_DL:=$(QCA9984_BOARD_FILE).$(QCA9984_BOARD_REV)
216 QCA9984_FIRMWARE_REV:=7090001487d567ca1bef3ec26d1299a6e90fd1ad
217 QCA9984_FIRMWARE_FILE:=firmware-5.bin_10.4-3.4-00074
218 QCA9984_FIRMWARE_FILE_DL:=$(QCA9984_FIRMWARE_FILE).$(QCA9984_FIRMWARE_REV)
220 define Download/ath10k-qca9984-board
221 URL:=https://source.codeaurora.org/quic/qsdk/oss/firmware/ath10k-firmware/plain/ath10k/QCA9984/hw1.0/
222 URL_FILE:=$(QCA9984_BOARD_FILE)?id=$(QCA9984_BOARD_REV)
223 FILE:=$(QCA9984_BOARD_FILE_DL)
224 HASH:=e968b214fd76d5b7859f71841ce40fbd5f47336c3ccbaf95e23f902f5e569aef
226 $(eval $(call Download,ath10k-qca9984-board))
228 define Download/ath10k-qca9984-firmware
229 URL:=https://source.codeaurora.org/quic/qsdk/oss/firmware/ath10k-firmware/plain/ath10k/QCA9984/hw1.0/
230 URL_FILE:=$(QCA9984_FIRMWARE_FILE)?id=$(QCA9984_FIRMWARE_REV)
231 FILE:=$(QCA9984_FIRMWARE_FILE_DL)
232 HASH:=368119af56a851bb26f6f4f9cd0e90488cb67de3fe68133ccc061b825618c0ee
234 $(eval $(call Download,ath10k-qca9984-firmware))
240 define Package/ath10k-firmware-qca4019/install
241 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA4019/hw1.0
243 $(PKG_BUILD_DIR)/QCA4019/hw1.0/board-2.bin \
244 $(1)/lib/firmware/ath10k/QCA4019/hw1.0/
246 $(PKG_BUILD_DIR)/QCA4019/hw1.0/3.2.1/firmware-5.bin_10.4-3.2.1-00053 \
247 $(1)/lib/firmware/ath10k/QCA4019/hw1.0/firmware-5.bin
250 define Package/ath10k-firmware-qca9887/install
251 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9887/hw1.0
253 $(DL_DIR)/$(QCA9887_FIRMWARE_FILE_DL) \
254 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/firmware-5.bin
256 $(DL_DIR)/$(QCA9887_BOARD_FILE_DL) \
257 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/board.bin
260 define Package/ath10k-firmware-qca988x/install
261 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
263 $(PKG_BUILD_DIR)/QCA988X/hw2.0/board.bin \
264 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
266 $(PKG_BUILD_DIR)/QCA988X/hw2.0/10.2.4-1.0/firmware-5.bin_10.2.4-1.0-00016 \
267 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-5.bin
270 define Package/ath10k-firmware-qca9887-ct/install
271 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9887/hw1.0
273 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA9887) \
274 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/firmware-2.bin
276 $(DL_DIR)/$(QCA9887_BOARD_FILE_DL) \
277 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/board.bin
280 define Package/ath10k-firmware-qca988x-ct/install
281 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
283 $(PKG_BUILD_DIR)/QCA988X/hw2.0/board.bin \
284 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
286 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA988X) \
287 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-2.bin
290 define Package/ath10k-firmware-qca6174/install
291 $(INSTALL_DIR) $(1)/lib/firmware/ath10k
292 $(CP) $(PKG_BUILD_DIR)/QCA6174 $(1)/lib/firmware/ath10k/
295 define Package/ath10k-firmware-qca99x0/install
296 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
298 $(DL_DIR)/$(QCA99X0_BOARD_FILE) \
299 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-2.bin
301 $(PKG_BUILD_DIR)/QCA99X0/hw2.0/boardData_AR900B_CUS239_5G_v2_001.bin \
302 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin
304 $(PKG_BUILD_DIR)/QCA99X0/hw2.0/firmware-5.bin_10.4.1.00030-1 \
305 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/firmware-5.bin
308 define Package/ath10k-firmware-qca99x0-ct/install
309 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
311 $(DL_DIR)/$(QCA99X0_BOARD_FILE) \
312 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-2.bin
314 $(PKG_BUILD_DIR)/QCA99X0/hw2.0/boardData_AR900B_CUS239_5G_v2_001.bin \
315 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin
317 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA99X0) \
318 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/firmware-5.bin
321 define Package/ath10k-firmware-qca9984/install
322 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9984/hw1.0
324 ../../cal-pci-0000:01:00.0.bin \
325 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board.bin
327 $(DL_DIR)/$(QCA9984_BOARD_FILE_DL) \
328 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
330 $(DL_DIR)/$(QCA9984_FIRMWARE_FILE_DL) \
331 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/firmware-5.bin
334 define Package/ath10k-firmware-qca9984-ct/install
335 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9984/hw1.0
337 ../../cal-pci-0000:01:00.0.bin \
338 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board.bin
340 $(PKG_BUILD_DIR)/QCA9984/hw1.0/board-2.bin \
341 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
343 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA9984) \
344 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/firmware-5.bin
347 $(eval $(call BuildPackage,ath10k-firmware-qca9887))
348 $(eval $(call BuildPackage,ath10k-firmware-qca988x))
349 $(eval $(call BuildPackage,ath10k-firmware-qca99x0))
350 $(eval $(call BuildPackage,ath10k-firmware-qca6174))
351 $(eval $(call BuildPackage,ath10k-firmware-qca9984))
352 $(eval $(call BuildPackage,ath10k-firmware-qca4019))
354 $(eval $(call BuildPackage,ath10k-firmware-qca9887-ct))
355 $(eval $(call BuildPackage,ath10k-firmware-qca988x-ct))
356 $(eval $(call BuildPackage,ath10k-firmware-qca99x0-ct))
357 $(eval $(call BuildPackage,ath10k-firmware-qca9984-ct))