linux-firmware: add Realtek RTW89 firmware
authorChukun Pan <amadeus@jmu.edu.cn>
Tue, 26 Sep 2023 15:03:28 +0000 (23:03 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 13 Nov 2023 21:01:49 +0000 (22:01 +0100)
This is the firmware required for the rtw89 driver.

Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
package/firmware/linux-firmware/realtek.mk

index 4a3b6cd28a35f6689ea4e28f76f694ba6d9f93a4..b4880b6a7f2313cce6b3badf37159279327a88a4 100644 (file)
@@ -145,3 +145,32 @@ define Package/rtl8822ce-firmware/install
        $(INSTALL_DATA) $(PKG_BUILD_DIR)/rtw88/rtw8822c_wow_fw.bin $(1)/lib/firmware/rtw88
 endef
 $(eval $(call BuildPackage,rtl8822ce-firmware))
+
+Package/rtl8851be-firmware = $(call Package/firmware-default,RealTek RTL8851BE firmware)
+define Package/rtl8851be-firmware/install
+       $(INSTALL_DIR) $(1)/lib/firmware/rtw89
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/rtw89/rtw8851b_fw.bin $(1)/lib/firmware/rtw89
+endef
+$(eval $(call BuildPackage,rtl8851be-firmware))
+
+Package/rtl8852ae-firmware = $(call Package/firmware-default,RealTek RTL8852AE firmware)
+define Package/rtl8852ae-firmware/install
+       $(INSTALL_DIR) $(1)/lib/firmware/rtw89
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/rtw89/rtw8852a_fw.bin $(1)/lib/firmware/rtw89
+endef
+$(eval $(call BuildPackage,rtl8852ae-firmware))
+
+Package/rtl8852be-firmware = $(call Package/firmware-default,RealTek RTL8852BE firmware)
+define Package/rtl8852be-firmware/install
+       $(INSTALL_DIR) $(1)/lib/firmware/rtw89
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/rtw89/rtw8852b_fw.bin $(1)/lib/firmware/rtw89
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/rtw89/rtw8852b_fw-1.bin $(1)/lib/firmware/rtw89
+endef
+$(eval $(call BuildPackage,rtl8852be-firmware))
+
+Package/rtl8852ce-firmware = $(call Package/firmware-default,RealTek RTL8852CE firmware)
+define Package/rtl8852ce-firmware/install
+       $(INSTALL_DIR) $(1)/lib/firmware/rtw89
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/rtw89/rtw8852c_fw.bin $(1)/lib/firmware/rtw89
+endef
+$(eval $(call BuildPackage,rtl8852ce-firmware))