bluetooth: add more platform support

Fixes: #10775
This commit is contained in:
AmadeusGhost 2023-02-15 23:25:39 +08:00 committed by aiamadeus
parent 7f1a60f322
commit 1ac276866a

View File

@ -30,7 +30,9 @@ $(eval $(call KernelPackage,6lowpan))
define KernelPackage/bluetooth define KernelPackage/bluetooth
SUBMENU:=$(OTHER_MENU) SUBMENU:=$(OTHER_MENU)
TITLE:=Bluetooth support TITLE:=Bluetooth support
DEPENDS:=@USB_SUPPORT +kmod-usb-core +kmod-crypto-hash +kmod-crypto-ecb +kmod-lib-crc16 +kmod-hid +kmod-crypto-cmac +kmod-regmap-core +kmod-crypto-ecdh DEPENDS:=@USB_SUPPORT +kmod-crypto-cmac +kmod-crypto-ecb \
+kmod-crypto-ecdh +kmod-crypto-hash +kmod-hid +kmod-lib-crc16 \
+kmod-regmap-core +kmod-serdev +kmod-usb-core
KCONFIG:= \ KCONFIG:= \
CONFIG_BT \ CONFIG_BT \
CONFIG_BT_BREDR=y \ CONFIG_BT_BREDR=y \
@ -43,10 +45,12 @@ define KernelPackage/bluetooth
CONFIG_BT_HCIBTUSB_MTK=y \ CONFIG_BT_HCIBTUSB_MTK=y \
CONFIG_BT_HCIBTUSB_RTL=n \ CONFIG_BT_HCIBTUSB_RTL=n \
CONFIG_BT_HCIUART \ CONFIG_BT_HCIUART \
CONFIG_BT_HCIUART_BCM=n \ CONFIG_BT_HCIUART_BCM=y \
CONFIG_BT_HCIUART_INTEL=n \ CONFIG_BT_HCIUART_INTEL=n \
CONFIG_BT_HCIUART_H4 \ CONFIG_BT_HCIUART_H4 \
CONFIG_BT_HCIUART_NOKIA=n \ CONFIG_BT_HCIUART_NOKIA=n \
CONFIG_BT_HCIUART_QCA=y \
CONFIG_BT_HCIUART_SERDEV=y \
CONFIG_BT_HIDP CONFIG_BT_HIDP
$(call AddDepends/rfkill) $(call AddDepends/rfkill)
FILES:= \ FILES:= \
@ -56,7 +60,10 @@ define KernelPackage/bluetooth
$(LINUX_DIR)/net/bluetooth/hidp/hidp.ko \ $(LINUX_DIR)/net/bluetooth/hidp/hidp.ko \
$(LINUX_DIR)/drivers/bluetooth/hci_uart.ko \ $(LINUX_DIR)/drivers/bluetooth/hci_uart.ko \
$(LINUX_DIR)/drivers/bluetooth/btusb.ko \ $(LINUX_DIR)/drivers/bluetooth/btusb.ko \
$(LINUX_DIR)/drivers/bluetooth/btintel.ko $(LINUX_DIR)/drivers/bluetooth/btbcm.ko \
$(LINUX_DIR)/drivers/bluetooth/btqca.ko \
$(LINUX_DIR)/drivers/bluetooth/btintel.ko \
$(LINUX_DIR)/drivers/bluetooth/btmtk.ko@ge5.17
AUTOLOAD:=$(call AutoProbe,bluetooth rfcomm bnep hidp hci_uart btusb) AUTOLOAD:=$(call AutoProbe,bluetooth rfcomm bnep hidp hci_uart btusb)
endef endef
@ -400,6 +407,22 @@ endef
$(eval $(call KernelPackage,sdhci)) $(eval $(call KernelPackage,sdhci))
define KernelPackage/serdev
SUBMENU:=$(OTHER_MENU)
TITLE:=Serial device bus support
KCONFIG:=CONFIG_SERIAL_DEV_BUS
FILES:= \
$(LINUX_DIR)/drivers/tty/serdev/serdev.ko
AUTOLOAD:=$(call AutoProbe,serdev)
endef
define KernelPackage/serdev/description
Kernel support for devices connected via a serial port
endef
$(eval $(call KernelPackage,serdev))
define KernelPackage/rfkill define KernelPackage/rfkill
SUBMENU:=$(OTHER_MENU) SUBMENU:=$(OTHER_MENU)
TITLE:=RF switch subsystem support TITLE:=RF switch subsystem support