* [Buildroot] [PATCH] bluez5_utils: fix build of gatttool
@ 2017-05-01 6:28 Baruch Siach
2017-05-01 7:21 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: Baruch Siach @ 2017-05-01 6:28 UTC (permalink / raw)
To: buildroot
Since BlueZ 5.44 gatttool is hidden behind the --enable-deprecated configure
option.
Also, update the help text with the new status of gatttool.
Fixes:
http://autobuild.buildroot.net/results/ddb/ddb975c9e1475fee1da63cb21240d8d59b161076/
http://autobuild.buildroot.net/results/19a/19adc0aa5a7e48119ef4ba25ba0403867f74f678/
http://autobuild.buildroot.net/results/9bd/9bd8e13ddffdd0631ddca30ec40cc4664729b0cb/
Cc: Marcin Bis <marcin@bis.org.pl>
Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
package/bluez5_utils/Config.in | 5 ++---
package/bluez5_utils/bluez5_utils.mk | 1 +
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/package/bluez5_utils/Config.in b/package/bluez5_utils/Config.in
index 3611c6971a6d..43771c026438 100644
--- a/package/bluez5_utils/Config.in
+++ b/package/bluez5_utils/Config.in
@@ -54,10 +54,9 @@ config BR2_PACKAGE_BLUEZ5_UTILS_GATTTOOL
help
Generic Attribute Profile (GATT) support. This provides
profile discovery and description services for Bluetooth Low
- Energy. This will install the gatttool utility.
+ Energy. This will build and install the gatttool utility.
- It is always built with BlueZ 5.x, but upstream choose not
- to install it by default.
+ The gatttool is deprecated.
config BR2_PACKAGE_BLUEZ5_UTILS_EXPERIMENTAL
bool "build experimental plugins"
diff --git a/package/bluez5_utils/bluez5_utils.mk b/package/bluez5_utils/bluez5_utils.mk
index aaefcb6ace9b..e5482455d283 100644
--- a/package/bluez5_utils/bluez5_utils.mk
+++ b/package/bluez5_utils/bluez5_utils.mk
@@ -51,6 +51,7 @@ define BLUEZ5_UTILS_INSTALL_GATTTOOL
$(INSTALL) -D -m 0755 $(@D)/attrib/gatttool $(TARGET_DIR)/usr/bin/gatttool
endef
BLUEZ5_UTILS_POST_INSTALL_TARGET_HOOKS += BLUEZ5_UTILS_INSTALL_GATTTOOL
+BLUEZ5_UTILS_CONF_OPTS += --enable-deprecated
endif
# enable test
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] bluez5_utils: fix build of gatttool
2017-05-01 6:28 [Buildroot] [PATCH] bluez5_utils: fix build of gatttool Baruch Siach
@ 2017-05-01 7:21 ` Thomas Petazzoni
2017-05-01 7:38 ` Baruch Siach
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2017-05-01 7:21 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 1 May 2017 09:28:27 +0300, Baruch Siach wrote:
> Since BlueZ 5.44 gatttool is hidden behind the --enable-deprecated configure
> option.
>
> Also, update the help text with the new status of gatttool.
>
> Fixes:
> http://autobuild.buildroot.net/results/ddb/ddb975c9e1475fee1da63cb21240d8d59b161076/
> http://autobuild.buildroot.net/results/19a/19adc0aa5a7e48119ef4ba25ba0403867f74f678/
> http://autobuild.buildroot.net/results/9bd/9bd8e13ddffdd0631ddca30ec40cc4664729b0cb/
>
> Cc: Marcin Bis <marcin@bis.org.pl>
> Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
We have lots of patches pending on bluez5_utils, to solve this issue
and others. It's not clear what is the overall plan, as all the patches
have been sent separately (i.e not in a series).
See
https://patchwork.ozlabs.org/project/buildroot/list/?submitter=&state=&q=bluez&archive=&delegate=.
Essentially, your patch is the third one to solve the gattool problem.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] bluez5_utils: fix build of gatttool
2017-05-01 7:21 ` Thomas Petazzoni
@ 2017-05-01 7:38 ` Baruch Siach
0 siblings, 0 replies; 3+ messages in thread
From: Baruch Siach @ 2017-05-01 7:38 UTC (permalink / raw)
To: buildroot
Hi Thomas,
On Mon, May 01, 2017 at 09:21:42AM +0200, Thomas Petazzoni wrote:
> On Mon, 1 May 2017 09:28:27 +0300, Baruch Siach wrote:
> > Since BlueZ 5.44 gatttool is hidden behind the --enable-deprecated configure
> > option.
> >
> > Also, update the help text with the new status of gatttool.
> >
> > Fixes:
> > http://autobuild.buildroot.net/results/ddb/ddb975c9e1475fee1da63cb21240d8d59b161076/
> > http://autobuild.buildroot.net/results/19a/19adc0aa5a7e48119ef4ba25ba0403867f74f678/
> > http://autobuild.buildroot.net/results/9bd/9bd8e13ddffdd0631ddca30ec40cc4664729b0cb/
> >
> > Cc: Marcin Bis <marcin@bis.org.pl>
> > Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
> > Signed-off-by: Baruch Siach <baruch@tkos.co.il>
>
> We have lots of patches pending on bluez5_utils, to solve this issue
> and others. It's not clear what is the overall plan, as all the patches
> have been sent separately (i.e not in a series).
>
> See
> https://patchwork.ozlabs.org/project/buildroot/list/?submitter=&state=&q=bluez&archive=&delegate=.
>
> Essentially, your patch is the third one to solve the gattool problem.
This patch is essentially equivalent to that of Bernd[1], expect that is also
updates the help text.
I think Andy's suggestion[2] is better than both, but it needs some more work
to address Peter's comments, and maybe split into separate tools and plugins
patches. I also think that we should group all deprecated tools together, and
replace the BR2_PACKAGE_BLUEZ5_UTILS_GATTTOOL option with
BR2_PACKAGE_BLUEZ5_UTILS_DEPRECATED.
I don't think we should remove gatttool installation as Sam suggests[3]. E.g.
the hciattach tool is also deprecated upstream, but it is unfortunately still
required for many real world Bluetooth installations.
I'll take over Andy's patch as time permits.
[1] https://patchwork.ozlabs.org/patch/736377/
[2] https://patchwork.ozlabs.org/patch/741645/
[3] https://patchwork.ozlabs.org/patch/748801/
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-01 7:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-01 6:28 [Buildroot] [PATCH] bluez5_utils: fix build of gatttool Baruch Siach
2017-05-01 7:21 ` Thomas Petazzoni
2017-05-01 7:38 ` Baruch Siach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox