firmware: add Realtek RTL8822BE/RTL8822CE firmware
authorDavid Bauer <mail@david-bauer.net>
Fri, 18 Oct 2019 18:22:27 +0000 (20:22 +0200)
committerDavid Bauer <mail@david-bauer.net>
Tue, 22 Oct 2019 07:16:24 +0000 (09:16 +0200)
This commit adds packages for the Realtek RTl8822BE/RTL8822CE firmware
to be used with the rtw88 driver.

Signed-off-by: David Bauer <mail@david-bauer.net>
package/firmware/linux-firmware/realtek.mk

index 3c0476e039c4771a82319a62c5b37b67e19b3d1f..87a11c0779afb2ab4aa500c3c0b8293e841f7249 100644 (file)
@@ -86,3 +86,18 @@ define Package/rtl8821ae-firmware/install
        $(INSTALL_DATA) $(PKG_BUILD_DIR)/rtlwifi/rtl8821aefw_wowlan.bin $(1)/lib/firmware/rtlwifi
 endef
 $(eval $(call BuildPackage,rtl8821ae-firmware))
+
+Package/rtl8822be-firmware = $(call Package/firmware-default,RealTek RTL8822BE firmware)
+define Package/rtl8822be-firmware/install
+       $(INSTALL_DIR) $(1)/lib/firmware/rtw88
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/rtw88/rtw8822b_fw.bin $(1)/lib/firmware/rtw88
+endef
+$(eval $(call BuildPackage,rtl8822be-firmware))
+
+Package/rtl8822ce-firmware = $(call Package/firmware-default,RealTek RTL8822CE firmware)
+define Package/rtl8822ce-firmware/install
+       $(INSTALL_DIR) $(1)/lib/firmware/rtw88
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/rtw88/rtw8822c_fw.bin $(1)/lib/firmware/rtw88
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/rtw88/rtw8822c_wow_fw.bin $(1)/lib/firmware/rtw88
+endef
+$(eval $(call BuildPackage,rtl8822ce-firmware))