kernel: bluetooth: fix btbcm depdendency

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2025-02-27 21:42:53 +08:00
parent b6b0fd72f1
commit 922f41506e
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -38,9 +38,10 @@ $(eval $(call KernelPackage,bluetooth))
define KernelPackage/hci-uart
SUBMENU:=$(BLUETOOTH_MENU)
TITLE:=Bluetooth HCI UART support
DEPENDS:=+kmod-bluetooth
DEPENDS:=+kmod-bluetooth +kmod-btbcm
KCONFIG:= \
CONFIG_BT_HCIUART \
CONFIG_BT_HCIUART_BCM=y \
CONFIG_BT_HCIUART_INTEL=n \
CONFIG_BT_HCIUART_H4 \
CONFIG_BT_HCIUART_NOKIA=n
@ -59,9 +60,10 @@ $(eval $(call KernelPackage,hci-uart))
define KernelPackage/btusb
SUBMENU:=$(BLUETOOTH_MENU)
TITLE:=Bluetooth HCI USB support
DEPENDS:=@USB_SUPPORT +kmod-usb-core +kmod-bluetooth
DEPENDS:=@USB_SUPPORT +kmod-usb-core +kmod-bluetooth +kmod-btbcm
KCONFIG:= \
CONFIG_BT_HCIBTUSB \
CONFIG_BT_HCIBTUSB_BCM=y \
CONFIG_BT_HCIBTUSB_MTK=y \
CONFIG_BT_HCIBTUSB_RTL=y
FILES:= \
@ -79,6 +81,18 @@ endef
$(eval $(call KernelPackage,btusb))
define KernelPackage/btbcm
SUBMENU:=$(BLUETOOTH_MENU)
TITLE:=Broadcom Bluetooth support
HIDDEN:=1
DEPENDS:=+kmod-bluetooth
KCONFIG:=CONFIG_BT_BCM
FILES:=$(LINUX_DIR)/drivers/bluetooth/btbcm.ko
endef
$(eval $(call KernelPackage,btbcm))
define KernelPackage/ath3k
SUBMENU:=$(BLUETOOTH_MENU)
TITLE:=ATH3K Kernel Module support
@ -114,24 +128,6 @@ endef
$(eval $(call KernelPackage,bluetooth-6lowpan))
define KernelPackage/btbcm
SUBMENU:=$(BLUETOOTH_MENU)
TITLE:=Broadcom Bluetooth Kernel Module support
DEPENDS:=+kmod-hci-uart +kmod-btusb
KCONFIG:= \
CONFIG_BT_BCM \
CONFIG_BT_HCIBTUSB_BCM=y \
CONFIG_BT_HCIUART_BCM=y
FILES:=$(LINUX_DIR)/drivers/bluetooth/btbcm.ko
endef
define KernelPackage/btbcm/description
Kernel support for Broadcom Bluetooth Module
endef
$(eval $(call KernelPackage,btbcm))
define KernelPackage/btmrvl
SUBMENU:=$(BLUETOOTH_MENU)
TITLE:=Marvell Bluetooth Kernel Module support