* [Buildroot] [PATCH] bluez-utils: Add GATT support
@ 2013-12-19 19:28 Alexandre Belloni
2013-12-20 9:54 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Alexandre Belloni @ 2013-12-19 19:28 UTC (permalink / raw)
To: buildroot
This allows to compile gatttool which can help use Bluetooth Low Energy
devices.
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
package/bluez_utils/Config.in | 4 ++++
package/bluez_utils/bluez_utils.mk | 7 +++++++
2 files changed, 11 insertions(+)
diff --git a/package/bluez_utils/Config.in b/package/bluez_utils/Config.in
index e08e9be2db95..ebcd526522ba 100644
--- a/package/bluez_utils/Config.in
+++ b/package/bluez_utils/Config.in
@@ -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"
diff --git a/package/bluez_utils/bluez_utils.mk b/package/bluez_utils/bluez_utils.mk
index 7038638a0748..f6484ae723af 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
--
1.8.3.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] bluez-utils: Add GATT support
2013-12-19 19:28 [Buildroot] [PATCH] bluez-utils: Add GATT support Alexandre Belloni
@ 2013-12-20 9:54 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2013-12-20 9:54 UTC (permalink / raw)
To: buildroot
Dear Alexandre Belloni,
On Thu, 19 Dec 2013 20:28:26 +0100, Alexandre Belloni wrote:
> +config BR2_PACKAGE_BLUEZ_UTILS_GATT
> + bool "GATT support"
You need to select BR2_PACKAGE_READLINE here.
> + 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.
> 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 7038638a0748..f6484ae723af 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
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
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-12-20 9:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-19 19:28 [Buildroot] [PATCH] bluez-utils: Add GATT support Alexandre Belloni
2013-12-20 9:54 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox