kernel: kmod-btmtk: Extract btmtk.ko into own package

btmtk.ko is used by btusb.ko and btmtkuart.ko, add it into an own
package and make both packages depend on it.

Fixes: 1c42a0be36 ("kernel: modules: bluetooth: separating UART and USB drivers")
Link: https://github.com/openwrt/openwrt/pull/18110
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
Hauke Mehrtens
2025-02-25 21:15:19 +01:00
parent d6977ab33a
commit 2389793edf
2 changed files with 15 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ $(eval $(call KernelPackage,ata-ahci-mtk))
define KernelPackage/btmtkuart
SUBMENU:=Other modules
TITLE:=MediaTek HCI UART driver
DEPENDS:=@TARGET_mediatek_mt7622 +kmod-bluetooth +mt7622bt-firmware
DEPENDS:=@TARGET_mediatek_mt7622 +kmod-bluetooth +kmod-btmtk +mt7622bt-firmware
KCONFIG:=CONFIG_BT_MTKUART
FILES:= \
$(LINUX_DIR)/drivers/bluetooth/btmtkuart.ko