From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] bluez5_utils: new package
Date: Tue, 4 Mar 2014 22:38:45 +0100 [thread overview]
Message-ID: <20140304213845.GG11474@free.fr> (raw)
In-Reply-To: <1383600898-25441-1-git-send-email-marcin@bis.org.pl>
Marcin, All,
Thanks for your patch. Here are a few comments below...
On 2013-11-04 22:34 +0100, Marcin Bis spake thusly:
> This patch adds support for BlueZ 5.x.
>
> API is not backwards compatible with BlueZ 4. It uses kernel interface
> introduced in 3.4 (3.5 for Low Energy).
So it has a dependency on the Linux kernel headers installed with the
toolchain, right? We now have a way to express this kind of
dependencies:
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
See the current manual:
http://nightly.buildroot.org/#dependencies-target-toolchain-options
[--SNIP--]
> diff --git a/package/bluez5_utils/bluez5_utils.mk b/package/bluez5_utils/bluez5_utils.mk
> new file mode 100644
> index 0000000..718699d
> --- /dev/null
> +++ b/package/bluez5_utils/bluez5_utils.mk
> @@ -0,0 +1,40 @@
> +################################################################################
> +#
> +# bluez5_utils
> +#
> +################################################################################
> +
> +BLUEZ5_UTILS_VERSION = 5.10
There's 5.15, now...
> +BLUEZ5_UTILS_SOURCE = bluez-$(BLUEZ5_UTILS_VERSION).tar.xz
> +BLUEZ5_UTILS_SITE = $(BR2_KERNEL_MIRROR)/linux/bluetooth
> +BLUEZ5_UTILS_INSTALL_STAGING = YES
> +BLUEZ5_UTILS_DEPENDENCIES = dbus libglib2 libical readline
> +BLUEZ5_UTILS_CONF_OPT = --enable-test --enable-tools --enable-library
Maybe make tests optional?
> +BLUEZ5_UTILS_AUTORECONF = YES
Why is autoreconf needed? The tarballs do have ./configure.
configure.ac uses PKG_PROG_PKG_CONFIG, so you'd need:
BLUEZ5_UTILS_DEPENDENCIES += host-pkgconf
Also, configure.ac uses AC_DISABLE_STATIC, so it looks like they do not
intend to support static linking. You'll need in Config.in:
depends on !BR2_PREFER_STATIC_LIB
> +BLUEZ5_UTILS_LICENSE = GPLv2+ LGPLv2.1+
> +BLUEZ5_UTILS_LICENSE_FILES = COPYING COPYING.LIB
> +
> +# experimental plugins
> +ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_EXPERIMENTAL),y)
> +BLUEZ5_UTILS_CONF_OPT += --enable-experimental
> +else
> +BLUEZ5_UTILS_CONF_OPT += --disable-experimental
> +endif
> +
> +# use udev if available
> +ifeq ($(BR2_PACKAGE_UDEV),y)
> + BLUEZ5_UTILS_CONF_OPT += --enable-udev
> + BLUEZ5_UTILS_DEPENDENCIES += udev
> +else
> + BLUEZ5_UTILS_CONF_OPT += --disable-udev
> +endif
> +
> +# integrate with systemd if available
> +ifeq ($(BR2_PACKAGE_SYSTEMD),y)
> + BLUEZ5_UTILS_CONF_OPT += --enable-systemd
> + BLUEZ5_UTILS_DEPENDENCIES += systemd
> +else
> + BLUEZ5_UTILS_CONF_OPT += --disable-systemd
> +endif
Bluez4 has more config knobs: are they no longer applicable to Bluez5?
- Audio
- USB support
- GATT support
Since you mention the subject in the commit log: is there a way to
enable/disable support for BTLE?
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2014-03-04 21:38 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-04 12:59 [Buildroot] [PATCH] bluez5_utils: new package Marcin Bis
2013-11-04 16:06 ` Thomas De Schampheleire
2013-11-04 21:34 ` [Buildroot] [PATCH v2] " Marcin Bis
2014-03-04 21:38 ` Yann E. MORIN [this message]
2014-03-20 13:48 ` [Buildroot] [PATCH v3] " Marcin Bis
2014-03-20 18:21 ` Thomas Petazzoni
2014-03-20 19:28 ` Jerzy Grzegorek
2014-03-21 9:48 ` Marcin Bis
2014-03-21 9:53 ` [Buildroot] [PATCH v4] " Marcin Bis
2014-03-21 11:08 ` Jerzy Grzegorek
2014-03-21 11:42 ` Gustavo Zacarias
2014-03-21 16:45 ` Jerzy Grzegorek
2014-03-21 16:50 ` Gustavo Zacarias
2014-03-23 23:10 ` Jerzy Grzegorek
2014-03-31 8:55 ` Marcin Bis
2014-03-31 8:58 ` [Buildroot] [PATCH v5] " Marcin Bis
2014-04-03 20:00 ` Thomas Petazzoni
2014-04-04 9:03 ` Marcin Bis
2014-08-02 11:08 ` Thomas Petazzoni
2014-03-21 16:55 ` [Buildroot] [PATCH v4] " Gustavo Zacarias
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140304213845.GG11474@free.fr \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox