Skip to contentSkip to conversation

ti-compat-bluetooth: Port ti-compat-bluetooth recipe

PATCH New Franklin S. Cooper Jr 1 participant 1 message Oct 5, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ti-compat-bluetooth: Port ti-compat-bluetooth recipe

* Port ti-compat-bluetooth recipe from arago.
* Ti-compat-bluetooth provides the necessary bluetooth drivers for the TI wl12xx Wi-Fi + Bluetooth module.

---
 ...tooth-2.6-removed-unused-BT-modules-from-.patch |   47 +++++++++++++++++
 ...at-bluetooth-fixing-kernel-panic-in-l2cap.patch |   54 ++++++++++++++++++++
 ...h-Fix-l2cap-conn-failures-for-ssp-devices.patch |   45 ++++++++++++++++
 .../ti-compat-bluetooth/ti-compat-bluetooth_1.0.bb |   38 ++++++++++++++
 4 files changed, 184 insertions(+), 0 deletions(-)
 create mode 100644 recipes-bsp/ti-compat-bluetooth/files/0001-compat-bluetooth-2.6-removed-unused-BT-modules-from-.patch
 create mode 100644 recipes-bsp/ti-compat-bluetooth/files/0001-compat-bluetooth-fixing-kernel-panic-in-l2cap.patch
 create mode 100644 recipes-bsp/ti-compat-bluetooth/files/0002-Bluetooth-Fix-l2cap-conn-failures-for-ssp-devices.patch
 create mode 100644 recipes-bsp/ti-compat-bluetooth/ti-compat-bluetooth_1.0.bb
recipes-bsp/ti-compat-bluetooth/files/0001-compat-bluetooth-2.6-removed-unused-BT-modules-from-.patch new file +47 -0
new file mode 100644
index 0000000..a383e4c
@@ -0,0 +1,47 @@
+From 267cb471c7b182786f58a2a74f3d8bc977cb4527 Mon Sep 17 00:00:00 2001
+From: Vita Preskovsky <[email protected]>
+Date: Thu, 29 Dec 2011 16:09:36 +0200
+Subject: [PATCH] compat-bluetooth-2.6: removed unused BT modules from compilation
+
+  * config.mk is changed to not compile unused BT modules
+
+ Signed-off-by: Vita Preskovsky <[email protected]>
+---
+ config.mk |   10 +++++-----
+ 1 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/config.mk b/config.mk
+index f09d16d..56ac6df 100644
+--- a/config.mk
++++ b/config.mk
+@@ -226,14 +226,14 @@ ifndef CONFIG_COMPAT_KERNEL_2_6_28
+ CONFIG_COMPAT_BT_HIDP=m
+ endif #CONFIG_COMPAT_KERNEL_2_6_28
+
+-CONFIG_BT_HCIUART=M
++CONFIG_BT_HCIUART=m
+ CONFIG_BT_HCIUART_H4=y
+ CONFIG_BT_HCIUART_BCSP=y
+-CONFIG_BT_HCIUART_ATH3K=y
++#CONFIG_BT_HCIUART_ATH3K=y
+ CONFIG_BT_HCIUART_LL=y
+
+ CONFIG_BT_HCIVHCI=m
+-CONFIG_BT_MRVL=m
++#CONFIG_BT_MRVL=m
+
+ ifdef CONFIG_PCMCIA
+ CONFIG_BT_HCIDTL1=m
+@@ -606,8 +606,8 @@ CONFIG_IWM=m
+ # CONFIG_IWM_DEBUG=y
+ # CONFIG_IWM_TRACING=y
+
+-CONFIG_BT_HCIBTSDIO=m
+-CONFIG_BT_MRVL_SDIO=m
++#CONFIG_BT_HCIBTSDIO=m
++#CONFIG_BT_MRVL_SDIO=m
+
+ ifndef CONFIG_COMPAT_KERNEL_2_6_27
+ CONFIG_ATH6KL=m
+--
+1.7.0.4
recipes-bsp/ti-compat-bluetooth/files/0001-compat-bluetooth-fixing-kernel-panic-in-l2cap.patch new file +54 -0

54 lines not on this page · raw message

recipes-bsp/ti-compat-bluetooth/files/0002-Bluetooth-Fix-l2cap-conn-failures-for-ssp-devices.patch new file +45 -0

45 lines not on this page · raw message

recipes-bsp/ti-compat-bluetooth/ti-compat-bluetooth_1.0.bb new file +38 -0
new file mode 100644
index 0000000..6d6b1ba
@@ -0,0 +1,38 @@
+DESCRIPTION = "TI compat-bluetooth drivers"
+HOMEPAGE = "https://gforge.ti.com/gf/project/ecs_nlcp/"
+SECTION = "kernel/modules"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=d7810fab7487fb0aad327b76f1be7cd7"
+
+inherit module
+
+RDEPENDS = "ti-compat-wireless-wl12xx"
+
+MACHINE_KERNEL_PR_append = "a"
+
+COMPAT_BLUETOOTH_VERSION = "2012-05-22-r5-18"
+TAG = "${@'${COMPAT_BLUETOOTH_VERSION}'.replace('-', '')}"
+PV = "0.${TAG}"
+
+SRC_URI = "https://gforge.ti.com/gf/download/frsrelease/865/5622/compat-bluetooth-wl12xx-2012-05-22-r5-18.tgz \
+           file://0001-compat-bluetooth-2.6-removed-unused-BT-modules-from-.patch \
+           file://0002-Bluetooth-Fix-l2cap-conn-failures-for-ssp-devices.patch \
+           file://0001-compat-bluetooth-fixing-kernel-panic-in-l2cap.patch \
+          "
+
+SRC_URI[md5sum] = "85118756a605ebd8f4fbff19995368a6"
+SRC_URI[sha256sum] = "d250a6447de54f0776a12ca604bf2a2a48b022108b699de5008f48462e535393"
+
+S = "${WORKDIR}/compat-bluetooth/"
+
+EXTRA_OEMAKE = "KLIB_BUILD=${STAGING_KERNEL_DIR} KLIB=${D}"
+
+do_configure() {
+	cd ${S}
+        ./scripts/driver-select bt
+}
+
+do_install() {
+	oe_runmake DEPMOD=echo DESTDIR="${D}" INSTALL_MOD_PATH="${D}" LDFLAGS="" install-modules
+	find ${D} -name compat.ko | xargs rm
+}
Signature · 1 line
1.7.0.4