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:=2016-12-15
12 PKG_SOURCE_VERSION:=fead2ed867af4e107265059b9f578179d7409867
13 PKG_MIRROR_HASH:=87fb1998a728b3182d208b978185232decf49d1c72d1ec37c529fa9139354dcb
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 QCA9887_REV:=3cce88e245f2d685e49411c4f80998f94baf67b8
36 QCA9887_FIRMWARE_FILE:=firmware-5.bin_10.2.4-1.0-00013
37 QCA9887_FIRMWARE_FILE_HASH:=5966408bd41f309edb595344b8dd088c0fed212debfd91e5f3e8a55ea119c16d
38 QCA9887_FIRMWARE_FILE_DL:=$(QCA9887_FIRMWARE_FILE).$(QCA9887_FIRMWARE_FILE_HASH)
39 QCA9887_BOARD_FILE:=board.bin
40 QCA9887_BOARD_FILE_HASH:=cf4df099f6ee05c181f55ce17297a1d32c61d725eb96246fd315ad5587c42426
41 QCA9887_BOARD_FILE_DL:=$(QCA9887_BOARD_FILE).$(QCA9887_BOARD_FILE_HASH)
43 define Download/ath10k-qca9887-firmware
44 URL:=https://github.com/kvalo/ath10k-firmware/raw/$(QCA9887_REV)/QCA9887/hw1.0/
45 URL_FILE:=$(QCA9887_FIRMWARE_FILE)
46 FILE:=$(QCA9887_FIRMWARE_FILE_DL)
47 HASH:=$(QCA9887_FIRMWARE_FILE_HASH)
49 $(eval $(call Download,ath10k-qca9887-firmware))
51 define Download/ath10k-qca9887-board
52 URL:=https://github.com/kvalo/ath10k-firmware/raw/$(QCA9887_REV)/QCA9887/hw1.0/
53 URL_FILE:=$(QCA9887_BOARD_FILE)
54 FILE:=$(QCA9887_BOARD_FILE_DL)
55 HASH:=$(QCA9887_BOARD_FILE_HASH)
57 $(eval $(call Download,ath10k-qca9887-board))
59 define Package/ath10k-firmware-qca988x
60 $(Package/ath10k-firmware-default)
61 DEFAULT:=PACKAGE_kmod-ath10k
62 TITLE:=ath10k firmware for QCA988x devices
67 CT_FIRMWARE_FILE = $(1)-$($(1)_FIRMWARE_FILE_CT)
69 define Download/ct-firmware
70 URL:=https://www.candelatech.com/downloads/$(2)
71 FILE:=$(call CT_FIRMWARE_FILE,$(1))
72 URL_FILE:=$($(1)_FIRMWARE_FILE_CT)
75 QCA988X_FIRMWARE_FILE_CT:=firmware-2-ct-full-community.bin-18.rc2-lede
76 define Download/ath10k-firmware-qca988x-ct
77 $(call Download/ct-firmware,QCA988X,)
78 HASH:=43ee2cdde42b765671152d6491e5e6730ad57290baea3412f2b1b75a73563b23
80 $(eval $(call Download,ath10k-firmware-qca988x-ct))
82 QCA99X0_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-8.bin-lede.005
83 define Download/ath10k-firmware-qca99x0-ct
84 $(call Download/ct-firmware,QCA99X0,ath10k-10-4)
85 HASH:=e6c69d82439eee49cea9dd34bb0198733e9c46d6405e714f47882dd3e48baed3
87 $(eval $(call Download,ath10k-firmware-qca99x0-ct))
89 QCA9984_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-8.bin-lede.005
90 define Download/ath10k-firmware-qca9984-ct
91 $(call Download/ct-firmware,QCA9984,ath10k-9984-10-4)
92 HASH:=0c935362f25a164c71328c52c57ac25834cc04c6a3e13eddb3c0a7473615347d
94 $(eval $(call Download,ath10k-firmware-qca9984-ct))
96 define Package/ath10k-firmware-qca99x0
97 $(Package/ath10k-firmware-default)
98 TITLE:=ath10k firmware for QCA99x0 devices
103 define Package/ath10k-firmware-qca988x-ct
104 $(Package/ath10k-firmware-default)
105 TITLE:=ath10k CT 10.1 firmware for QCA988x devices
110 define Package/ath10k-firmware-qca988x-ct/description
111 Alternative ath10k firmware for QCA988X from Candela Technologies.
112 Enables IBSS and other features. See:
113 http://www.candelatech.com/ath10k-10.1.php
114 This firmware will NOT be used unless the standard ath10k-firmware-qca988x
115 is un-selected since the driver will try to load firmware-5.bin before
119 define Package/ath10k-firmware-qca99x0-ct/description
120 Alternative ath10k firmware for QCA99x0 from Candela Technologies.
121 Enables IBSS and other features. See:
122 http://www.candelatech.com/ath10k-10.4.php
123 This firmware conflicts with the standard 99x0 firmware, so select only
127 define Package/ath10k-firmware-qca9984-ct/description
128 Alternative ath10k firmware for QCA9984 from Candela Technologies.
129 Enables IBSS and other features. See:
130 http://www.candelatech.com/ath10k-10.4.php
131 This firmware conflicts with the standard 9984 firmware, so select only
135 define Package/ath10k-firmware-qca99x0/description
136 Standard ath10k firmware for QCA99x0 from QCA
137 This firmware conflicts with the CT 99x0 firmware, so select only
141 define Package/ath10k-firmware-qca99x0-ct
142 $(Package/ath10k-firmware-default)
143 TITLE:=ath10k CT 10.4.3 firmware for QCA99x0 devices
148 define Package/ath10k-firmware-qca9984-ct
149 $(Package/ath10k-firmware-default)
150 TITLE:=ath10k CT 10.4.3 firmware for QCA9984 devices
155 define Package/ath10k-firmware-qca9984
156 $(Package/ath10k-firmware-default)
157 TITLE:=ath10k firmware for QCA9984 devices
162 define Package/ath10k-firmware-qca6174
163 $(Package/ath10k-firmware-default)
164 TITLE:=ath10k firmware for QCA6174 devices
169 QCA99X0_BOARD_REV:=ddcec9efd245da9365c474f513a855a55f3ac7fe
170 QCA99X0_BOARD_FILE:=board-2.bin.$(QCA99X0_BOARD_REV)
172 define Download/qca99x0-board
173 URL:=https://source.codeaurora.org/quic/qsdk/oss/firmware/ath10k-firmware/plain/ath10k/QCA99X0/hw2.0
174 URL_FILE:=board-2.bin?id=$(QCA99X0_BOARD_REV)
175 FILE:=$(QCA99X0_BOARD_FILE)
176 HASH:=03711ac21e60ef59d3815e235eb721c0c22851b5410299411085aa6f2af45401
178 $(eval $(call Download,qca99x0-board))
180 QCA9984_FIRMWARE_REV:=deb1832c56c706d0f6cb539113e09f0daaa52b5f
181 QCA9984_FIRMWARE_FILE:=firmware-5.bin_10.4-3.3-00102
182 QCA9984_FIRMWARE_FILE_DL:=$(QCA9984_FIRMWARE_FILE).$(QCA9984_FIRMWARE_REV)
184 define Download/ath10k-qca9984-firmware
185 URL:=https://source.codeaurora.org/quic/qsdk/oss/firmware/ath10k-firmware/plain/ath10k/QCA9984/hw1.0/
186 URL_FILE:=$(QCA9984_FIRMWARE_FILE)?id=$(QCA9984_FIRMWARE_REV)
187 FILE:=$(QCA9984_FIRMWARE_FILE_DL)
188 HASH:=490ad52df76a4fa8004a3a8c21dd43bb8262dd2816df48a6408706b82491f299
190 $(eval $(call Download,ath10k-qca9984-firmware))
196 define Package/ath10k-firmware-qca9887/install
197 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9887/hw1.0
199 $(DL_DIR)/$(QCA9887_FIRMWARE_FILE_DL) \
200 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/firmware-5.bin
202 $(DL_DIR)/$(QCA9887_BOARD_FILE_DL) \
203 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/board.bin
206 define Package/ath10k-firmware-qca988x/install
207 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
209 $(PKG_BUILD_DIR)/QCA988X/hw2.0/board.bin \
210 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
212 $(PKG_BUILD_DIR)/QCA988X/hw2.0/10.2.4.70/firmware-5.bin_10.2.4.70.59-2 \
213 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-5.bin
216 define Package/ath10k-firmware-qca988x-ct/install
217 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
219 $(PKG_BUILD_DIR)/QCA988X/hw2.0/board.bin \
220 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
222 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA988X) \
223 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-2.bin
226 define Package/ath10k-firmware-qca6174/install
227 $(INSTALL_DIR) $(1)/lib/firmware/ath10k
228 $(CP) $(PKG_BUILD_DIR)/QCA6174 $(1)/lib/firmware/ath10k/
231 define Package/ath10k-firmware-qca99x0/install
232 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
234 $(DL_DIR)/$(QCA99X0_BOARD_FILE) \
235 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-2.bin
237 $(PKG_BUILD_DIR)/QCA99X0/hw2.0/boardData_AR900B_CUS239_5G_v2_001.bin \
238 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin
240 $(PKG_BUILD_DIR)/QCA99X0/hw2.0/firmware-5.bin_10.4.1.00030-1 \
241 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/firmware-5.bin
244 define Package/ath10k-firmware-qca99x0-ct/install
245 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
247 $(DL_DIR)/$(QCA99X0_BOARD_FILE) \
248 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-2.bin
250 $(PKG_BUILD_DIR)/QCA99X0/hw2.0/boardData_AR900B_CUS239_5G_v2_001.bin \
251 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin
253 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA99X0) \
254 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/firmware-5.bin
257 define Package/ath10k-firmware-qca9984/install
258 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9984/hw1.0
260 ../../cal-pci-0000:01:00.0.bin \
261 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board.bin
263 $(PKG_BUILD_DIR)/QCA9984/hw1.0/board-2.bin \
264 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
266 $(DL_DIR)/$(QCA9984_FIRMWARE_FILE_DL) \
267 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/firmware-5.bin
270 define Package/ath10k-firmware-qca9984-ct/install
271 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9984/hw1.0
273 ../../cal-pci-0000:01:00.0.bin \
274 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board.bin
276 $(PKG_BUILD_DIR)/QCA9984/hw1.0/board-2.bin \
277 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
279 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA9984) \
280 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/firmware-5.bin
283 $(eval $(call BuildPackage,ath10k-firmware-qca9887))
284 $(eval $(call BuildPackage,ath10k-firmware-qca988x))
285 $(eval $(call BuildPackage,ath10k-firmware-qca99x0))
286 $(eval $(call BuildPackage,ath10k-firmware-qca6174))
287 $(eval $(call BuildPackage,ath10k-firmware-qca9984))
289 $(eval $(call BuildPackage,ath10k-firmware-qca988x-ct))
290 $(eval $(call BuildPackage,ath10k-firmware-qca99x0-ct))
291 $(eval $(call BuildPackage,ath10k-firmware-qca9984-ct))