-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qcom-firmware: add support for openstick
- Loading branch information
1 parent
aea513d
commit 0f26456
Showing
1 changed file
with
230 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Copyright (C) 2020-2021 HandsomeMod Project | ||
# Copyright (C) 2020-2022 HandsomeMod Project | ||
# | ||
# This is free software, licensed under the GNU General Public License v2. | ||
# See /LICENSE for more information. | ||
|
@@ -9,17 +9,15 @@ include $(TOPDIR)/rules.mk | |
|
||
PKG_NAME:=qcom-firmware | ||
PKG_VERSION:=r1034.2.1 | ||
PKG_RELEASE:=1 | ||
PKG_RELEASE:=2 | ||
|
||
PKG_SOURCE_PROTO:=git | ||
PKG_SOURCE_URL:=https://github.com/HandsomeMod/qcom-firmware | ||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz | ||
PKG_SOURCE_VERSION:=87414202b18a42be757abb5a059447e676c992f9 | ||
PKG_MIRROR_HASH:=51b5a788f17ffd781417a50ebaa08e0aafa90884f8b1d0f8890dbaded19ee744 | ||
PKG_SOURCE_VERSION:=fc0ce66ecb7dcc1293c1e29cad2d7f566221efca | ||
PKG_MIRROR_HASH:=6a9f773cfa43360d1a261edd37bbde857eb0aeea4bfe9c388be3d760c8b259b9 | ||
|
||
PKG_MAINTAINER:=Handsomeyingyan <[email protected]> | ||
|
||
# Why mba.mbn has an ELF header? | ||
STRIP:=: | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
@@ -33,9 +31,21 @@ define Build/Compile | |
mkdir $(PKG_BUILD_DIR)/dragonboard | ||
mcopy -i $(PKG_BUILD_DIR)/dragonboard-modem.bin -p -m -v \ | ||
::image/mba.mbn ::image/modem.* ::image/wcnss.* $(PKG_BUILD_DIR)/dragonboard | ||
mkdir $(PKG_BUILD_DIR)/openstick | ||
mcopy -i $(PKG_BUILD_DIR)/openstick-modem.bin -p -m -v \ | ||
::image/mba.mbn ::image/modem.* ::image/wcnss.* $(PKG_BUILD_DIR)/openstick | ||
mkdir $(PKG_BUILD_DIR)/openstick-ufi001b | ||
mcopy -i $(PKG_BUILD_DIR)/openstick-ufi001b-modem.bin -p -m -v \ | ||
::image/mba.mbn ::image/modem.* ::image/wcnss.* $(PKG_BUILD_DIR)/openstick-ufi001b | ||
mkdir $(PKG_BUILD_DIR)/openstick-ufi001c | ||
mcopy -i $(PKG_BUILD_DIR)/openstick-ufi001c-modem.bin -p -m -v \ | ||
::image/mba.mbn ::image/modem.* ::image/wcnss.* $(PKG_BUILD_DIR)/openstick-ufi001c | ||
mkdir $(PKG_BUILD_DIR)/openstick-ufi003 | ||
mcopy -i $(PKG_BUILD_DIR)/openstick-ufi003-modem.bin -p -m -v \ | ||
::image/mba.mbn ::image/modem.* ::image/wcnss.* $(PKG_BUILD_DIR)/openstick-ufi003 | ||
mkdir $(PKG_BUILD_DIR)/openstick-sp970 | ||
mcopy -i $(PKG_BUILD_DIR)/openstick-sp970-modem.bin -p -m -v \ | ||
::image/mba.mbn ::image/modem.* ::image/wcnss.* $(PKG_BUILD_DIR)/openstick-sp970 | ||
mkdir $(PKG_BUILD_DIR)/openstick-uz801 | ||
mcopy -i $(PKG_BUILD_DIR)/openstick-uz801-modem.bin -p -m -v \ | ||
::image/mba.mbn ::image/modem.* ::image/wcnss.* $(PKG_BUILD_DIR)/openstick-uz801 | ||
mkdir $(PKG_BUILD_DIR)/wt88047 | ||
mcopy -i $(PKG_BUILD_DIR)/wt88047-modem.bin -p -m -v \ | ||
::image/mba.mbn ::image/modem.* ::image/wcnss.* $(PKG_BUILD_DIR)/wt88047 | ||
|
@@ -44,9 +54,39 @@ define Build/Compile | |
::image/mba.mbn ::image/modem.* ::image/wcnss.* $(PKG_BUILD_DIR)/wt86047 | ||
endef | ||
|
||
define Package/qcom-msm8916-wcnss-firmware | ||
define Package/qcom-apq8016-wcnss-firmware | ||
$(Package/qcom-firmware-default) | ||
TITLE:=Qualcomm apq8016 WIFI & Bluetooth firmware | ||
endef | ||
|
||
define Package/qcom-msm8916-openstick-ufi001b-wcnss-firmware | ||
$(Package/qcom-firmware-default) | ||
TITLE:=Openstick UFI001B WIFI & Bluetooth firmware | ||
endef | ||
|
||
define Package/qcom-msm8916-openstick-ufi001c-wcnss-firmware | ||
$(Package/qcom-firmware-default) | ||
TITLE:=Openstick UFI001C WIFI & Bluetooth firmware | ||
endef | ||
|
||
define Package/qcom-msm8916-openstick-ufi003-wcnss-firmware | ||
$(Package/qcom-firmware-default) | ||
TITLE:=Openstick UFI003 WIFI & Bluetooth firmware | ||
endef | ||
|
||
define Package/qcom-msm8916-openstick-sp970-wcnss-firmware | ||
$(Package/qcom-firmware-default) | ||
TITLE:=Openstick SP970 WIFI & Bluetooth firmware | ||
endef | ||
|
||
define Package/qcom-msm8916-openstick-uz801-wcnss-firmware | ||
$(Package/qcom-firmware-default) | ||
TITLE:=Qualcomm msm8916 WIFI & Bluetooth firmware | ||
TITLE:=Openstick UZ801 WIFI & Bluetooth firmware | ||
endef | ||
|
||
define Package/qcom-msm8916-wt8x047-wcnss-firmware | ||
$(Package/qcom-firmware-default) | ||
TITLE:=Redmi 2 WIFI & Bluetooth firmware | ||
endef | ||
|
||
define Package/qcom-apq8016-wcnss-nv | ||
|
@@ -56,12 +96,32 @@ endef | |
|
||
define Package/qcom-msm8916-wcnss-wt88047-nv | ||
$(Package/qcom-firmware-default) | ||
TITLE:=Qualcomm msm8916 WIFI nv data for wingtech wt88047 | ||
TITLE:=Qualcomm msm8916 WIFI nv data for Wingtech Wt88047 | ||
endef | ||
|
||
define Package/qcom-msm8916-wcnss-openstick-ufi001b-nv | ||
$(Package/qcom-firmware-default) | ||
TITLE:=Qualcomm msm8916 WIFI nv data for Handsome Openstick UFI001B | ||
endef | ||
|
||
define Package/qcom-msm8916-wcnss-openstick-ufi001c-nv | ||
$(Package/qcom-firmware-default) | ||
TITLE:=Qualcomm msm8916 WIFI nv data for Handsome Openstick UFI001C | ||
endef | ||
|
||
define Package/qcom-msm8916-wcnss-openstick-ufi003-nv | ||
$(Package/qcom-firmware-default) | ||
TITLE:=Qualcomm msm8916 WIFI nv data for Handsome Openstick UFI003 | ||
endef | ||
|
||
define Package/qcom-msm8916-wcnss-openstick-sp970-nv | ||
$(Package/qcom-firmware-default) | ||
TITLE:=Qualcomm msm8916 WIFI nv data for Handsome Openstick SP970 | ||
endef | ||
|
||
define Package/qcom-msm8916-wcnss-openstick-nv | ||
define Package/qcom-msm8916-wcnss-openstick-uz801-nv | ||
$(Package/qcom-firmware-default) | ||
TITLE:=Qualcomm msm8916 WIFI nv data for Handsome Openstick | ||
TITLE:=Qualcomm msm8916 WIFI nv data for Handsome Openstick UZ801 | ||
endef | ||
|
||
define Package/qcom-apq8016-modem-firmware | ||
|
@@ -79,18 +139,80 @@ define Package/qcom-msm8916-modem-wt86047-firmware | |
TITLE:=Qualcomm msm8916 modem firmware for wingtech wt86047 | ||
endef | ||
|
||
define Package/qcom-msm8916-modem-openstick-firmware | ||
define Package/qcom-msm8916-modem-openstick-ufi001b-firmware | ||
$(Package/qcom-firmware-default) | ||
TITLE:=Qualcomm msm8916 modem firmware for Handsome Openstick | ||
TITLE:=Qualcomm msm8916 modem firmware for Handsome Openstick UFI001B | ||
endef | ||
|
||
define Package/qcom-msm8916-wcnss-firmware/install | ||
define Package/qcom-msm8916-modem-openstick-ufi001c-firmware | ||
$(Package/qcom-firmware-default) | ||
TITLE:=Qualcomm msm8916 modem firmware for Handsome Openstick UFI001C | ||
endef | ||
|
||
define Package/qcom-msm8916-modem-openstick-ufi003-firmware | ||
$(Package/qcom-firmware-default) | ||
TITLE:=Qualcomm msm8916 modem firmware for Handsome Openstick UFI003 | ||
endef | ||
|
||
define Package/qcom-msm8916-modem-openstick-sp970-firmware | ||
$(Package/qcom-firmware-default) | ||
TITLE:=Qualcomm msm8916 modem firmware for Handsome Openstick SP970 | ||
endef | ||
|
||
define Package/qcom-msm8916-modem-openstick-uz801-firmware | ||
$(Package/qcom-firmware-default) | ||
TITLE:=Qualcomm msm8916 modem firmware for Handsome Openstick UZ801 | ||
endef | ||
|
||
define Package/qcom-apq8016-wcnss-firmware/install | ||
$(INSTALL_DIR) $(1)/lib/firmware | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/dragonboard/wcnss.* \ | ||
$(1)/lib/firmware | ||
endef | ||
|
||
define Package/qcom-msm8916-openstick-ufi001b-wcnss-firmware/install | ||
$(INSTALL_DIR) $(1)/lib/firmware | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/openstick-ufi001b/wcnss.* \ | ||
$(1)/lib/firmware | ||
endef | ||
|
||
define Package/qcom-msm8916-openstick-ufi001c-wcnss-firmware/install | ||
$(INSTALL_DIR) $(1)/lib/firmware | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/openstick-ufi001c/wcnss.* \ | ||
$(1)/lib/firmware | ||
endef | ||
|
||
define Package/qcom-msm8916-openstick-ufi003-wcnss-firmware/install | ||
$(INSTALL_DIR) $(1)/lib/firmware | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/openstick-ufi003/wcnss.* \ | ||
$(1)/lib/firmware | ||
endef | ||
|
||
define Package/qcom-msm8916-openstick-sp970-wcnss-firmware/install | ||
$(INSTALL_DIR) $(1)/lib/firmware | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/openstick-sp970/wcnss.* \ | ||
$(1)/lib/firmware | ||
endef | ||
|
||
define Package/qcom-msm8916-openstick-uz801-wcnss-firmware/install | ||
$(INSTALL_DIR) $(1)/lib/firmware | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/openstick-uz801/wcnss.* \ | ||
$(1)/lib/firmware | ||
endef | ||
|
||
define Package/qcom-msm8916-wt8x047-wcnss-firmware/install | ||
$(INSTALL_DIR) $(1)/lib/firmware | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/wt88047/wcnss.* \ | ||
$(1)/lib/firmware | ||
endef | ||
|
||
define Package/qcom-apq8016-wcnss-nv/install | ||
$(INSTALL_DIR) $(1)/lib/firmware/wlan/prima | ||
$(INSTALL_DATA) \ | ||
|
@@ -101,14 +223,42 @@ endef | |
define Package/qcom-msm8916-wcnss-wt88047-nv/install | ||
$(INSTALL_DIR) $(1)/lib/firmware/wlan/prima | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/wt88047-nv.bin \ | ||
$(PKG_BUILD_DIR)/wt8x047-nv.bin \ | ||
$(1)/lib/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin | ||
endef | ||
|
||
define Package/qcom-msm8916-wcnss-openstick-ufi001b-nv/install | ||
$(INSTALL_DIR) $(1)/lib/firmware/wlan/prima | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/openstick-ufi001b-nv.bin \ | ||
$(1)/lib/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin | ||
endef | ||
|
||
define Package/qcom-msm8916-wcnss-openstick-ufi001c-nv/install | ||
$(INSTALL_DIR) $(1)/lib/firmware/wlan/prima | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/openstick-ufi001c-nv.bin \ | ||
$(1)/lib/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin | ||
endef | ||
|
||
define Package/qcom-msm8916-wcnss-openstick-ufi003-nv/install | ||
$(INSTALL_DIR) $(1)/lib/firmware/wlan/prima | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/openstick-ufi003-nv.bin \ | ||
$(1)/lib/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin | ||
endef | ||
|
||
define Package/qcom-msm8916-wcnss-openstick-sp970-nv/install | ||
$(INSTALL_DIR) $(1)/lib/firmware/wlan/prima | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/openstick-sp970-nv.bin \ | ||
$(1)/lib/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin | ||
endef | ||
|
||
define Package/qcom-msm8916-wcnss-openstick-nv/install | ||
define Package/qcom-msm8916-wcnss-openstick-uz801-nv/install | ||
$(INSTALL_DIR) $(1)/lib/firmware/wlan/prima | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/openstick-nv.bin \ | ||
$(PKG_BUILD_DIR)/openstick-uz801-nv.bin \ | ||
$(1)/lib/firmware/wlan/prima/WCNSS_qcom_wlan_nv.bin | ||
endef | ||
|
||
|
@@ -142,21 +292,75 @@ define Package/qcom-msm8916-modem-wt86047-firmware/install | |
$(1)/lib/firmware | ||
endef | ||
|
||
define Package/qcom-msm8916-modem-openstick-firmware/install | ||
define Package/qcom-msm8916-modem-openstick-ufi001b-firmware/install | ||
$(INSTALL_DIR) $(1)/lib/firmware | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/openstick-ufi001b/mba.mbn \ | ||
$(1)/lib/firmware | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/openstick-ufi001b/modem.* \ | ||
$(1)/lib/firmware | ||
endef | ||
|
||
define Package/qcom-msm8916-modem-openstick-ufi001c-firmware/install | ||
$(INSTALL_DIR) $(1)/lib/firmware | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/openstick-ufi001c/mba.mbn \ | ||
$(1)/lib/firmware | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/openstick-ufi001c/modem.* \ | ||
$(1)/lib/firmware | ||
endef | ||
|
||
define Package/qcom-msm8916-modem-openstick-ufi003-firmware/install | ||
$(INSTALL_DIR) $(1)/lib/firmware | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/openstick-ufi003/mba.mbn \ | ||
$(1)/lib/firmware | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/openstick-ufi003/modem.* \ | ||
$(1)/lib/firmware | ||
endef | ||
|
||
define Package/qcom-msm8916-modem-openstick-sp970-firmware/install | ||
$(INSTALL_DIR) $(1)/lib/firmware | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/openstick-sp970/mba.mbn \ | ||
$(1)/lib/firmware | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/openstick-sp970/modem.* \ | ||
$(1)/lib/firmware | ||
endef | ||
|
||
define Package/qcom-msm8916-modem-openstick-uz801-firmware/install | ||
$(INSTALL_DIR) $(1)/lib/firmware | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/openstick/mba.mbn \ | ||
$(PKG_BUILD_DIR)/openstick-uz801/mba.mbn \ | ||
$(1)/lib/firmware | ||
$(INSTALL_DATA) \ | ||
$(PKG_BUILD_DIR)/openstick/modem.* \ | ||
$(PKG_BUILD_DIR)/openstick-uz801/modem.* \ | ||
$(1)/lib/firmware | ||
endef | ||
|
||
$(eval $(call BuildPackage,qcom-msm8916-wcnss-firmware)) | ||
$(eval $(call BuildPackage,qcom-apq8016-wcnss-firmware)) | ||
$(eval $(call BuildPackage,qcom-msm8916-openstick-ufi001b-wcnss-firmware)) | ||
$(eval $(call BuildPackage,qcom-msm8916-openstick-ufi001c-wcnss-firmware)) | ||
$(eval $(call BuildPackage,qcom-msm8916-openstick-ufi003-wcnss-firmware)) | ||
$(eval $(call BuildPackage,qcom-msm8916-openstick-sp970-wcnss-firmware)) | ||
$(eval $(call BuildPackage,qcom-msm8916-openstick-uz801-wcnss-firmware)) | ||
$(eval $(call BuildPackage,qcom-msm8916-wt8x047-wcnss-firmware)) | ||
$(eval $(call BuildPackage,qcom-apq8016-wcnss-nv)) | ||
$(eval $(call BuildPackage,qcom-msm8916-wcnss-wt88047-nv)) | ||
$(eval $(call BuildPackage,qcom-msm8916-wcnss-openstick-nv)) | ||
$(eval $(call BuildPackage,qcom-msm8916-wcnss-openstick-ufi001b-nv)) | ||
$(eval $(call BuildPackage,qcom-msm8916-wcnss-openstick-ufi001c-nv)) | ||
$(eval $(call BuildPackage,qcom-msm8916-wcnss-openstick-ufi003-nv)) | ||
$(eval $(call BuildPackage,qcom-msm8916-wcnss-openstick-sp970-nv)) | ||
$(eval $(call BuildPackage,qcom-msm8916-wcnss-openstick-uz801-nv)) | ||
$(eval $(call BuildPackage,qcom-apq8016-modem-firmware)) | ||
$(eval $(call BuildPackage,qcom-msm8916-modem-wt88047-firmware)) | ||
$(eval $(call BuildPackage,qcom-msm8916-modem-wt86047-firmware)) | ||
$(eval $(call BuildPackage,qcom-msm8916-modem-openstick-firmware)) | ||
$(eval $(call BuildPackage,qcom-msm8916-modem-openstick-ufi001b-firmware)) | ||
$(eval $(call BuildPackage,qcom-msm8916-modem-openstick-ufi001c-firmware)) | ||
$(eval $(call BuildPackage,qcom-msm8916-modem-openstick-ufi003-firmware)) | ||
$(eval $(call BuildPackage,qcom-msm8916-modem-openstick-sp970-firmware)) | ||
$(eval $(call BuildPackage,qcom-msm8916-modem-openstick-uz801-firmware)) |