From: Mantas Pucka Date: Wed, 3 Jan 2024 09:21:58 +0000 (+0200) Subject: ath11k-firmware: add wifi firmware for ipq6018 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=586a051d4d118e428e0bddbdab6b27d10cb8ce94;p=openwrt%2Fstaging%2Fneocturne.git ath11k-firmware: add wifi firmware for ipq6018 So far only stable FW is v2.4. It exists in a different git repo, so add custom download routine. Signed-off-by: Mantas Pucka --- diff --git a/package/firmware/ath11k-firmware/Makefile b/package/firmware/ath11k-firmware/Makefile index ea4977aa68..384595f10d 100644 --- a/package/firmware/ath11k-firmware/Makefile +++ b/package/firmware/ath11k-firmware/Makefile @@ -11,7 +11,7 @@ PKG_NAME:=ath11k-firmware PKG_SOURCE_DATE:=2023-08-22 PKG_SOURCE_VERSION:=d8f82a98ff1aef330d65d8b5660b46d1a9809ee3 PKG_MIRROR_HASH:=3dba19449758c3b17f117990d7ad4086554e012b579f1de16e9d9196a7fbaaa7 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/quic/upstream-wifi-fw.git @@ -32,6 +32,11 @@ define Package/ath11k-firmware-default DEPENDS:= endef +define Package/ath11k-firmware-ipq6018 +$(Package/ath11k-firmware-default) + TITLE:=IPQ6018 ath11k firmware +endef + define Package/ath11k-firmware-ipq8074 $(Package/ath11k-firmware-default) TITLE:=IPQ8074 ath11k firmware @@ -57,6 +62,28 @@ define Download/qcn9074-board endef $(eval $(call Download,qcn9074-board)) +define Download/ath11k-firmware-old + URL:=https://github.com/kvalo/ath11k-firmware.git + VERSION:=540105aa5c0903b5f773d4e80b8501e8da5217e7 + PROTO:=git + FILE:=ath11k-firmware-old.tar.xz + SUBDIR:=ath11k-firmware-old + MIRROR_HASH:=a35a164726fab2adc4ad447c974c06746355ba74deab9b849d39f06b5187bb6d +endef +$(eval $(call Download,ath11k-firmware-old)) + +define Build/Prepare + $(call Build/Prepare/Default) + xzcat $(DL_DIR)/ath11k-firmware-old.tar.xz | tar -C $(PKG_BUILD_DIR)/ -xf - +endef + +define Package/ath11k-firmware-ipq6018/install + $(INSTALL_DIR) $(1)/lib/firmware/IPQ6018 + $(INSTALL_DATA) \ + $(PKG_BUILD_DIR)/ath11k-firmware-old/IPQ6018/hw1.0/2.4.0.1/WLAN.HK.2.4.0.1-01746-QCAHKSWPL_SILICONZ-1/* \ + $(1)/lib/firmware/IPQ6018/ +endef + define Package/ath11k-firmware-ipq8074/install $(INSTALL_DIR) $(1)/lib/firmware/IPQ8074 $(INSTALL_DATA) \ @@ -73,5 +100,6 @@ define Package/ath11k-firmware-qcn9074/install $(DL_DIR)/$(QCN9074_BOARD_FILE) $(1)/lib/firmware/ath11k/QCN9074/hw1.0/board-2.bin endef +$(eval $(call BuildPackage,ath11k-firmware-ipq6018)) $(eval $(call BuildPackage,ath11k-firmware-ipq8074)) $(eval $(call BuildPackage,ath11k-firmware-qcn9074))