Makefile 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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_VERSION:=77f72b5f7dd940386d9e619a17904987759b7186
  10. PKG_VERSION:=2014-11-13-$(PKG_SOURCE_VERSION)
  11. PKG_RELEASE:=1
  12. PKG_SOURCE_PROTO:=git
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE_URL:=https://github.com/kvalo/ath10k-firmware.git
  16. PKG_MAINTAINER:=Felix Fietkau <nbd@openwrt.org>
  17. include $(INCLUDE_DIR)/package.mk
  18. WMENU:=Wireless Drivers
  19. define Package/ath10k-firmware-default
  20. SECTION:=kernel
  21. CATEGORY:=Kernel modules
  22. SUBMENU:=$(WMENU)
  23. URL:=$(PKG_SOURCE_URL)
  24. endef
  25. define Package/ath10k-firmware-qca988x
  26. $(Package/ath10k-firmware-default)
  27. TITLE:=ath10k firmware for QCA988x devices
  28. endef
  29. QCA988X_FIRMWARE_FILE:=firmware-5.bin_10.2.4.97-1
  30. define Download/ath10k-firmware-qca988x
  31. URL:=https://www.codeaurora.org/cgit/quic/qsdk/oss/firmware/ath10k-firmware/plain/10.2.4/
  32. FILE:=$(QCA988X_FIRMWARE_FILE)
  33. MD5SUM:=fcb2fbd42d73a63fbf603505c718cbde
  34. endef
  35. $(eval $(call Download,ath10k-firmware-qca988x))
  36. define Package/ath10k-firmware-qca99x0
  37. $(Package/ath10k-firmware-default)
  38. TITLE:=ath10k firmware for QCA99x0 devices
  39. endef
  40. define Package/ath10k-firmware-qca6174
  41. $(Package/ath10k-firmware-default)
  42. TITLE:=ath10k firmware for QCA6174 devices
  43. endef
  44. QCA99X0_BOARD_REV:=ddcec9efd245da9365c474f513a855a55f3ac7fe
  45. QCA99X0_BOARD_FILE:=board-2.bin.$(QCA99X0_BOARD_REV)
  46. define Download/qca99x0-board
  47. URL:=https://www.codeaurora.org/cgit/quic/qsdk/oss/firmware/ath10k-firmware/plain/ath10k/QCA99X0/hw2.0
  48. URL_FILE:=board-2.bin?id=ddcec9efd245da9365c474f513a855a55f3ac7fe
  49. FILE:=$(QCA99X0_BOARD_FILE)
  50. MD5SUM:=a2b3c653c2363a5641200051d6333d0a
  51. endef
  52. $(eval $(call Download,qca99x0-board))
  53. define Build/Compile
  54. endef
  55. define Package/ath10k-firmware-qca988x/install
  56. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
  57. $(INSTALL_DATA) \
  58. $(PKG_BUILD_DIR)/QCA988X/board.bin \
  59. $(1)/lib/firmware/ath10k/QCA988X/hw2.0/
  60. $(INSTALL_DATA) \
  61. $(DL_DIR)/$(QCA988X_FIRMWARE_FILE) \
  62. $(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-5.bin
  63. endef
  64. define Package/ath10k-firmware-qca6174/install
  65. $(INSTALL_DIR) $(1)/lib/firmware/ath10k
  66. $(CP) $(PKG_BUILD_DIR)/QCA6174 $(1)/lib/firmware/ath10k/
  67. endef
  68. define Package/ath10k-firmware-qca99x0/install
  69. $(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA99X0/hw2.0
  70. $(INSTALL_DATA) \
  71. $(DL_DIR)/$(QCA99X0_BOARD_FILE) \
  72. $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board-2.bin
  73. $(INSTALL_DATA) \
  74. $(PKG_BUILD_DIR)/QCA99X0/hw2.0/boardData_AR900B_CUS239_5G_v2_001.bin \
  75. $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin
  76. $(INSTALL_DATA) \
  77. $(PKG_BUILD_DIR)/QCA99X0/hw2.0/firmware-5.bin_10.4.1.00030-1 \
  78. $(1)/lib/firmware/ath10k/QCA99X0/hw2.0/firmware-5.bin
  79. endef
  80. $(eval $(call BuildPackage,ath10k-firmware-qca988x))
  81. $(eval $(call BuildPackage,ath10k-firmware-qca99x0))
  82. $(eval $(call BuildPackage,ath10k-firmware-qca6174))