ath10k-firmware: do not select the qca988x by default
[openwrt/staging/chunkeey.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:=2017-03-13
12 PKG_SOURCE_VERSION:=2209b0f8d41aef3435c7238b9eb99de7ed36fd5a
13 PKG_MIRROR_HASH:=884e4678f6b6b5d8b367a90769784ef6449d6774b749104d7a20552b5601b041
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-qca9887-ct
36 $(Package/ath10k-firmware-default)
37 TITLE:=ath10k-CT firmware for QCA9887 devices
38 endef
39
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)
47
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)
53 endef
54 $(eval $(call Download,ath10k-qca9887-firmware))
55
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)
61 endef
62 $(eval $(call Download,ath10k-qca9887-board))
63
64 define Package/ath10k-firmware-qca988x
65 $(Package/ath10k-firmware-default)
66 TITLE:=ath10k firmware for QCA988x devices
67 SECTION:=firmware
68 CATEGORY:=Firmware
69 endef
70
71 CT_FIRMWARE_FILE = $(1)-$($(1)_FIRMWARE_FILE_CT)
72
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)
77 endef
78
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
83 endef
84 $(eval $(call Download,ath10k-firmware-qca988x-ct))
85
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
90 endef
91 $(eval $(call Download,ath10k-firmware-qca9887-ct))
92
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
97 endef
98 $(eval $(call Download,ath10k-firmware-qca99x0-ct))
99
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
104 endef
105 $(eval $(call Download,ath10k-firmware-qca9984-ct))
106
107 define Package/ath10k-firmware-qca99x0
108 $(Package/ath10k-firmware-default)
109 TITLE:=ath10k firmware for QCA99x0 devices
110 SECTION:=firmware
111 CATEGORY:=Firmware
112 endef
113
114 define Package/ath10k-firmware-qca988x-ct
115 $(Package/ath10k-firmware-default)
116 TITLE:=ath10k CT 10.1 firmware for QCA988x devices
117 SECTION:=firmware
118 CATEGORY:=Firmware
119 endef
120
121 define Package/ath10k-firmware-qca9887-ct
122 $(Package/ath10k-firmware-default)
123 TITLE:=ath10k CT 10.1 firmware for QCA9887 devices
124 SECTION:=firmware
125 CATEGORY:=Firmware
126 endef
127
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
134 firmware-2.bin
135 endef
136
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
142 one.
143 endef
144
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
150 one.
151 endef
152
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
158 one.
159 endef
160
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
164 one.
165 endef
166
167 define Package/ath10k-firmware-qca99x0-ct
168 $(Package/ath10k-firmware-default)
169 TITLE:=ath10k CT 10.4.3 firmware for QCA99x0 devices
170 SECTION:=firmware
171 CATEGORY:=Firmware
172 endef
173
174 define Package/ath10k-firmware-qca9984-ct
175 $(Package/ath10k-firmware-default)
176 TITLE:=ath10k CT 10.4.3 firmware for QCA9984 devices
177 SECTION:=firmware
178 CATEGORY:=Firmware
179 endef
180
181 define Package/ath10k-firmware-qca9984
182 $(Package/ath10k-firmware-default)
183 TITLE:=ath10k firmware for QCA9984 devices
184 SECTION:=firmware
185 CATEGORY:=Firmware
186 endef
187
188 define Package/ath10k-firmware-qca4019
189 $(Package/ath10k-firmware-default)
190 TITLE:=ath10k firmware for IPQ/QCA4019 devices
191 SECTION:=firmware
192 CATEGORY:=Firmware
193 endef
194
195 define Package/ath10k-firmware-qca6174
196 $(Package/ath10k-firmware-default)
197 TITLE:=ath10k firmware for QCA6174 devices
198 SECTION:=firmware
199 CATEGORY:=Firmware
200 endef
201
202 QCA99X0_BOARD_REV:=ddcec9efd245da9365c474f513a855a55f3ac7fe
203 QCA99X0_BOARD_FILE:=board-2.bin.$(QCA99X0_BOARD_REV)
204
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
210 endef
211 $(eval $(call Download,qca99x0-board))
212
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)
219
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
225 endef
226 $(eval $(call Download,ath10k-qca9984-board))
227
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
233 endef
234 $(eval $(call Download,ath10k-qca9984-firmware))
235
236 define Build/Compile
237
238 endef
239
240 define Package/ath10k-firmware-qca4019/install
241 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA4019/hw1.0
242 $(INSTALL_DATA) \
243 $(PKG_BUILD_DIR)/QCA4019/hw1.0/board-2.bin \
244 $(1)/lib/firmware/ath10k/QCA4019/hw1.0/
245 $(INSTALL_DATA) \
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
248 endef
249
250 define Package/ath10k-firmware-qca9887/install
251 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9887/hw1.0
252 $(INSTALL_DATA) \
253 $(DL_DIR)/$(QCA9887_FIRMWARE_FILE_DL) \
254 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/firmware-5.bin
255 $(INSTALL_DATA) \
256 $(DL_DIR)/$(QCA9887_BOARD_FILE_DL) \
257 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/board.bin
258 endef
259
260 define Package/ath10k-firmware-qca988x/install
261 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
262 $(INSTALL_DATA) \
263 $(PKG_BUILD_DIR)/QCA988X/hw2.0/board.bin \
264 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
265 $(INSTALL_DATA) \
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
268 endef
269
270 define Package/ath10k-firmware-qca9887-ct/install
271 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9887/hw1.0
272 $(INSTALL_DATA) \
273 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA9887) \
274 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/firmware-2.bin
275 $(INSTALL_DATA) \
276 $(DL_DIR)/$(QCA9887_BOARD_FILE_DL) \
277 $(1)/lib/firmware/ath10k/QCA9887/hw1.0/board.bin
278 endef
279
280 define Package/ath10k-firmware-qca988x-ct/install
281 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
282 $(INSTALL_DATA) \
283 $(PKG_BUILD_DIR)/QCA988X/hw2.0/board.bin \
284 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
285 $(INSTALL_DATA) \
286 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA988X) \
287 $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-2.bin
288 endef
289
290 define Package/ath10k-firmware-qca6174/install
291 $(INSTALL_DIR) $(1)/lib/firmware/ath10k
292 $(CP) $(PKG_BUILD_DIR)/QCA6174 $(1)/lib/firmware/ath10k/
293 endef
294
295 define Package/ath10k-firmware-qca99x0/install
296 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
297 $(INSTALL_DATA) \
298 $(DL_DIR)/$(QCA99X0_BOARD_FILE) \
299 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-2.bin
300 $(INSTALL_DATA) \
301 $(PKG_BUILD_DIR)/QCA99X0/hw2.0/boardData_AR900B_CUS239_5G_v2_001.bin \
302 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin
303 $(INSTALL_DATA) \
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
306 endef
307
308 define Package/ath10k-firmware-qca99x0-ct/install
309 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
310 $(INSTALL_DATA) \
311 $(DL_DIR)/$(QCA99X0_BOARD_FILE) \
312 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-2.bin
313 $(INSTALL_DATA) \
314 $(PKG_BUILD_DIR)/QCA99X0/hw2.0/boardData_AR900B_CUS239_5G_v2_001.bin \
315 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin
316 $(INSTALL_DATA) \
317 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA99X0) \
318 $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/firmware-5.bin
319 endef
320
321 define Package/ath10k-firmware-qca9984/install
322 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9984/hw1.0
323 ln -s \
324 ../../cal-pci-0000:01:00.0.bin \
325 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board.bin
326 $(INSTALL_DATA) \
327 $(DL_DIR)/$(QCA9984_BOARD_FILE_DL) \
328 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
329 $(INSTALL_DATA) \
330 $(DL_DIR)/$(QCA9984_FIRMWARE_FILE_DL) \
331 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/firmware-5.bin
332 endef
333
334 define Package/ath10k-firmware-qca9984-ct/install
335 $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9984/hw1.0
336 ln -s \
337 ../../cal-pci-0000:01:00.0.bin \
338 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board.bin
339 $(INSTALL_DATA) \
340 $(PKG_BUILD_DIR)/QCA9984/hw1.0/board-2.bin \
341 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
342 $(INSTALL_DATA) \
343 $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA9984) \
344 $(1)/lib/firmware/ath10k/QCA9984/hw1.0/firmware-5.bin
345 endef
346
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))
353
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))