Makefile 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628
  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=ath10k-firmware
  9. PKG_SOURCE_DATE:=2018-10-10
  10. PKG_SOURCE_VERSION:=d366b80d41309531c0c98b26625f23e318f33e31
  11. PKG_MIRROR_HASH:=ec06f10e6b1d4f7a28366a893c8a73a000454c2f031fc747381a1fb8aa1e0846
  12. PKG_RELEASE:=1
  13. PKG_SOURCE_PROTO:=git
  14. PKG_SOURCE_URL:=https://github.com/kvalo/ath10k-firmware.git
  15. PKG_MAINTAINER:=Felix Fietkau <[email protected]>
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/ath10k-firmware-default
  18. SECTION:=firmware
  19. CATEGORY:=Firmware
  20. URL:=$(PKG_SOURCE_URL)
  21. DEPENDS:=
  22. endef
  23. define Package/ath10k-firmware-qca9887
  24. $(Package/ath10k-firmware-default)
  25. TITLE:=ath10k firmware for QCA9887 devices
  26. endef
  27. define Package/ath10k-firmware-qca9888
  28. $(Package/ath10k-firmware-default)
  29. TITLE:=ath10k firmware for QCA9888 devices
  30. endef
  31. define Package/ath10k-firmware-qca9887-ct
  32. $(Package/ath10k-firmware-default)
  33. TITLE:=ath10k-CT firmware for QCA9887 devices
  34. endef
  35. define Package/ath10k-firmware-qca988x
  36. $(Package/ath10k-firmware-default)
  37. TITLE:=ath10k firmware for QCA988x devices
  38. SECTION:=firmware
  39. CATEGORY:=Firmware
  40. endef
  41. CT_FIRMWARE_FILE = $(1)-$($(1)_FIRMWARE_FILE_CT)
  42. CT_FIRMWARE_FILE_HTT = $(1)-$($(1)_FIRMWARE_FILE_CT_HTT)
  43. define Download/ct-firmware
  44. URL:=https://www.candelatech.com/downloads/$(2)
  45. FILE:=$(call CT_FIRMWARE_FILE,$(1))
  46. URL_FILE:=$($(1)_FIRMWARE_FILE_CT)
  47. endef
  48. define Download/ct-firmware-htt
  49. URL:=https://www.candelatech.com/downloads/$(2)
  50. FILE:=$(call CT_FIRMWARE_FILE_HTT,$(1))
  51. URL_FILE:=$($(1)_FIRMWARE_FILE_CT_HTT)
  52. endef
  53. QCA988X_FIRMWARE_FILE_CT:=firmware-2-ct-full-community-22.bin.lede.002
  54. define Download/ath10k-firmware-qca988x-ct
  55. $(call Download/ct-firmware,QCA988X,)
  56. HASH:=0080035ce21c83ec452cfb4051fe0ec5a1f6cc99c8887bc9cc0b8be54043be72
  57. endef
  58. $(eval $(call Download,ath10k-firmware-qca988x-ct))
  59. QCA988X_FIRMWARE_FILE_CT_HTT:=firmware-2-ct-full-htt-mgt-community-22.bin.lede.002
  60. define Download/ath10k-firmware-qca988x-ct-htt
  61. $(call Download/ct-firmware-htt,QCA988X,)
  62. HASH:=30dd88647c543486166a72b3ab1b02732048f217518c4d999e94e2cb2d29feaa
  63. endef
  64. $(eval $(call Download,ath10k-firmware-qca988x-ct-htt))
  65. QCA9887_FIRMWARE_FILE_CT:=firmware-2-ct-full-community-22.bin.lede.002
  66. define Download/ath10k-firmware-qca9887-ct
  67. $(call Download/ct-firmware,QCA9887,ath10k-9887)
  68. HASH:=ba543d0966d4c3ca53a732613ea8aea14b9d3c388792ba914110f8c8609da4c8
  69. endef
  70. $(eval $(call Download,ath10k-firmware-qca9887-ct))
  71. QCA9887_FIRMWARE_FILE_CT_HTT:=firmware-2-ct-full-htt-mgt-community-22.bin.lede.002
  72. define Download/ath10k-firmware-qca9887-ct-htt
  73. $(call Download/ct-firmware-htt,QCA9887,ath10k-9887)
  74. HASH:=7d9e3abbbe12dab13447c96707dcb747c90d0663c7a687352c9bba55e2f4debc
  75. endef
  76. $(eval $(call Download,ath10k-firmware-qca9887-ct-htt))
  77. QCA99X0_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-12.bin-lede.004
  78. define Download/ath10k-firmware-qca99x0-ct
  79. $(call Download/ct-firmware,QCA99X0,ath10k-10-4b)
  80. HASH:=e3876b50cbd095f406a5d8eff310148bbef51ddc07d37af51494e35e9a19590d
  81. endef
  82. $(eval $(call Download,ath10k-firmware-qca99x0-ct))
  83. QCA99X0_FIRMWARE_FILE_CT_HTT:=firmware-5-ct-full-htt-mgt-community-12.bin-lede.004
  84. define Download/ath10k-firmware-qca99x0-ct-htt
  85. $(call Download/ct-firmware-htt,QCA99X0,ath10k-10-4b)
  86. HASH:=59c67a9707fe5c3c632cc19f4b35814abe948dc07274e9aa1095a4e838840388
  87. endef
  88. $(eval $(call Download,ath10k-firmware-qca99x0-ct-htt))
  89. QCA9984_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-12.bin-lede.004
  90. define Download/ath10k-firmware-qca9984-ct
  91. $(call Download/ct-firmware,QCA9984,ath10k-9984-10-4b)
  92. HASH:=96fc12fc46f8520d2f36a081058e214325037313ae48afe245101466e027b6b0
  93. endef
  94. $(eval $(call Download,ath10k-firmware-qca9984-ct))
  95. QCA9984_FIRMWARE_FILE_CT_HTT:=firmware-5-ct-full-htt-mgt-community-12.bin-lede.004
  96. define Download/ath10k-firmware-qca9984-ct-htt
  97. $(call Download/ct-firmware-htt,QCA9984,ath10k-9984-10-4b)
  98. HASH:=7f1211c64b52ab59fc2efb39e7a279847e426de96eeff1e017becea8663f798d
  99. endef
  100. $(eval $(call Download,ath10k-firmware-qca9984-ct-htt))
  101. QCA4019_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-12.bin-lede.004
  102. define Download/ath10k-firmware-qca4019-ct
  103. $(call Download/ct-firmware,QCA4019,ath10k-4019-10-4b)
  104. HASH:=47fc0409b9766cce3718342ea8d272f0153459450bc1833d44a72a1884e81f11
  105. endef
  106. $(eval $(call Download,ath10k-firmware-qca4019-ct))
  107. QCA4019_FIRMWARE_FILE_CT_HTT:=firmware-5-ct-full-htt-mgt-community-12.bin-lede.004
  108. define Download/ath10k-firmware-qca4019-ct-htt
  109. $(call Download/ct-firmware-htt,QCA4019,ath10k-4019-10-4b)
  110. HASH:=fb376ccde84b9a013aafc4ab2db573d0e982ae398aa647042c6f917559293a3a
  111. endef
  112. $(eval $(call Download,ath10k-firmware-qca4019-ct-htt))
  113. QCA9888_FIRMWARE_FILE_CT:=firmware-5-ct-full-community-12.bin-lede.004
  114. define Download/ath10k-firmware-qca9888-ct
  115. $(call Download/ct-firmware,QCA9888,ath10k-9888-10-4b)
  116. HASH:=beb4e2973330c7640e036500f8d2c68fc428a9b2266a077aebb8e8e798eca75c
  117. endef
  118. $(eval $(call Download,ath10k-firmware-qca9888-ct))
  119. QCA9888_FIRMWARE_FILE_CT_HTT:=firmware-5-ct-full-htt-mgt-community-12.bin-lede.004
  120. define Download/ath10k-firmware-qca9888-ct-htt
  121. $(call Download/ct-firmware-htt,QCA9888,ath10k-9888-10-4b)
  122. HASH:=15fa57f6c5752877d7c96a05d2301f7eccd01832bc07d15d33246b8c06890d4c
  123. endef
  124. $(eval $(call Download,ath10k-firmware-qca9888-ct-htt))
  125. define Package/ath10k-firmware-qca99x0
  126. $(Package/ath10k-firmware-default)
  127. TITLE:=ath10k firmware for QCA99x0 devices
  128. SECTION:=firmware
  129. CATEGORY:=Firmware
  130. endef
  131. define Package/ath10k-firmware-qca988x-ct
  132. $(Package/ath10k-firmware-default)
  133. TITLE:=ath10k CT 10.1 firmware for QCA988x devices
  134. SECTION:=firmware
  135. CATEGORY:=Firmware
  136. PROVIDES:=ath10k-firmware-qca988x
  137. endef
  138. define Package/ath10k-firmware-qca988x-ct-htt
  139. $(Package/ath10k-firmware-default)
  140. TITLE:=ath10k CT 10.1 htt-mgt fw for QCA988x
  141. SECTION:=firmware
  142. CATEGORY:=Firmware
  143. PROVIDES:=ath10k-firmware-qca988x
  144. DEPENDS:=+kmod-ath10k-ct
  145. endef
  146. define Package/ath10k-firmware-qca9887-ct
  147. $(Package/ath10k-firmware-default)
  148. TITLE:=ath10k CT 10.1 firmware for QCA9887 devices
  149. SECTION:=firmware
  150. CATEGORY:=Firmware
  151. PROVIDES:=ath10k-firmware-qca9887
  152. endef
  153. define Package/ath10k-firmware-qca9887-ct-htt
  154. $(Package/ath10k-firmware-default)
  155. TITLE:=ath10k CT 10.1 htt-mgt fw for QCA9887
  156. SECTION:=firmware
  157. CATEGORY:=Firmware
  158. PROVIDES:=ath10k-firmware-qca9887
  159. DEPENDS:=+kmod-ath10k-ct
  160. endef
  161. define Package/ath10k-firmware-qca988x-ct/description
  162. Alternative ath10k firmware for QCA988X from Candela Technologies.
  163. Enables IBSS and other features. See:
  164. http://www.candelatech.com/ath10k-10.1.php
  165. This firmware will NOT be used unless the standard ath10k-firmware-qca988x
  166. is un-selected since the driver will try to load firmware-5.bin before
  167. firmware-2.bin
  168. endef
  169. define Package/ath10k-firmware-qca988x-ct-htt/description
  170. Alternative ath10k firmware for QCA988X from Candela Technologies.
  171. Uses normal HTT TX data path for management frames, which improves
  172. stability in busy networks and fixes .11r authentication.
  173. Enables IBSS and other features. See:
  174. http://www.candelatech.com/ath10k-10.1.php
  175. This firmware selects and requires the ath10k-ct driver.
  176. endef
  177. define Package/ath10k-firmware-qca9887-ct/description
  178. Alternative ath10k firmware for QCA9887 from Candela Technologies.
  179. Enables IBSS and other features. See:
  180. http://www.candelatech.com/ath10k-10.1.php
  181. This firmware conflicts with the standard 9887 firmware, so select only
  182. one.
  183. endef
  184. define Package/ath10k-firmware-qca9887-ct-htt/description
  185. Alternative ath10k firmware for QCA9887 from Candela Technologies.
  186. Uses normal HTT TX data path for management frames, which improves
  187. stability in busy networks and fixes .11r authentication.
  188. Enables IBSS and other features. See:
  189. http://www.candelatech.com/ath10k-10.1.php
  190. This firmware selects and requires the ath10k-ct driver.
  191. endef
  192. define Package/ath10k-firmware-qca99x0-ct/description
  193. Alternative ath10k firmware for QCA99x0 from Candela Technologies.
  194. Enables IBSS and other features. See:
  195. http://www.candelatech.com/ath10k-10.4.php
  196. This firmware conflicts with the standard 99x0 firmware, so select only
  197. one.
  198. endef
  199. define Package/ath10k-firmware-qca99x0-ct-htt/description
  200. Alternative ath10k firmware for QCA99x0 from Candela Technologies.
  201. Uses normal HTT TX data path for management frames, which improves
  202. stability in busy networks and may be required for .11r authentication.
  203. Enables IBSS and other features. See:
  204. http://www.candelatech.com/ath10k-10.4.php
  205. This firmware selects and requires the ath10k-ct driver.
  206. endef
  207. define Package/ath10k-firmware-qca9984-ct/description
  208. Alternative ath10k firmware for QCA9984 from Candela Technologies.
  209. Enables IBSS and other features. See:
  210. http://www.candelatech.com/ath10k-10.4.php
  211. This firmware conflicts with the standard 9984 firmware, so select only
  212. one.
  213. endef
  214. define Package/ath10k-firmware-qca9984-ct-htt/description
  215. Alternative ath10k firmware for QCA9984 from Candela Technologies.
  216. Uses normal HTT TX data path for management frames, which improves
  217. stability in busy networks and may be required for .11r authentication.
  218. Enables IBSS and other features. See:
  219. http://www.candelatech.com/ath10k-10.4.php
  220. This firmware selects and requires the ath10k-ct driver.
  221. endef
  222. define Package/ath10k-firmware-qca4019-ct/description
  223. Alternative ath10k firmware for IPQ4019 radio from Candela Technologies.
  224. Enables IBSS and other features. Works with standard or ath10k-ct driver.
  225. See: http://www.candelatech.com/ath10k-10.4.php
  226. endef
  227. define Package/ath10k-firmware-qca4019-ct-htt/description
  228. Alternative ath10k firmware for IPQ4019 radio from Candela Technologies.
  229. Uses normal HTT TX data path for management frames, which improves
  230. stability in busy networks and may be required for .11r authentication.
  231. Enables IBSS and other features.
  232. See: http://www.candelatech.com/ath10k-10.4.php
  233. This firmware selects and requires the ath10k-ct driver.
  234. endef
  235. define Package/ath10k-firmware-qca9888-ct/description
  236. Alternative ath10k firmware for QCA9886 and QCA9888 from Candela Technologies.
  237. Enables IBSS and other features. See:
  238. http://www.candelatech.com/ath10k-10.4.php
  239. This firmware conflicts with the standard 9886 and 9888 firmware, so select only
  240. one.
  241. endef
  242. define Package/ath10k-firmware-qca9888-ct-htt/description
  243. Alternative ath10k firmware for QCA9886 and QCA9888 from Candela Technologies.
  244. Uses normal HTT TX data path for management frames, which improves
  245. stability in busy networks and may be required for .11r authentication.
  246. Enables IBSS and other features. See:
  247. http://www.candelatech.com/ath10k-10.4.php
  248. This firmware selects and requires the ath10k-ct driver.
  249. endef
  250. define Package/ath10k-firmware-qca99x0/description
  251. Standard ath10k firmware for QCA99x0 from QCA
  252. This firmware conflicts with the CT 99x0 firmware, so select only
  253. one.
  254. endef
  255. define Package/ath10k-firmware-qca99x0-ct
  256. $(Package/ath10k-firmware-default)
  257. TITLE:=ath10k CT 10.4 firmware for QCA99x0 devices
  258. SECTION:=firmware
  259. CATEGORY:=Firmware
  260. PROVIDES:=ath10k-firmware-qca99x0
  261. endef
  262. define Package/ath10k-firmware-qca99x0-ct-htt
  263. $(Package/ath10k-firmware-default)
  264. TITLE:=ath10k CT 10.4 htt-mgt fw for QCA99x0
  265. SECTION:=firmware
  266. CATEGORY:=Firmware
  267. PROVIDES:=ath10k-firmware-qca99x0
  268. DEPENDS:=+kmod-ath10k-ct
  269. endef
  270. define Package/ath10k-firmware-qca9984-ct
  271. $(Package/ath10k-firmware-default)
  272. TITLE:=ath10k CT 10.4 firmware for QCA9984 devices
  273. SECTION:=firmware
  274. CATEGORY:=Firmware
  275. PROVIDES:=ath10k-firmware-qca9984
  276. endef
  277. define Package/ath10k-firmware-qca9984-ct-htt
  278. $(Package/ath10k-firmware-default)
  279. TITLE:=ath10k CT 10.4 htt-mgt fw for QCA9984
  280. SECTION:=firmware
  281. CATEGORY:=Firmware
  282. PROVIDES:=ath10k-firmware-qca9984
  283. DEPENDS:=+kmod-ath10k-ct
  284. endef
  285. define Package/ath10k-firmware-qca4019-ct
  286. $(Package/ath10k-firmware-default)
  287. TITLE:=ath10k CT 10.4 firmware for QCA4018/9
  288. SECTION:=firmware
  289. CATEGORY:=Firmware
  290. PROVIDES:=ath10k-firmware-qca4019
  291. endef
  292. define Package/ath10k-firmware-qca4019-ct-htt
  293. $(Package/ath10k-firmware-default)
  294. TITLE:=ath10k CT 10.4 htt-mgt for QCA4018/9
  295. SECTION:=firmware
  296. CATEGORY:=Firmware
  297. PROVIDES:=ath10k-firmware-qca4019
  298. DEPENDS:=+kmod-ath10k-ct
  299. endef
  300. define Package/ath10k-firmware-qca9888-ct
  301. $(Package/ath10k-firmware-default)
  302. TITLE:=ath10k CT 10.4 fw for QCA9886/8 devices
  303. SECTION:=firmware
  304. CATEGORY:=Firmware
  305. PROVIDES:=ath10k-firmware-qca9888
  306. endef
  307. define Package/ath10k-firmware-qca9888-ct-htt
  308. $(Package/ath10k-firmware-default)
  309. TITLE:=ath10k CT 10.4 htt-mgt fw for QCA9886/8
  310. SECTION:=firmware
  311. CATEGORY:=Firmware
  312. PROVIDES:=ath10k-firmware-qca9888
  313. DEPENDS:=+kmod-ath10k-ct
  314. endef
  315. define Package/ath10k-firmware-qca9984
  316. $(Package/ath10k-firmware-default)
  317. TITLE:=ath10k firmware for QCA9984 devices
  318. SECTION:=firmware
  319. CATEGORY:=Firmware
  320. endef
  321. define Package/ath10k-firmware-qca4019
  322. $(Package/ath10k-firmware-default)
  323. TITLE:=ath10k firmware for IPQ/QCA4019 devices
  324. SECTION:=firmware
  325. CATEGORY:=Firmware
  326. endef
  327. define Package/ath10k-firmware-qca6174
  328. $(Package/ath10k-firmware-default)
  329. TITLE:=ath10k firmware for QCA6174 devices
  330. SECTION:=firmware
  331. CATEGORY:=Firmware
  332. endef
  333. QCA99X0_BOARD_REV:=ddcec9efd245da9365c474f513a855a55f3ac7fe
  334. QCA99X0_BOARD_FILE:=board-2.bin.$(QCA99X0_BOARD_REV)
  335. define Download/qca99x0-board
  336. URL:=https://source.codeaurora.org/quic/qsdk/oss/firmware/ath10k-firmware/plain/ath10k/QCA99X0/hw2.0
  337. URL_FILE:=board-2.bin?id=$(QCA99X0_BOARD_REV)
  338. FILE:=$(QCA99X0_BOARD_FILE)
  339. HASH:=03711ac21e60ef59d3815e235eb721c0c22851b5410299411085aa6f2af45401
  340. endef
  341. $(eval $(call Download,qca99x0-board))
  342. define Build/Compile
  343. endef
  344. define Package/ath10k-firmware-qca4019/install
  345. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA4019/hw1.0
  346. $(INSTALL_DATA) \
  347. $(PKG_BUILD_DIR)/QCA4019/hw1.0/board-2.bin \
  348. $(1)/lib/firmware/ath10k/QCA4019/hw1.0/
  349. $(INSTALL_DATA) \
  350. $(PKG_BUILD_DIR)/QCA4019/hw1.0/3.5.3/firmware-5.bin_10.4-3.5.3-00057 \
  351. $(1)/lib/firmware/ath10k/QCA4019/hw1.0/firmware-5.bin
  352. endef
  353. define Package/ath10k-firmware-qca9887/install
  354. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9887/hw1.0
  355. $(INSTALL_DATA) \
  356. $(PKG_BUILD_DIR)/QCA9887/hw1.0/10.2.4-1.0/firmware-5.bin_10.2.4-1.0-00033 \
  357. $(1)/lib/firmware/ath10k/QCA9887/hw1.0/firmware-5.bin
  358. $(INSTALL_DATA) \
  359. $(PKG_BUILD_DIR)/QCA9887/hw1.0/board.bin \
  360. $(1)/lib/firmware/ath10k/QCA9887/hw1.0/board.bin
  361. endef
  362. define Package/ath10k-firmware-qca9888/install
  363. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9888/hw2.0
  364. $(INSTALL_DATA) \
  365. $(PKG_BUILD_DIR)/QCA9888/hw2.0/board-2.bin \
  366. $(1)/lib/firmware/ath10k/QCA9888/hw2.0/board-2.bin
  367. $(INSTALL_DATA) \
  368. $(PKG_BUILD_DIR)/QCA9888/hw2.0/3.5.3/firmware-5.bin_10.4-3.5.3-00053 \
  369. $(1)/lib/firmware/ath10k/QCA9888/hw2.0/firmware-5.bin
  370. endef
  371. define Package/ath10k-firmware-qca988x/install
  372. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
  373. $(INSTALL_DATA) \
  374. $(PKG_BUILD_DIR)/QCA988X/hw2.0/board.bin \
  375. $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
  376. $(INSTALL_DATA) \
  377. $(PKG_BUILD_DIR)/QCA988X/hw2.0/10.2.4-1.0/firmware-5.bin_10.2.4-1.0-00037 \
  378. $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-5.bin
  379. endef
  380. define Package/ath10k-firmware-qca6174/install
  381. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA6174/hw2.1
  382. $(INSTALL_DATA) \
  383. $(PKG_BUILD_DIR)/QCA6174/hw2.1/board-2.bin \
  384. $(1)/lib/firmware/ath10k/QCA6174/hw2.1/
  385. $(INSTALL_DATA) \
  386. $(PKG_BUILD_DIR)/QCA6174/hw2.1/firmware-5.bin_SW_RM.1.1.1-00157-QCARMSWPZ-1 \
  387. $(1)/lib/firmware/ath10k/QCA6174/hw2.1/firmware-5.bin
  388. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA6174/hw3.0
  389. $(INSTALL_DATA) \
  390. $(PKG_BUILD_DIR)/QCA6174/hw3.0/board-2.bin \
  391. $(1)/lib/firmware/ath10k/QCA6174/hw3.0/
  392. $(INSTALL_DATA) \
  393. $(PKG_BUILD_DIR)/QCA6174/hw3.0/4.4.1.c1/firmware-6.bin_RM.4.4.1.c1-00042-QCARMSWP-1 \
  394. $(1)/lib/firmware/ath10k/QCA6174/hw3.0/firmware-6.bin
  395. endef
  396. define Package/ath10k-firmware-qca99x0/install
  397. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
  398. $(INSTALL_DATA) \
  399. $(DL_DIR)/$(QCA99X0_BOARD_FILE) \
  400. $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-2.bin
  401. $(INSTALL_DATA) \
  402. $(PKG_BUILD_DIR)/QCA99X0/hw2.0/boardData_AR900B_CUS239_5G_v2_001.bin \
  403. $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin
  404. $(INSTALL_DATA) \
  405. $(PKG_BUILD_DIR)/QCA99X0/hw2.0/firmware-5.bin_10.4.1.00030-1 \
  406. $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/firmware-5.bin
  407. endef
  408. define Package/ath10k-firmware-qca9984/install
  409. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9984/hw1.0
  410. $(INSTALL_DATA) \
  411. $(PKG_BUILD_DIR)/QCA9984/hw1.0/board-2.bin \
  412. $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
  413. $(INSTALL_DATA) \
  414. $(PKG_BUILD_DIR)/QCA9984/hw1.0/3.5.3/firmware-5.bin_10.4-3.5.3-00053 \
  415. $(1)/lib/firmware/ath10k/QCA9984/hw1.0/firmware-5.bin
  416. endef
  417. # CT related firmware
  418. define Package/ath10k-firmware-qca9887-ct/install
  419. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9887/hw1.0
  420. $(INSTALL_DATA) \
  421. $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA9887) \
  422. $(1)/lib/firmware/ath10k/QCA9887/hw1.0/firmware-2.bin
  423. $(INSTALL_DATA) \
  424. $(PKG_BUILD_DIR)/QCA9887/hw1.0/board.bin \
  425. $(1)/lib/firmware/ath10k/QCA9887/hw1.0/board.bin
  426. endef
  427. define Package/ath10k-firmware-qca9887-ct-htt/install
  428. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9887/hw1.0
  429. $(INSTALL_DATA) \
  430. $(DL_DIR)/$(call CT_FIRMWARE_FILE_HTT,QCA9887) \
  431. $(1)/lib/firmware/ath10k/QCA9887/hw1.0/ct-firmware-2.bin
  432. $(INSTALL_DATA) \
  433. $(PKG_BUILD_DIR)/QCA9887/hw1.0/board.bin \
  434. $(1)/lib/firmware/ath10k/QCA9887/hw1.0/board.bin
  435. endef
  436. define Package/ath10k-firmware-qca988x-ct/install
  437. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
  438. $(INSTALL_DATA) \
  439. $(PKG_BUILD_DIR)/QCA988X/hw2.0/board.bin \
  440. $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
  441. $(INSTALL_DATA) \
  442. $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA988X) \
  443. $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-2.bin
  444. endef
  445. define Package/ath10k-firmware-qca988x-ct-htt/install
  446. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
  447. $(INSTALL_DATA) \
  448. $(PKG_BUILD_DIR)/QCA988X/hw2.0/board.bin \
  449. $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
  450. $(INSTALL_DATA) \
  451. $(DL_DIR)/$(call CT_FIRMWARE_FILE_HTT,QCA988X) \
  452. $(1)/lib/firmware/ath10k/QCA988X/hw2.0/ct-firmware-2.bin
  453. endef
  454. define Package/ath10k-firmware-qca99x0-ct/install
  455. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
  456. $(INSTALL_DATA) \
  457. $(DL_DIR)/$(QCA99X0_BOARD_FILE) \
  458. $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-2.bin
  459. $(INSTALL_DATA) \
  460. $(PKG_BUILD_DIR)/QCA99X0/hw2.0/boardData_AR900B_CUS239_5G_v2_001.bin \
  461. $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin
  462. $(INSTALL_DATA) \
  463. $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA99X0) \
  464. $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/firmware-5.bin
  465. endef
  466. define Package/ath10k-firmware-qca99x0-ct-htt/install
  467. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
  468. $(INSTALL_DATA) \
  469. $(DL_DIR)/$(QCA99X0_BOARD_FILE) \
  470. $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-2.bin
  471. $(INSTALL_DATA) \
  472. $(PKG_BUILD_DIR)/QCA99X0/hw2.0/boardData_AR900B_CUS239_5G_v2_001.bin \
  473. $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin
  474. $(INSTALL_DATA) \
  475. $(DL_DIR)/$(call CT_FIRMWARE_FILE_HTT,QCA99X0) \
  476. $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/ct-firmware-5.bin
  477. endef
  478. define Package/ath10k-firmware-qca9984-ct/install
  479. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9984/hw1.0
  480. $(INSTALL_DATA) \
  481. $(PKG_BUILD_DIR)/QCA9984/hw1.0/board-2.bin \
  482. $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
  483. $(INSTALL_DATA) \
  484. $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA9984) \
  485. $(1)/lib/firmware/ath10k/QCA9984/hw1.0/firmware-5.bin
  486. endef
  487. define Package/ath10k-firmware-qca9984-ct-htt/install
  488. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9984/hw1.0
  489. $(INSTALL_DATA) \
  490. $(PKG_BUILD_DIR)/QCA9984/hw1.0/board-2.bin \
  491. $(1)/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
  492. $(INSTALL_DATA) \
  493. $(DL_DIR)/$(call CT_FIRMWARE_FILE_HTT,QCA9984) \
  494. $(1)/lib/firmware/ath10k/QCA9984/hw1.0/ct-firmware-5.bin
  495. endef
  496. define Package/ath10k-firmware-qca4019-ct/install
  497. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA4019/hw1.0
  498. $(INSTALL_DATA) \
  499. $(PKG_BUILD_DIR)/QCA4019/hw1.0/board-2.bin \
  500. $(1)/lib/firmware/ath10k/QCA4019/hw1.0/
  501. $(INSTALL_DATA) \
  502. $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA4019) \
  503. $(1)/lib/firmware/ath10k/QCA4019/hw1.0/firmware-5.bin
  504. endef
  505. define Package/ath10k-firmware-qca4019-ct-htt/install
  506. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA4019/hw1.0
  507. $(INSTALL_DATA) \
  508. $(PKG_BUILD_DIR)/QCA4019/hw1.0/board-2.bin \
  509. $(1)/lib/firmware/ath10k/QCA4019/hw1.0/
  510. $(INSTALL_DATA) \
  511. $(DL_DIR)/$(call CT_FIRMWARE_FILE_HTT,QCA4019) \
  512. $(1)/lib/firmware/ath10k/QCA4019/hw1.0/ct-firmware-5.bin
  513. endef
  514. define Package/ath10k-firmware-qca9888-ct/install
  515. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9888/hw2.0
  516. ln -s \
  517. ../../cal-pci-0000:01:00.0.bin \
  518. $(1)/lib/firmware/ath10k/QCA9888/hw2.0/board.bin
  519. $(INSTALL_DATA) \
  520. $(PKG_BUILD_DIR)/QCA9888/hw2.0/board-2.bin \
  521. $(1)/lib/firmware/ath10k/QCA9888/hw2.0/board-2.bin
  522. $(INSTALL_DATA) \
  523. $(DL_DIR)/$(call CT_FIRMWARE_FILE,QCA9888) \
  524. $(1)/lib/firmware/ath10k/QCA9888/hw2.0/firmware-5.bin
  525. endef
  526. define Package/ath10k-firmware-qca9888-ct-htt/install
  527. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA9888/hw2.0
  528. ln -s \
  529. ../../cal-pci-0000:01:00.0.bin \
  530. $(1)/lib/firmware/ath10k/QCA9888/hw2.0/board.bin
  531. $(INSTALL_DATA) \
  532. $(PKG_BUILD_DIR)/QCA9888/hw2.0/board-2.bin \
  533. $(1)/lib/firmware/ath10k/QCA9888/hw2.0/board-2.bin
  534. $(INSTALL_DATA) \
  535. $(DL_DIR)/$(call CT_FIRMWARE_FILE_HTT,QCA9888) \
  536. $(1)/lib/firmware/ath10k/QCA9888/hw2.0/ct-firmware-5.bin
  537. endef
  538. #$(eval $(call BuildPackage,ath10k-firmware-qca9887))
  539. #$(eval $(call BuildPackage,ath10k-firmware-qca9888))
  540. #$(eval $(call BuildPackage,ath10k-firmware-qca988x))
  541. #$(eval $(call BuildPackage,ath10k-firmware-qca99x0))
  542. #$(eval $(call BuildPackage,ath10k-firmware-qca6174))
  543. #$(eval $(call BuildPackage,ath10k-firmware-qca9984))
  544. #$(eval $(call BuildPackage,ath10k-firmware-qca4019))
  545. $(eval $(call BuildPackage,ath10k-firmware-qca9887-ct))
  546. $(eval $(call BuildPackage,ath10k-firmware-qca9887-ct-htt))
  547. $(eval $(call BuildPackage,ath10k-firmware-qca988x-ct))
  548. $(eval $(call BuildPackage,ath10k-firmware-qca988x-ct-htt))
  549. $(eval $(call BuildPackage,ath10k-firmware-qca99x0-ct))
  550. $(eval $(call BuildPackage,ath10k-firmware-qca99x0-ct-htt))
  551. $(eval $(call BuildPackage,ath10k-firmware-qca9984-ct))
  552. $(eval $(call BuildPackage,ath10k-firmware-qca9984-ct-htt))
  553. $(eval $(call BuildPackage,ath10k-firmware-qca4019-ct))
  554. $(eval $(call BuildPackage,ath10k-firmware-qca4019-ct-htt))
  555. $(eval $(call BuildPackage,ath10k-firmware-qca9888-ct))
  556. $(eval $(call BuildPackage,ath10k-firmware-qca9888-ct-htt))