2021-12-21 12:24:01 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2022 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=ath11k-firmware
|
2024-03-14 08:20:56 +00:00
|
|
|
PKG_SOURCE_DATE:=2024-03-14
|
|
|
|
PKG_SOURCE_VERSION:=795809c7041582bd51bdfaa1f548b916ae8d4382
|
2024-03-25 09:03:26 +00:00
|
|
|
PKG_MIRROR_HASH:=d93edc651b641a97ec4f5ed329e15ac110928f863b4afbaae7fcb25953d04544
|
2024-03-17 15:21:45 +00:00
|
|
|
PKG_RELEASE:=2
|
2021-12-21 12:24:01 +00:00
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
2023-04-04 19:48:42 +00:00
|
|
|
PKG_SOURCE_URL:=https://github.com/quic/upstream-wifi-fw.git
|
2021-12-21 12:24:01 +00:00
|
|
|
|
|
|
|
PKG_LICENSE_FILES:=LICENSE.qca_firmware
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Robert Marko <robimarko@gmail.com>
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
RSTRIP:=:
|
|
|
|
STRIP:=:
|
|
|
|
|
|
|
|
define Package/ath11k-firmware-default
|
|
|
|
SECTION:=firmware
|
|
|
|
CATEGORY:=Firmware
|
|
|
|
URL:=$(PKG_SOURCE_URL)
|
|
|
|
DEPENDS:=
|
|
|
|
endef
|
|
|
|
|
2024-01-03 09:21:58 +00:00
|
|
|
define Package/ath11k-firmware-ipq6018
|
|
|
|
$(Package/ath11k-firmware-default)
|
|
|
|
TITLE:=IPQ6018 ath11k firmware
|
|
|
|
endef
|
|
|
|
|
2021-12-21 12:24:01 +00:00
|
|
|
define Package/ath11k-firmware-ipq8074
|
|
|
|
$(Package/ath11k-firmware-default)
|
|
|
|
TITLE:=IPQ8074 ath11k firmware
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ath11k-firmware-qcn9074
|
|
|
|
$(Package/ath11k-firmware-default)
|
|
|
|
TITLE:=QCN9074 ath11k firmware
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2023-04-04 19:48:42 +00:00
|
|
|
QCN9074_BOARD_REV:=8e140c65f36137714b6d8934e09dcd73cb05c2f6
|
|
|
|
QCN9074_BOARD_FILE:=board-2.bin.$(QCN9074_BOARD_REV)
|
|
|
|
|
|
|
|
define Download/qcn9074-board
|
2024-03-07 08:24:20 +00:00
|
|
|
URL:=https://git.codelinaro.org/clo/ath-firmware/ath11k-firmware/-/raw/main/QCN9074/hw1.0/
|
2023-04-04 19:48:42 +00:00
|
|
|
URL_FILE:=board-2.bin
|
|
|
|
FILE:=$(QCN9074_BOARD_FILE)
|
|
|
|
HASH:=dbf0ca14aa1229eccd48f26f1026901b9718b143bd30b51b8ea67c84ba6207f1
|
|
|
|
endef
|
|
|
|
$(eval $(call Download,qcn9074-board))
|
|
|
|
|
2024-01-03 09:21:58 +00:00
|
|
|
define Package/ath11k-firmware-ipq6018/install
|
|
|
|
$(INSTALL_DIR) $(1)/lib/firmware/IPQ6018
|
|
|
|
$(INSTALL_DATA) \
|
2024-03-17 15:21:45 +00:00
|
|
|
$(PKG_BUILD_DIR)/ath11k-firmware/IPQ6018/hw1.0/2.5.0.1/WLAN.HK.2.5.0.1-03982-QCAHKSWPL_SILICONZ-3/* \
|
2024-01-03 09:21:58 +00:00
|
|
|
$(1)/lib/firmware/IPQ6018/
|
|
|
|
endef
|
|
|
|
|
2021-12-21 12:24:01 +00:00
|
|
|
define Package/ath11k-firmware-ipq8074/install
|
|
|
|
$(INSTALL_DIR) $(1)/lib/firmware/IPQ8074
|
|
|
|
$(INSTALL_DATA) \
|
2024-03-14 08:20:56 +00:00
|
|
|
$(PKG_BUILD_DIR)/ath11k-firmware/IPQ8074/hw2.0/2.9.0.1/WLAN.HK.2.9.0.1-01977-QCAHKSWPL_SILICONZ-1/* \
|
2021-12-21 12:24:01 +00:00
|
|
|
$(1)/lib/firmware/IPQ8074/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/ath11k-firmware-qcn9074/install
|
|
|
|
$(INSTALL_DIR) $(1)/lib/firmware/ath11k/QCN9074/hw1.0
|
|
|
|
$(INSTALL_DATA) \
|
2024-03-14 08:20:56 +00:00
|
|
|
$(PKG_BUILD_DIR)/ath11k-firmware/QCN9074/hw1.0/2.9.0.1/WLAN.HK.2.9.0.1-01977-QCAHKSWPL_SILICONZ-1/* \
|
2021-12-21 12:24:01 +00:00
|
|
|
$(1)/lib/firmware/ath11k/QCN9074/hw1.0/
|
|
|
|
$(INSTALL_BIN) \
|
2023-04-04 19:48:42 +00:00
|
|
|
$(DL_DIR)/$(QCN9074_BOARD_FILE) $(1)/lib/firmware/ath11k/QCN9074/hw1.0/board-2.bin
|
2021-12-21 12:24:01 +00:00
|
|
|
endef
|
|
|
|
|
2024-01-03 09:21:58 +00:00
|
|
|
$(eval $(call BuildPackage,ath11k-firmware-ipq6018))
|
2021-12-21 12:24:01 +00:00
|
|
|
$(eval $(call BuildPackage,ath11k-firmware-ipq8074))
|
|
|
|
$(eval $(call BuildPackage,ath11k-firmware-qcn9074))
|