Skip to content

RFC add virtual/bluez

Peter A. Bigot openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest14 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14bluez5: upgrade to 5.25meta/recipes-connectivity/bluez5/bluez5_5.22.bb meta/recipes-connectivity/bluez5/bluez5_5.25.bb+3 -30 replies
2/14bluez5: fix QA error from configure optionmeta/recipes-connectivity/bluez5/bluez5.inc+1 -10 replies
3/14default-providers: support virtual/bluezmeta/conf/distro/include/default-providers.inc meta/recipes-connectivity/bluez/bluez4.inc meta/recipes-connectivity/bluez5/bluez5.inc+4 -00 replies
4/14bluez-hcidump: select provider for bluez4/bluez5meta/conf/distro/include/default-providers.inc meta/recipes-connectivity/bluez/bluez-hcidump_2.5.bb meta/recipes-connectivity/bluez5/bluez5.inc+5 -10 replies
5/14packagegroup-base: switch to VIRTUAL-RUNTIME_bluezmeta/recipes-core/packagegroups/packagegroup-base.bb+1 -10 replies
6/14pulseaudio: switch to virtual/bluezmeta/recipes-multimedia/pulseaudio/pulseaudio.inc+1 -12 replies
7/14qt-mobility: switch to virtual/bluezmeta/recipes-qt/qt4/qt-mobility_1.2.0.inc+1 -14 replies
8/14gstreamer1.0-plugins-bad: switch to virtual/bluezmeta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad.inc meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_git.bb+3 -32 replies
9/14ofono: switch to virtual/bluezmeta/recipes-connectivity/ofono/ofono.inc+1 -10 replies
10/14neard: switch to VIRTUAL-RUNTIME_bluezmeta/recipes-connectivity/neard/neard.inc+1 -10 replies
11/14libpcap: switch to virtual/bluezmeta/recipes-connectivity/libpcap/libpcap.inc+1 -10 replies
12/14connman: switch to virtual/bluezmeta/recipes-connectivity/connman/connman.inc+2 -20 replies
13/14bluez5: support experimental through PACKAGECONFIGmeta/recipes-connectivity/bluez5/bluez5.inc+1 -00 replies
14/14bluez5: add a package for tools left in the build areameta/recipes-connectivity/bluez5/bluez5.inc meta/recipes-connectivity/bluez5/bluez5_5.25.bb+72 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 00/14] add virtual/bluez

I'm a bit out of my comfort zone here but I needed to do a lot of this for myself, so figured I'd see how close this is to being mergeable.

This series is a proposed fix for Yocto 5031, providing virtual/bluez to select between bluez4 and bluez5. The intent is to continue using bluez4 as the default, but to allow distros to switch to bluez5 if the packages they need support the new interface.

There are conflicts.

bluez-hcidump got integrated into bluez5, so there's now virtual build and runtime support to select the right one.

gst-plugin-bluetooth was removed from bluez5 and AFAICT has no replacement.

obexd also got integrated into bluez5. That's harder, because it crosses the oe-core/meta-oe boundary so the virtual selectors can't be done solely on oe-core. I'm proposing an in-recipe conditional on PREFERRED_PROVIDER-virtual/bluez to select the correct provider for gnome-bluetooth.

I get my bluez5 builds with the following settings:

PREFERRED_PROVIDER_virtual/bluez = "bluez5" VIRTUAL-RUNTIME_bluez = "bluez5" PREFERRED_PROVIDER_bluez-hcidump = "bluez5" PNBLACKLIST[bluez-hcidump] = "superseded by bluez5" PNBLACKLIST[gst-plugin-bluetooth] = "dropped from bluez5" PNBLACKLIST[bluez4] = "superseded by bluez5"

If there's a way to infer the required blacklists from the setting for virtual/bluez that'd probably be a better approach.

I'm aware that gstreamer1.0-plugins-bad doesn't currently support bluez5, and I've noted that in the commit message (bluetooth support will be silently disabled by configure).

There are other packages and other features that don't fully support bluez5; for example I don't think the issue with headsets is fully resolved. I don't feel that this should block merging bluez5 support, as not everybody who wants bluez5 is going to care about those missing features, and bluez4 support remains available for those who do.

I've done what I can to make sure all recipes I touched build with both bluez4 and bluez5 but can't test whether their bluetooth support is complete.

There's a corresponding set of patches to meta-openembedded for virtual/bluez support at:

git://git.openembedded.org/meta-openembedded-contrib pabigot/wip/virtual-bluez

The following changes since commit 3c741a8d33acbf4b3d5eecc04533bc76e2f37253:

oprofile: 0.9.9 -> 1.0.0 (2014-11-09 10:21:24 +0000)

are available in the git repository at:

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

Peter A. Bigot (14):
bluez5: upgrade to 5.25
bluez5: fix QA error from configure option
default-providers: support virtual/bluez
bluez-hcidump: select provider for bluez4/bluez5
packagegroup-base: switch to VIRTUAL-RUNTIME_bluez
pulseaudio: switch to virtual/bluez
qt-mobility: switch to virtual/bluez gstreamer1.0-plugins-bad: switch to virtual/bluez
ofono: switch to virtual/bluez
neard: switch to VIRTUAL-RUNTIME_bluez
libpcap: switch to virtual/bluez
connman: switch to virtual/bluez
bluez5: support experimental through PACKAGECONFIG
bluez5: add a package for tools left in the build area

 meta/conf/distro/include/default-providers.inc     |  3 ++
 .../bluez/bluez-hcidump_2.5.bb                     |  2 +
 meta/recipes-connectivity/bluez/bluez4.inc         |  1 +
 meta/recipes-connectivity/bluez5/bluez5.inc        | 31 +++++++++++++-
 meta/recipes-connectivity/bluez5/bluez5_5.22.bb    |  3 --
 meta/recipes-connectivity/bluez5/bluez5_5.25.bb    | 50 ++++++++++++++++++++++
 meta/recipes-connectivity/connman/connman.inc      |  4 +-
 meta/recipes-connectivity/libpcap/libpcap.inc      |  2 +-
 meta/recipes-connectivity/neard/neard.inc          |  2 +-
 meta/recipes-connectivity/ofono/ofono.inc          |  2 +-
 .../packagegroups/packagegroup-base.bb             |  2 +-
 .../gstreamer/gstreamer1.0-plugins-bad.inc         |  4 +-
 .../gstreamer/gstreamer1.0-plugins-bad_git.bb      |  2 +-
 meta/recipes-multimedia/pulseaudio/pulseaudio.inc  |  2 +-
 meta/recipes-qt/qt4/qt-mobility_1.2.0.inc          |  2 +-
 15 files changed, 96 insertions(+), 16 deletions(-)
 delete mode 100644 meta/recipes-connectivity/bluez5/bluez5_5.22.bb
 create mode 100644 meta/recipes-connectivity/bluez5/bluez5_5.25.bb
Signature · 1 line
1.8.5.5