bluez-utils: Add GATT support
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
@@ -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
@@ -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
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
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 += readlineBLUEZ_UTILS_CONF_OPT += --enable-gatt
elseBLUEZ_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