ath11k-firmware: update to stable WLAN.HK.2.9.0.1-01890
[openwrt/openwrt.git] / package / firmware / ath11k-firmware / Makefile
1 #
2 # Copyright (C) 2022 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:=ath11k-firmware
11 PKG_SOURCE_DATE:=2023-08-22
12 PKG_SOURCE_VERSION:=d8f82a98ff1aef330d65d8b5660b46d1a9809ee3
13 PKG_MIRROR_HASH:=3dba19449758c3b17f117990d7ad4086554e012b579f1de16e9d9196a7fbaaa7
14 PKG_RELEASE:=1
15
16 PKG_SOURCE_PROTO:=git
17 PKG_SOURCE_URL:=https://github.com/quic/upstream-wifi-fw.git
18
19 PKG_LICENSE_FILES:=LICENSE.qca_firmware
20
21 PKG_MAINTAINER:=Robert Marko <robimarko@gmail.com>
22
23 include $(INCLUDE_DIR)/package.mk
24
25 RSTRIP:=:
26 STRIP:=:
27
28 define Package/ath11k-firmware-default
29 SECTION:=firmware
30 CATEGORY:=Firmware
31 URL:=$(PKG_SOURCE_URL)
32 DEPENDS:=
33 endef
34
35 define Package/ath11k-firmware-ipq8074
36 $(Package/ath11k-firmware-default)
37 TITLE:=IPQ8074 ath11k firmware
38 endef
39
40 define Package/ath11k-firmware-qcn9074
41 $(Package/ath11k-firmware-default)
42 TITLE:=QCN9074 ath11k firmware
43 endef
44
45 define Build/Compile
46
47 endef
48
49 QCN9074_BOARD_REV:=8e140c65f36137714b6d8934e09dcd73cb05c2f6
50 QCN9074_BOARD_FILE:=board-2.bin.$(QCN9074_BOARD_REV)
51
52 define Download/qcn9074-board
53 URL:=https://github.com/kvalo/ath11k-firmware/raw/master/QCN9074/hw1.0/
54 URL_FILE:=board-2.bin
55 FILE:=$(QCN9074_BOARD_FILE)
56 HASH:=dbf0ca14aa1229eccd48f26f1026901b9718b143bd30b51b8ea67c84ba6207f1
57 endef
58 $(eval $(call Download,qcn9074-board))
59
60 define Package/ath11k-firmware-ipq8074/install
61 $(INSTALL_DIR) $(1)/lib/firmware/IPQ8074
62 $(INSTALL_DATA) \
63 $(PKG_BUILD_DIR)/ath11k-firmware/IPQ8074/hw2.0/2.9.0.1/WLAN.HK.2.9.0.1-01890-QCAHKSWPL_SILICONZ-1/* \
64 $(1)/lib/firmware/IPQ8074/
65 endef
66
67 define Package/ath11k-firmware-qcn9074/install
68 $(INSTALL_DIR) $(1)/lib/firmware/ath11k/QCN9074/hw1.0
69 $(INSTALL_DATA) \
70 $(PKG_BUILD_DIR)/ath11k-firmware/QCN9074/hw1.0/2.9.0.1/WLAN.HK.2.9.0.1-01890-QCAHKSWPL_SILICONZ-1/* \
71 $(1)/lib/firmware/ath11k/QCN9074/hw1.0/
72 $(INSTALL_BIN) \
73 $(DL_DIR)/$(QCN9074_BOARD_FILE) $(1)/lib/firmware/ath11k/QCN9074/hw1.0/board-2.bin
74 endef
75
76 $(eval $(call BuildPackage,ath11k-firmware-ipq8074))
77 $(eval $(call BuildPackage,ath11k-firmware-qcn9074))