Skip to contentSkip to conversation

bluez-utils: Add GATT support

PATCH New Alexandre Belloni 2 participants 2 messages Dec 20, 2013

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 bluez-utils: Add GATT support

This allows to compile gatttool which can help use Bluetooth Low Energy devices.

---
 package/bluez_utils/Config.in      | 7 +++++++
 package/bluez_utils/bluez_utils.mk | 7 +++++++
 2 files changed, 14 insertions(+)
package/bluez_utils/Config.in +7 -0
index e08e9be2db95..1315b9ef4166 100644
@@ -36,6 +36,13 @@ config BR2_PACKAGE_BLUEZ_UTILS_USB
 	help
 	  USB support
 
+config BR2_PACKAGE_BLUEZ_UTILS_GATT
+	bool "GATT support"
+	select BR2_PACKAGE_READLINE
+	help
+	  Generic Attribute Profile (GATT) support. This provides profile
+	  discovery and description services for Bluetooth Low Energy.
+	  This will install the gatttool utility.
 endif
 
 comment "bluez-utils needs a toolchain w/ wchar, threads"
package/bluez_utils/bluez_utils.mk +7 -0
index 7038638a0748..4da2e6435c40 100644
@@ -37,6 +37,13 @@ BLUEZ_UTILS_CONF_OPT +=	\
 	--disable-audio
 endif
 
+ifeq ($(BR2_PACKAGE_BLUEZ_UTILS_GATT),y)
+BLUEZ_UTILS_DEPENDENCIES += readline
+BLUEZ_UTILS_CONF_OPT += --enable-gatt
+else
+BLUEZ_UTILS_CONF_OPT += --disable-gatt
+endif
+
 # USB support
 ifeq ($(BR2_PACKAGE_BLUEZ_UTILS_USB),y)
 BLUEZ_UTILS_DEPENDENCIES += libusb
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH v2 1/1 bluez-utils: Add GATT support

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Alexandre" == Alexandre Belloni <[email protected]> writes:

This allows to compile gatttool which can help use Bluetooth Low Energy devices.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard