Browse Source

bluetooth: some broadcom USB bt devces need this, move firmware to brcm subfolder

Waldemar Brodkorb 7 years ago
parent
commit
3f5df9f7d1
2 changed files with 11 additions and 3 deletions
  1. 3 3
      package/brcm-bluetooth/Makefile
  2. 8 0
      target/linux/config/Config.in.bluetooth

+ 3 - 3
package/brcm-bluetooth/Makefile

@@ -5,7 +5,7 @@ include ${ADK_TOPDIR}/rules.mk
 
 PKG_NAME:=		brcm-bluetooth
 PKG_VERSION:=		1.0
-PKG_RELEASE:=		2
+PKG_RELEASE:=		3
 PKG_DESCR:=		firmware for broadcom bluetooth chips
 PKG_SECTION:=		sys/firmware
 PKG_DEPENDS:=		bluez
@@ -27,11 +27,11 @@ do-build:
 do-install:
 	${INSTALL_DIR} ${IDIR_BRCM_BLUETOOTH}/etc/init.d
 	$(INSTALL_BIN) ./files/hci $(IDIR_BRCM_BLUETOOTH)/etc/init.d/
-	${INSTALL_DIR} ${IDIR_BRCM_BLUETOOTH}/lib/firmware
+	${INSTALL_DIR} ${IDIR_BRCM_BLUETOOTH}/lib/firmware/brcm
 ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI3),y)
 	${CP} ${WRKBUILD}/BCM43430A1.hcd ${IDIR_BRCM_BLUETOOTH}/lib/firmware
 else
-	${CP} ${WRKBUILD}/*.hcd ${IDIR_BRCM_BLUETOOTH}/lib/firmware
+	${CP} ${WRKBUILD}/*.hcd ${IDIR_BRCM_BLUETOOTH}/lib/firmware/brcm
 	${INSTALL_DIR} ${IDIR_BRCM_BLUETOOTH}/sbin
 	${INSTALL_BIN} ${WRKBUILD}/brcm_patchram \
 		${IDIR_BRCM_BLUETOOTH}/sbin/brcm_patchram

+ 8 - 0
target/linux/config/Config.in.bluetooth

@@ -103,6 +103,14 @@ config ADK_KERNEL_BT_HCIBTUSB
 	  This driver is required if you want to use Bluetooth devices with
 	  USB interface.
 
+config ADK_KERNEL_BT_HCIBTUSB_BCM
+	tristate "Broadcom protocol support"
+	depends on ADK_KERNEL_BT_HCIBTUSB
+	select ADK_KERNEL_BT_BCM
+	help
+	  The Broadcom protocol support enables firmware and patchram
+	  download support for Broadcom Bluetooth controllers.
+
 config ADK_KERNEL_BT_HCIUART
 	tristate "HCI UART driver"
 	select ADK_KERNEL_BT