Re: [PATCH BlueZ 3/4] Link to udev only when needed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 18 Aug 2011 16:18:57 -0700
Marcel Holtmann <marcel@xxxxxxxxxxxx> wrote:

> Hi Antonio,
> 
> > 
> > > Don't link bluetoothd to udev unconditionally, but only when it is
> > > needed. For now bluetoothd needs to be linked to udev only when the
> > > sixaxis plugin is enabled.
> > 
> > Any comment on this change? If it looks OK I'll fold it in v5.
> > 
> > Thanks,
> >    Antonio
> > 
> > > ---
> > >  Makefile.am |    6 +++++-
> > >  1 files changed, 5 insertions(+), 1 deletions(-)
> > > 
> > > diff --git a/Makefile.am b/Makefile.am
> > > index dbe0170..219ca0f 100644
> > > --- a/Makefile.am
> > > +++ b/Makefile.am
> > > @@ -288,7 +288,11 @@ src_bluetoothd_SOURCES = $(gdbus_sources) $(builtin_sources) \
> > >  			src/event.h src/event.c \
> > >  			src/oob.h src/oob.c src/eir.h src/eir.c
> > >  src_bluetoothd_LDADD = lib/libbluetooth.la @GLIB_LIBS@ @DBUS_LIBS@ \
> > > -							@CAPNG_LIBS@ @UDEV_LIBS@ -ldl -lrt
> > > +							@CAPNG_LIBS@ -ldl -lrt
> > > +if SIXAXISPLUGIN
> > > +src_bluetoothd_LDADD += @UDEV_LIBS@
> > > +endif
> > > +
> > >  src_bluetoothd_LDFLAGS = -Wl,--export-dynamic \
> > >  				-Wl,--version-script=$(srcdir)/src/bluetooth.ver
> 
> I rather have the Sixaxis plugin being an external plugin only then. So
> you are not allowed to make this builtin.
> 

Marcel, I guess that an _external_ plugin in BlueZ context is one which
is not embedded in the bluetoothd binary but rather distributed as a
shared object, isn't it? Are there examples of such a plugin in bluez
tree I can copy from?

Or do you mean a standalone daemon interacting with bluetoothd via
dbus? AFAIR we discarded this option in the past.

Thanks,
   Antonio

-- 
Antonio Ospite
http://ao2.it

PGP public key ID: 0x4553B001

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?

Attachment: pgpIbjIwBBjOB.pgp
Description: PGP signature


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux