Patchwork [meta-oe,meta-systemd,1/4] bluez4: Package systemd service

login
register
mail settings
Submitter Andrei Gherzan
Date Jan. 14, 2013, 6:42 p.m.
Message ID <1358188976-14581-1-git-send-email-andrei.gherzan@windriver.com>
Download mbox | patch
Permalink /patch/42605/
State Accepted, archived
Headers show

Comments

Andrei Gherzan - Jan. 14, 2013, 6:42 p.m.
Signed-off-by: Andrei Gherzan <andrei.gherzan@windriver.com>
---
 .../bluez/bluez4_4.101.bbappend                    |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
 create mode 100644 meta-systemd/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bbappend
Martin Jansa - Jan. 14, 2013, 7:14 p.m.
On Mon, Jan 14, 2013 at 08:42:53PM +0200, Andrei Gherzan wrote:
> Signed-off-by: Andrei Gherzan <andrei.gherzan@windriver.com>
> ---
>  .../bluez/bluez4_4.101.bbappend                    |    9 +++++++++
>  1 files changed, 9 insertions(+), 0 deletions(-)
>  create mode 100644 meta-systemd/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bbappend

http://lists.linuxtogo.org/pipermail/openembedded-devel/2013-January/043452.html

> 
> diff --git a/meta-systemd/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bbappend b/meta-systemd/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bbappend
> new file mode 100644
> index 0000000..8945a6d
> --- /dev/null
> +++ b/meta-systemd/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bbappend
> @@ -0,0 +1,9 @@
> +PRINC := "${@int(PRINC) + 1}"
> +
> +inherit systemd
> +
> +EXTRA_OECONF += "--with-systemdunitdir=${systemd_unitdir}/system/"
> +
> +SYSTEMD_PACKAGES = "${PN}-systemd"
> +SYSTEMD_SERVICE = "bluetooth.service"
> +SYSTEMD_AUTO_ENABLE = "disable"
> -- 
> 1.7.5.4
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Andreas Müller - Jan. 14, 2013, 11:39 p.m.
On Mon, Jan 14, 2013 at 7:42 PM, Andrei Gherzan
<andrei.gherzan@windriver.com> wrote:
> Signed-off-by: Andrei Gherzan <andrei.gherzan@windriver.com>
> ---
>  .../bluez/bluez4_4.101.bbappend                    |    9 +++++++++
>  1 files changed, 9 insertions(+), 0 deletions(-)
>  create mode 100644 meta-systemd/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bbappend
>
> diff --git a/meta-systemd/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bbappend b/meta-systemd/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bbappend
> new file mode 100644
> index 0000000..8945a6d
> --- /dev/null
> +++ b/meta-systemd/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bbappend
> @@ -0,0 +1,9 @@
> +PRINC := "${@int(PRINC) + 1}"
> +
> +inherit systemd
> +
> +EXTRA_OECONF += "--with-systemdunitdir=${systemd_unitdir}/system/"
> +
> +SYSTEMD_PACKAGES = "${PN}-systemd"
> +SYSTEMD_SERVICE = "bluetooth.service"
> +SYSTEMD_AUTO_ENABLE = "disable"
This is quite interesting: For my first tests I also added the
'disable' but I could not get bluez start automatically so I decided
to start it at boot time. Maybe it is related to that I did not yet
find a way to setup my bluetooth device automatically. It still needs

hciattach ttyO1 csr

Which service starts blues if not enabled?

Andreas
Andreas Müller - Jan. 16, 2013, 4:56 p.m.
On Tue, Jan 15, 2013 at 12:39 AM, Andreas Müller
<schnitzeltony@googlemail.com> wrote:
>> +SYSTEMD_AUTO_ENABLE = "disable"
> This is quite interesting: For my first tests I also added the
> 'disable' but I could not get bluez start automatically so I decided
> to start it at boot time. Maybe it is related to that I did not yet
> find a way to setup my bluetooth device automatically. It still needs
>
> hciattach ttyO1 csr
>
> Which service starts blues if not enabled?
>
> Andreas
I finally have an idea how blues service is started automatically. So

SYSTEMD_AUTO_ENABLE = "disable"

is the better default. Therefore

Acked-by: Andreas Müller <schnitzeltony@googlemail.com>
Martin Jansa - Jan. 17, 2013, 1 p.m.
On Wed, Jan 16, 2013 at 05:56:00PM +0100, Andreas Müller wrote:
> On Tue, Jan 15, 2013 at 12:39 AM, Andreas Müller
> <schnitzeltony@googlemail.com> wrote:
> >> +SYSTEMD_AUTO_ENABLE = "disable"
> > This is quite interesting: For my first tests I also added the
> > 'disable' but I could not get bluez start automatically so I decided
> > to start it at boot time. Maybe it is related to that I did not yet
> > find a way to setup my bluetooth device automatically. It still needs
> >
> > hciattach ttyO1 csr
> >
> > Which service starts blues if not enabled?
> >
> > Andreas
> I finally have an idea how blues service is started automatically. So
> 
> SYSTEMD_AUTO_ENABLE = "disable"
> 
> is the better default. Therefore

This patch adds bluez4 bbappend in wrong directory (meta-oe instead of
oe-core), I'll fix it before merging it.

The same does apply to portmap and ofono bbappend.

> Acked-by: Andreas Müller <schnitzeltony@googlemail.com>
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Patch

diff --git a/meta-systemd/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bbappend b/meta-systemd/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bbappend
new file mode 100644
index 0000000..8945a6d
--- /dev/null
+++ b/meta-systemd/meta-oe/recipes-connectivity/bluez/bluez4_4.101.bbappend
@@ -0,0 +1,9 @@ 
+PRINC := "${@int(PRINC) + 1}"
+
+inherit systemd
+
+EXTRA_OECONF += "--with-systemdunitdir=${systemd_unitdir}/system/"
+
+SYSTEMD_PACKAGES = "${PN}-systemd"
+SYSTEMD_SERVICE = "bluetooth.service"
+SYSTEMD_AUTO_ENABLE = "disable"