From: Daniel Golle Date: Fri, 9 Sep 2022 19:29:10 +0000 (+0100) Subject: linux-firmware: package MediaTek MT792[12] Bluetooth firmware X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2510a587a69101e0f2e7f73a84e1c348e0113d2a;p=openwrt%2Fstaging%2Fynezz.git linux-firmware: package MediaTek MT792[12] Bluetooth firmware btusb fails to start on MT792[12] hardware without the appropriate firmware being loaded first: [ 9.750285] bluetooth hci0: Direct firmware load for mediatek/BT_RAM_CODE_MT7961_1_2_hdr.bin failed with error -2 [ 9.765723] bluetooth hci0: Falling back to sysfs fallback for: mediatek/BT_RAM_CODE_MT7961_1_2_hdr.bin Package firmware for MediaTek MT792[12] Bluetooth from linux-firmware. Signed-off-by: Daniel Golle --- diff --git a/package/firmware/linux-firmware/mediatek.mk b/package/firmware/linux-firmware/mediatek.mk index 18677bc748..9c8f68b889 100644 --- a/package/firmware/linux-firmware/mediatek.mk +++ b/package/firmware/linux-firmware/mediatek.mk @@ -50,3 +50,21 @@ define Package/mt7622bt-firmware/install $(1)/lib/firmware/mediatek endef $(eval $(call BuildPackage,mt7622bt-firmware)) + +Package/mt7921bt-firmware = $(call Package/firmware-default,mt7921bt firmware) +define Package/mt7921bt-firmware/install + $(INSTALL_DIR) $(1)/lib/firmware/mediatek + $(INSTALL_DATA) \ + $(PKG_BUILD_DIR)/mediatek/BT_RAM_CODE_MT7961_1_2_hdr.bin \ + $(1)/lib/firmware/mediatek +endef +$(eval $(call BuildPackage,mt7921bt-firmware)) + +Package/mt7922bt-firmware = $(call Package/firmware-default,mt7922bt firmware) +define Package/mt7922bt-firmware/install + $(INSTALL_DIR) $(1)/lib/firmware/mediatek + $(INSTALL_DATA) \ + $(PKG_BUILD_DIR)/mediatek/BT_RAM_CODE_MT7922_1_1_hdr.bin \ + $(1)/lib/firmware/mediatek +endef +$(eval $(call BuildPackage,mt7922bt-firmware))