bluetooth.mk 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. #
  2. # Copyright (C) 2006-2025 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. BLUETOOTH_MENU:=Bluetooth Support
  8. define KernelPackage/bluetooth
  9. SUBMENU:=$(BLUETOOTH_MENU)
  10. TITLE:=Bluetooth support
  11. DEPENDS:=+kmod-crypto-hash +kmod-crypto-ecb +kmod-lib-crc16 +kmod-hid +kmod-crypto-cmac +kmod-regmap-core +kmod-crypto-ecdh
  12. KCONFIG:= \
  13. CONFIG_BT \
  14. CONFIG_BT_BREDR=y \
  15. CONFIG_BT_DEBUGFS=n \
  16. CONFIG_BT_LE=y \
  17. CONFIG_BT_RFCOMM \
  18. CONFIG_BT_BNEP \
  19. CONFIG_BT_HIDP
  20. $(call AddDepends/rfkill)
  21. FILES:= \
  22. $(LINUX_DIR)/net/bluetooth/bluetooth.ko \
  23. $(LINUX_DIR)/net/bluetooth/rfcomm/rfcomm.ko \
  24. $(LINUX_DIR)/net/bluetooth/bnep/bnep.ko \
  25. $(LINUX_DIR)/net/bluetooth/hidp/hidp.ko
  26. AUTOLOAD:=$(call AutoProbe,bluetooth rfcomm bnep hidp)
  27. endef
  28. define KernelPackage/bluetooth/description
  29. Kernel support for Bluetooth devices
  30. endef
  31. $(eval $(call KernelPackage,bluetooth))
  32. define KernelPackage/hci-uart
  33. SUBMENU:=$(BLUETOOTH_MENU)
  34. TITLE:=Bluetooth HCI UART support
  35. DEPENDS:=+kmod-bluetooth
  36. KCONFIG:= \
  37. CONFIG_BT_HCIUART \
  38. CONFIG_BT_HCIUART_BCM=n \
  39. CONFIG_BT_HCIUART_INTEL=n \
  40. CONFIG_BT_HCIUART_H4 \
  41. CONFIG_BT_HCIUART_NOKIA=n
  42. FILES:= \
  43. $(LINUX_DIR)/drivers/bluetooth/hci_uart.ko
  44. AUTOLOAD:=$(call AutoProbe,hci_uart)
  45. endef
  46. define KernelPackage/hci-uart/description
  47. Kernel support for Bluetooth HCI UART devices
  48. endef
  49. $(eval $(call KernelPackage,hci-uart))
  50. define KernelPackage/btusb
  51. SUBMENU:=$(BLUETOOTH_MENU)
  52. TITLE:=Bluetooth HCI USB support
  53. DEPENDS:=@USB_SUPPORT +kmod-usb-core +kmod-bluetooth +kmod-btmtk
  54. KCONFIG:= \
  55. CONFIG_BT_HCIBTUSB \
  56. CONFIG_BT_HCIBTUSB_BCM=n \
  57. CONFIG_BT_HCIBTUSB_MTK=y \
  58. CONFIG_BT_HCIBTUSB_RTL=y
  59. FILES:= \
  60. $(LINUX_DIR)/drivers/bluetooth/btusb.ko \
  61. $(LINUX_DIR)/drivers/bluetooth/btintel.ko \
  62. $(LINUX_DIR)/drivers/bluetooth/btrtl.ko
  63. AUTOLOAD:=$(call AutoProbe,btusb)
  64. endef
  65. define KernelPackage/btusb/description
  66. Kernel support for USB Bluetooth HCI USB devices
  67. endef
  68. $(eval $(call KernelPackage,btusb))
  69. define KernelPackage/btmtk
  70. SUBMENU:=$(BLUETOOTH_MENU)
  71. TITLE:=MTK Bluetooth support
  72. HIDDEN:=1
  73. DEPENDS:=+kmod-bluetooth +USB_SUPPORT:kmod-usb-core
  74. KCONFIG:=CONFIG_BT_MTK
  75. FILES:=$(LINUX_DIR)/drivers/bluetooth/btmtk.ko
  76. endef
  77. $(eval $(call KernelPackage,btmtk))
  78. define KernelPackage/ath3k
  79. SUBMENU:=$(BLUETOOTH_MENU)
  80. TITLE:=ATH3K Kernel Module support
  81. DEPENDS:=+kmod-hci-uart +kmod-btusb +ar3k-firmware
  82. KCONFIG:= \
  83. CONFIG_BT_ATH3K \
  84. CONFIG_BT_HCIUART_ATH3K=y
  85. FILES:= \
  86. $(LINUX_DIR)/drivers/bluetooth/ath3k.ko
  87. AUTOLOAD:=$(call AutoProbe,ath3k)
  88. endef
  89. define KernelPackage/ath3k/description
  90. Kernel support for ATH3K Module
  91. endef
  92. $(eval $(call KernelPackage,ath3k))
  93. define KernelPackage/bluetooth-6lowpan
  94. SUBMENU:=$(BLUETOOTH_MENU)
  95. TITLE:=Bluetooth 6LoWPAN support
  96. DEPENDS:=+kmod-6lowpan +kmod-bluetooth
  97. KCONFIG:=CONFIG_BT_6LOWPAN
  98. FILES:=$(LINUX_DIR)/net/bluetooth/bluetooth_6lowpan.ko
  99. AUTOLOAD:=$(call AutoProbe,bluetooth_6lowpan)
  100. endef
  101. define KernelPackage/bluetooth-6lowpan/description
  102. Kernel support for 6LoWPAN over Bluetooth Low Energy devices
  103. endef
  104. $(eval $(call KernelPackage,bluetooth-6lowpan))
  105. define KernelPackage/btmrvl
  106. SUBMENU:=$(BLUETOOTH_MENU)
  107. TITLE:=Marvell Bluetooth Kernel Module support
  108. DEPENDS:=+kmod-mmc +kmod-bluetooth +mwifiex-sdio-firmware
  109. KCONFIG:= \
  110. CONFIG_BT_MRVL \
  111. CONFIG_BT_MRVL_SDIO
  112. FILES:= \
  113. $(LINUX_DIR)/drivers/bluetooth/btmrvl.ko \
  114. $(LINUX_DIR)/drivers/bluetooth/btmrvl_sdio.ko
  115. AUTOLOAD:=$(call AutoProbe,btmrvl btmrvl_sdio)
  116. endef
  117. define KernelPackage/btmrvl/description
  118. Kernel support for Marvell SDIO Bluetooth Module
  119. endef
  120. $(eval $(call KernelPackage,btmrvl))
  121. define KernelPackage/btsdio
  122. SUBMENU:=$(BLUETOOTH_MENU)
  123. TITLE:=Bluetooth HCI SDIO driver
  124. DEPENDS:=+kmod-bluetooth +kmod-mmc
  125. KCONFIG:= \
  126. CONFIG_BT_HCIBTSDIO
  127. FILES:= \
  128. $(LINUX_DIR)/drivers/bluetooth/btsdio.ko
  129. AUTOLOAD:=$(call AutoProbe,btsdio)
  130. endef
  131. define KernelPackage/btsdio/description
  132. Kernel support for Bluetooth device with SDIO interface
  133. endef
  134. $(eval $(call KernelPackage,btsdio))