summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/bluez_utils/Config.in7
-rw-r--r--package/bluez_utils/bluez_utils.mk7
2 files changed, 14 insertions, 0 deletions
diff --git a/package/bluez_utils/Config.in b/package/bluez_utils/Config.in
index e08e9be2db..1315b9ef41 100644
--- a/package/bluez_utils/Config.in
+++ b/package/bluez_utils/Config.in
@@ -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"
diff --git a/package/bluez_utils/bluez_utils.mk b/package/bluez_utils/bluez_utils.mk
index 7038638a07..4da2e6435c 100644
--- a/package/bluez_utils/bluez_utils.mk
+++ b/package/bluez_utils/bluez_utils.mk
@@ -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
OpenPOWER on IntegriCloud