linux-firmware: add rtl8761 bluetooth firmware
authorQuintin Hill <stuff@quintin.me.uk>
Sat, 22 Oct 2022 07:15:57 +0000 (08:15 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 12 Nov 2022 16:05:13 +0000 (17:05 +0100)
Realtek bluetooth devices need firmware.  Add packages for some of
these.

Tested on a WNDR3700v4 with rtl8761bu firmware.

Signed-off-by: Quintin Hill <stuff@quintin.me.uk>
package/firmware/linux-firmware/realtek.mk

index e06c3a63694c9a3add5469d8ff23b98e2650fe5a..6d9238b8a435bd7ae9eb2b7894c09069e7fcd9e6 100644 (file)
@@ -86,6 +86,29 @@ define Package/rtl8723bu-firmware/install
 endef
 $(eval $(call BuildPackage,rtl8723bu-firmware))
 
+Package/rtl8761a-firmware = $(call Package/firmware-default,RealTek RTL8761A firmware)
+define Package/rtl8761a-firmware/install
+       $(INSTALL_DIR) $(1)/lib/firmware/rtl_bt
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/rtl_bt/rtl8761a_fw.bin $(1)/lib/firmware/rtl_bt
+endef
+$(eval $(call BuildPackage,rtl8761a-firmware))
+
+Package/rtl8761b-firmware = $(call Package/firmware-default,RealTek RTL8761B firmware)
+define Package/rtl8761b-firmware/install
+       $(INSTALL_DIR) $(1)/lib/firmware/rtl_bt
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/rtl_bt/rtl8761b_config.bin $(1)/lib/firmware/rtl_bt
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/rtl_bt/rtl8761b_fw.bin $(1)/lib/firmware/rtl_bt
+endef
+$(eval $(call BuildPackage,rtl8761b-firmware))
+
+Package/rtl8761bu-firmware = $(call Package/firmware-default,RealTek RTL8761BU firmware)
+define Package/rtl8761bu-firmware/install
+       $(INSTALL_DIR) $(1)/lib/firmware/rtl_bt
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/rtl_bt/rtl8761bu_config.bin $(1)/lib/firmware/rtl_bt
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/rtl_bt/rtl8761bu_fw.bin $(1)/lib/firmware/rtl_bt
+endef
+$(eval $(call BuildPackage,rtl8761bu-firmware))
+
 Package/rtl8821ae-firmware = $(call Package/firmware-default,RealTek RTL8821AE firmware)
 define Package/rtl8821ae-firmware/install
        $(INSTALL_DIR) $(1)/lib/firmware/rtlwifi