Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/3] Miscellaneous bluez patches
@ 2014-11-26 19:44 Peter A. Bigot
  2014-11-26 19:44 ` [PATCH 1/3] bluez-hcidump: select provider as bluez4 or bluez5 Peter A. Bigot
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Peter A. Bigot @ 2014-11-26 19:44 UTC (permalink / raw)
  To: openembedded-core

These resolve the conflict for provider of hcidump between bluez4 and
bluez5, provide a new package containing the useful tools in bluez5 that
upstream doesn't think should be installed, and provides a mechanism for
enabling the experimental features such as the new GATT interface.

The following changes since commit ab63640fad50954b0440ab107c96dbd3f919ea4d:

  gdk-pixbuf: use ptest-gnome (2014-11-25 13:03:30 +0000)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib pabigot/bluez5
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=pabigot/bluez5

Peter A. Bigot (3):
  bluez-hcidump: select provider as bluez4 or bluez5
  bluez5: add a package for tools left in the build area
  bluez5: support experimental through PACKAGECONFIG

 meta/conf/distro/include/default-providers.inc     |  1 +
 .../bluez/bluez-hcidump_2.5.bb                     |  2 +
 meta/recipes-connectivity/bluez5/bluez5.inc        | 29 +++++++++++++-
 meta/recipes-connectivity/bluez5/bluez5_5.25.bb    | 46 ++++++++++++++++++++++
 4 files changed, 77 insertions(+), 1 deletion(-)

-- 
1.8.5.5



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/3] bluez-hcidump: select provider as bluez4 or bluez5
  2014-11-26 19:44 [PATCH 0/3] Miscellaneous bluez patches Peter A. Bigot
@ 2014-11-26 19:44 ` Peter A. Bigot
  2014-11-26 19:44 ` [PATCH 2/3] bluez5: add a package for tools left in the build area Peter A. Bigot
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Peter A. Bigot @ 2014-11-26 19:44 UTC (permalink / raw)
  To: openembedded-core

bluez-hcidump was a separate package in bluez4, but was integrated into
bluez5.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
---
 meta/conf/distro/include/default-providers.inc       | 1 +
 meta/recipes-connectivity/bluez/bluez-hcidump_2.5.bb | 2 ++
 meta/recipes-connectivity/bluez5/bluez5.inc          | 2 ++
 3 files changed, 5 insertions(+)

diff --git a/meta/conf/distro/include/default-providers.inc b/meta/conf/distro/include/default-providers.inc
index e15794f..4dc42a7 100644
--- a/meta/conf/distro/include/default-providers.inc
+++ b/meta/conf/distro/include/default-providers.inc
@@ -44,6 +44,7 @@ PREFERRED_PROVIDER_udev ?= "${@bb.utils.contains('DISTRO_FEATURES','systemd','sy
 # There are issues with runtime packages and PREFERRED_PROVIDER, see YOCTO #5044 for details
 # on this rather strange entry.
 PREFERRED_PROVIDER_bluez4 ?= "bluez4"
+PREFERRED_PROVIDER_bluez-hcidump ?= "bluez-hcidump"
 # Alternative is ltp-ddt in meta-oe: meta-oe/recipes-devtools/ltp-ddt/ltp-ddt_0.0.4.bb
 PREFERRED_PROVIDER_ltp ?= "ltp"
 PREFERRED_PROVIDER_getopt ?= "util-linux-getopt"
diff --git a/meta/recipes-connectivity/bluez/bluez-hcidump_2.5.bb b/meta/recipes-connectivity/bluez/bluez-hcidump_2.5.bb
index 5c1f476..3950630 100644
--- a/meta/recipes-connectivity/bluez/bluez-hcidump_2.5.bb
+++ b/meta/recipes-connectivity/bluez/bluez-hcidump_2.5.bb
@@ -3,7 +3,9 @@ DESCRIPTION = "The hcidump tool reads raw HCI data coming from and going to a Bl
 and displays the commands, events and data in a human-readable form."
 
 SECTION = "console"
+# hcidump was integrated into bluez5
 DEPENDS = "bluez4"
+RCONFLICTS_${PN} = "bluez5"
 LICENSE = "GPLv2+"
 LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
                     file://src/hcidump.c;beginline=1;endline=23;md5=3bee3a162dff43a5be7470710b99fbcf"
diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc
index 28c014f..f782528 100644
--- a/meta/recipes-connectivity/bluez5/bluez5.inc
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -7,6 +7,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e \
                     file://COPYING.LIB;md5=fb504b67c50331fc78734fed90fb0e09 \
                     file://src/main.c;beginline=1;endline=24;md5=9bc54b93cd7e17bf03f52513f39f926e"
 DEPENDS = "udev libusb dbus-glib glib-2.0 libcheck readline"
+PROVIDES += "bluez-hcidump"
+RPROVIDES_${PN} += "bluez-hcidump"
 
 RCONFLICTS_${PN} = "bluez4"
 
-- 
1.8.5.5



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/3] bluez5: add a package for tools left in the build area
  2014-11-26 19:44 [PATCH 0/3] Miscellaneous bluez patches Peter A. Bigot
  2014-11-26 19:44 ` [PATCH 1/3] bluez-hcidump: select provider as bluez4 or bluez5 Peter A. Bigot
@ 2014-11-26 19:44 ` Peter A. Bigot
  2014-11-26 19:44 ` [PATCH 3/3] bluez5: support experimental through PACKAGECONFIG Peter A. Bigot
  2014-12-05  0:30 ` [PATCH 0/3] Miscellaneous bluez patches Peter A. Bigot
  3 siblings, 0 replies; 6+ messages in thread
From: Peter A. Bigot @ 2014-11-26 19:44 UTC (permalink / raw)
  To: openembedded-core

In bluez4 gatttool was provided as a command-line interface to the
Generic Attribute Profile.  In bluez5 this tool is still built but is no
longer installed.  It is still necessary for those wishing to use GATT
since the programmatic API is not yet mature.  A variety of other useful
tools are treated similarly by bluez5.

Make these tools available in the bluez5-noinst-tools package, in a way
that allows control over which tools are packaged, with the default
being all that are provided in a particular release of bluez.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
---
 meta/recipes-connectivity/bluez5/bluez5.inc     | 26 +++++++++++++-
 meta/recipes-connectivity/bluez5/bluez5_5.25.bb | 46 +++++++++++++++++++++++++
 2 files changed, 71 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc
index f782528..d9b6492 100644
--- a/meta/recipes-connectivity/bluez5/bluez5.inc
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -32,6 +32,15 @@ EXTRA_OECONF = "\
   --enable-library \
 "
 
+# bluez5 builds a large number of useful utilities but does not
+# install them.  Specify which ones we want put into ${PN}-noinst-tools.
+NOINST_TOOLS_READLINE ??= ""
+NOINST_TOOLS_EXPERIMENTAL ??= ""
+NOINST_TOOLS = " \
+    ${NOINST_TOOLS_READLINE} \
+    ${@bb.utils.contains('PACKAGECONFIG', 'experimental', '${NOINST_TOOLS_EXPERIMENTAL}', '', d)} \
+"
+
 do_install_append() {
 	install -d ${D}${sysconfdir}/bluetooth/
 	if [ -f ${S}/profiles/audio/audio.conf ]; then
@@ -45,10 +54,15 @@ do_install_append() {
 	fi
 	# at_console doesn't really work with the current state of OE, so punch some more holes so people can actually use BT
 	install -m 0644 ${WORKDIR}/bluetooth.conf ${D}/${sysconfdir}/dbus-1/system.d/
+
+	# Install desired tools that upstream leaves in build area
+        for f in ${NOINST_TOOLS} ; do
+	    install -m 755 ${B}/$f ${D}/${bindir}
+	done
 }
 
 ALLOW_EMPTY_libasound-module-bluez = "1"
-PACKAGES =+ "libasound-module-bluez ${PN}-testtools ${PN}-obex"
+PACKAGES =+ "libasound-module-bluez ${PN}-testtools ${PN}-obex ${PN}-noinst-tools"
 
 FILES_libasound-module-bluez = "${libdir}/alsa-lib/lib*.so ${datadir}/alsa"
 FILES_${PN} += "${libdir}/bluetooth/plugins ${libdir}/bluetooth/plugins/*.so ${base_libdir}/udev/ ${nonarch_base_libdir}/udev/ ${systemd_unitdir}/ ${datadir}/dbus-1"
@@ -65,6 +79,16 @@ SYSTEMD_SERVICE_${PN}-obex = "obex.service"
 
 FILES_${PN}-testtools = "${libdir}/bluez/test/*"
 
+def get_noinst_tools_paths (d, bb, tools):
+    s = list()
+    bindir = d.getVar("bindir", True)
+    for bdp in tools.split():
+        f = os.path.basename(bdp)
+        s.append("%s/%s" % (bindir, f))
+    return "\n".join(s)
+
+FILES_${PN}-noinst-tools = "${@get_noinst_tools_paths(d, bb, d.getVar('NOINST_TOOLS', True))}"
+
 FILES_${PN}-dbg += "\
   ${libdir}/${BPN}/bluetooth/.debug \
   ${libdir}/bluetooth/plugins/.debug \
diff --git a/meta/recipes-connectivity/bluez5/bluez5_5.25.bb b/meta/recipes-connectivity/bluez5/bluez5_5.25.bb
index ec58857..7d06b16 100644
--- a/meta/recipes-connectivity/bluez5/bluez5_5.25.bb
+++ b/meta/recipes-connectivity/bluez5/bluez5_5.25.bb
@@ -2,3 +2,49 @@ require bluez5.inc
 SRC_URI[md5sum] = "41bd0c915abde255622150ce6dcae67b"
 SRC_URI[sha256sum] = "5ca62f3f45e2638a0f7a81658d6c8813ee01487436ae8e53e9fe395e23d1fd30"
 
+# noinst programs in Makefile.tools that are conditional on READLINE
+# support
+NOINST_TOOLS_READLINE ?= " \
+    attrib/gatttool \
+    tools/obex-client-tool \
+    tools/obex-server-tool \
+    tools/bluetooth-player \
+    tools/obexctl \
+"
+
+# noinst programs in Makefile.tools that are conditional on EXPERIMENTAL
+# support
+NOINST_TOOLS_EXPERIMENTAL ?= " \
+    emulator/btvirt \
+    emulator/b1ee \
+    emulator/hfp \
+    tools/3dsp \
+    tools/mgmt-tester \
+    tools/gap-tester \
+    tools/l2cap-tester \
+    tools/sco-tester \
+    tools/smp-tester \
+    tools/hci-tester \
+    tools/rfcomm-tester \
+    tools/bdaddr \
+    tools/avinfo \
+    tools/avtest \
+    tools/scotest \
+    tools/amptest \
+    tools/hwdb \
+    tools/hcieventmask \
+    tools/hcisecfilter \
+    tools/btmgmt \
+    tools/btinfo \
+    tools/btattach \
+    tools/btsnoop \
+    tools/btproxy \
+    tools/btiotest \
+    tools/cltest \
+    tools/seq2bseq \
+    tools/hex2hcd \
+    tools/ibeacon \
+    tools/btgatt-client \
+    tools/gatt-service \
+    profiles/iap/iapd \
+"
-- 
1.8.5.5



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/3] bluez5: support experimental through PACKAGECONFIG
  2014-11-26 19:44 [PATCH 0/3] Miscellaneous bluez patches Peter A. Bigot
  2014-11-26 19:44 ` [PATCH 1/3] bluez-hcidump: select provider as bluez4 or bluez5 Peter A. Bigot
  2014-11-26 19:44 ` [PATCH 2/3] bluez5: add a package for tools left in the build area Peter A. Bigot
@ 2014-11-26 19:44 ` Peter A. Bigot
  2014-12-05  0:30 ` [PATCH 0/3] Miscellaneous bluez patches Peter A. Bigot
  3 siblings, 0 replies; 6+ messages in thread
From: Peter A. Bigot @ 2014-11-26 19:44 UTC (permalink / raw)
  To: openembedded-core

Make it simple to enable the experimental plugins and tools.

Signed-off-by: Peter A. Bigot <pab@pabigot.com>
---
 meta/recipes-connectivity/bluez5/bluez5.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc
index d9b6492..67aafbb 100644
--- a/meta/recipes-connectivity/bluez5/bluez5.inc
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -14,6 +14,7 @@ RCONFLICTS_${PN} = "bluez4"
 
 PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} obex-profiles"
 PACKAGECONFIG[obex-profiles] = "--enable-obex,--disable-obex,libical"
+PACKAGECONFIG[experimental] = "--enable-experimental,--disable-experimental,"
 
 SRC_URI = "\
     ${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \
-- 
1.8.5.5



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/3] Miscellaneous bluez patches
  2014-11-26 19:44 [PATCH 0/3] Miscellaneous bluez patches Peter A. Bigot
                   ` (2 preceding siblings ...)
  2014-11-26 19:44 ` [PATCH 3/3] bluez5: support experimental through PACKAGECONFIG Peter A. Bigot
@ 2014-12-05  0:30 ` Peter A. Bigot
  2014-12-05 23:13   ` Burton, Ross
  3 siblings, 1 reply; 6+ messages in thread
From: Peter A. Bigot @ 2014-12-05  0:30 UTC (permalink / raw)
  To: openembedded-core

Ping.  These are independent of the RFC patches.

On 11/26/2014 01:44 PM, Peter A. Bigot wrote:
> These resolve the conflict for provider of hcidump between bluez4 and
> bluez5, provide a new package containing the useful tools in bluez5 that
> upstream doesn't think should be installed, and provides a mechanism for
> enabling the experimental features such as the new GATT interface.
>
> The following changes since commit ab63640fad50954b0440ab107c96dbd3f919ea4d:
>
>    gdk-pixbuf: use ptest-gnome (2014-11-25 13:03:30 +0000)
>
> are available in the git repository at:
>
>    git://git.yoctoproject.org/poky-contrib pabigot/bluez5
>    http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=pabigot/bluez5
>
> Peter A. Bigot (3):
>    bluez-hcidump: select provider as bluez4 or bluez5
>    bluez5: add a package for tools left in the build area
>    bluez5: support experimental through PACKAGECONFIG
>
>   meta/conf/distro/include/default-providers.inc     |  1 +
>   .../bluez/bluez-hcidump_2.5.bb                     |  2 +
>   meta/recipes-connectivity/bluez5/bluez5.inc        | 29 +++++++++++++-
>   meta/recipes-connectivity/bluez5/bluez5_5.25.bb    | 46 ++++++++++++++++++++++
>   4 files changed, 77 insertions(+), 1 deletion(-)
>



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/3] Miscellaneous bluez patches
  2014-12-05  0:30 ` [PATCH 0/3] Miscellaneous bluez patches Peter A. Bigot
@ 2014-12-05 23:13   ` Burton, Ross
  0 siblings, 0 replies; 6+ messages in thread
From: Burton, Ross @ 2014-12-05 23:13 UTC (permalink / raw)
  To: Peter A. Bigot; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 163 bytes --]

On 5 December 2014 at 00:30, Peter A. Bigot <pab@pabigot.com> wrote:

> Ping.  These are independent of the RFC patches.
>

Merged into mut, thanks.

Ross

[-- Attachment #2: Type: text/html, Size: 546 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-12-05 23:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-26 19:44 [PATCH 0/3] Miscellaneous bluez patches Peter A. Bigot
2014-11-26 19:44 ` [PATCH 1/3] bluez-hcidump: select provider as bluez4 or bluez5 Peter A. Bigot
2014-11-26 19:44 ` [PATCH 2/3] bluez5: add a package for tools left in the build area Peter A. Bigot
2014-11-26 19:44 ` [PATCH 3/3] bluez5: support experimental through PACKAGECONFIG Peter A. Bigot
2014-12-05  0:30 ` [PATCH 0/3] Miscellaneous bluez patches Peter A. Bigot
2014-12-05 23:13   ` Burton, Ross

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox