Skip to contentSkip to conversation

bluez-utils: Add GATT support

PATCH Superseded Alexandre Belloni 2 participants 2 messages Dec 19, 2013 – Dec 20, 2013

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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      | 4 ++++
 package/bluez_utils/bluez_utils.mk | 7 +++++++
 2 files changed, 11 insertions(+)
package/bluez_utils/Config.in +4 -0
index e08e9be2db95..ebcd526522ba 100644
@@ -36,6 +36,10 @@ config BR2_PACKAGE_BLUEZ_UTILS_USB
 	help
 	  USB support
 
+config BR2_PACKAGE_BLUEZ_UTILS_GATT
+	bool "GATT support"
+	help
+	  GATT support
 endif
 
 comment "bluez-utils needs a toolchain w/ wchar, threads"
package/bluez_utils/bluez_utils.mk +7 -0
index 7038638a0748..f6484ae723af 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 1/1 bluez-utils: Add GATT support

Dear Alexandre Belloni,

package/bluez_utils/Config.in config BR2_PACKAGE_BLUEZ_UTILS_USB · line 40

Quoted 2 lines · Alexandre Belloni
package/bluez_utils/Config.in +2 -0
+config BR2_PACKAGE_BLUEZ_UTILS_GATT
+	bool "GATT support"

You need to select BR2_PACKAGE_READLINE here.

package/bluez_utils/Config.in config BR2_PACKAGE_BLUEZ_UTILS_USB · line 42

Quoted 2 lines
package/bluez_utils/Config.in +2 -0
+	help
+	  GATT support

Maybe it would be nice to say a few words about what GATT is here, since it's not immediately clear what it is.

Quoted 8 lines

endif

comment "bluez-utils needs a toolchain w/ wchar, threads"

package/bluez_utils/bluez_utils.mk +0 -0
index 7038638a0748..f6484ae723af 100644

package/bluez_utils/bluez_utils.mk BLUEZ_UTILS_CONF_OPT += \ · line 45

Quoted 9 lines
package/bluez_utils/bluez_utils.mk +6 -0
@@ -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

Please use spaces after the += operator, and not tabs.

feq ($(BR2_PACKAGE_BLUEZ_UTILS_GATT),y)
BLUEZ_UTILS_DEPENDENCIES += readline
BLUEZ_UTILS_CONF_OPT += --enable-gatt
else
BLUEZ_UTILS_CONF_OPT += --disable-gatt
endif

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com