All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Install btattach with "make install"
@ 2015-12-02 10:34 John Keeping
  2015-12-02 10:34 ` [PATCH 1/2] tools/btattach: add manual page John Keeping
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: John Keeping @ 2015-12-02 10:34 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Marcel Holtmann, John Keeping

Following a discussion last week [1], it seems that btattach should be
used in preference to hciattach when possible.  This series adds a
manual page for it and updates the makefile so that btattach is
installed via the standard mechanism.

For now, btattach is still marked as experimental so it wil only be
built and installed when experimental features are enabled.

[1] http://article.gmane.org/gmane.linux.bluez.kernel/65807

John Keeping (2):
  tools/btattach: add manual page
  tools/btattach: install during "make install"

 Makefile.tools   |  8 +++++++-
 tools/btattach.1 | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+), 1 deletion(-)
 create mode 100644 tools/btattach.1

-- 
2.6.3.462.gbe2c914

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

* [PATCH 1/2] tools/btattach: add manual page
  2015-12-02 10:34 [PATCH 0/2] Install btattach with "make install" John Keeping
@ 2015-12-02 10:34 ` John Keeping
  2015-12-02 10:35 ` [PATCH 2/2] tools/btattach: install during "make install" John Keeping
  2015-12-10 11:08 ` [PATCH 0/2] Install btattach with " John Keeping
  2 siblings, 0 replies; 5+ messages in thread
From: John Keeping @ 2015-12-02 10:34 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Marcel Holtmann, John Keeping

---
 tools/btattach.1 | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 tools/btattach.1

diff --git a/tools/btattach.1 b/tools/btattach.1
new file mode 100644
index 0000000..ffd653d
--- /dev/null
+++ b/tools/btattach.1
@@ -0,0 +1,53 @@
+.TH "btattach" "1" "November 2015" "BlueZ" "Linux System Administration"
+.SH NAME
+btattach \- attach serial devices to BlueZ stack
+
+.SH SYNOPSIS
+.B btattach
+.RB [\| \-B
+.IR device \|]
+.RB [\| \-A
+.IR device \|]
+.RB [\| \-P
+.IR protocol \|]
+.RB [\| \-R \|]
+
+.SH DESCRIPTION
+.LP
+btattach is used to attach a serial UART to the Bluetooth stack as a
+transport interface.
+
+.SH OPTIONS
+.TP
+.BI \-B " device" , " " \--bredr " device"
+Attach a BR/EDR controller.
+.TP
+.BI \-A " device" , " " \--amp " device"
+Attach an AMP controller.
+.TP
+.BI \-P " protocol" , " " \--protocol " protocol"
+Specify the protocol type for talking to the device.
+Supported values are:
+.RS
+.IP \(bu 2
+.B h4
+.IP \(bu 2
+.B bcsp
+.IP \(bu 2
+.B 3wire
+.IP \(bu 2
+.B h4ds
+.IP \(bu 2
+.B ll
+.IP \(bu 2
+.B ath3k
+.IP \(bu 2
+.B intel
+.IP \(bu 2
+.B bcm
+.IP \(bu 2
+.B qca
+.RE
+.TP
+.B \-R
+Set the device into raw mode (the kernel and bluetoothd will ignore it).
-- 
2.6.3.462.gbe2c914

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

* [PATCH 2/2] tools/btattach: install during "make install"
  2015-12-02 10:34 [PATCH 0/2] Install btattach with "make install" John Keeping
  2015-12-02 10:34 ` [PATCH 1/2] tools/btattach: add manual page John Keeping
@ 2015-12-02 10:35 ` John Keeping
  2015-12-10 11:08 ` [PATCH 0/2] Install btattach with " John Keeping
  2 siblings, 0 replies; 5+ messages in thread
From: John Keeping @ 2015-12-02 10:35 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Marcel Holtmann, John Keeping

btattach provides access to some line disciplines that are supported by
hciattach, so allow it to be installed and not reserved for developer
use.  For now it is still considered an experimental feature.
---
 Makefile.tools | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/Makefile.tools b/Makefile.tools
index 034790a..e79b53b 100644
--- a/Makefile.tools
+++ b/Makefile.tools
@@ -250,10 +250,12 @@ EXTRA_DIST += tools/hid2hci.1
 endif
 
 if EXPERIMENTAL
+bin_PROGRAMS += tools/btattach
+
 noinst_PROGRAMS += tools/bdaddr tools/avinfo tools/avtest \
 			tools/scotest tools/amptest tools/hwdb \
 			tools/hcieventmask tools/hcisecfilter \
-			tools/btinfo tools/btattach \
+			tools/btinfo \
 			tools/btsnoop tools/btproxy \
 			tools/btiotest tools/bneptest tools/mcaptest \
 			tools/cltest tools/oobtest tools/seq2bseq \
@@ -330,7 +332,11 @@ tools_btgatt_server_SOURCES = tools/btgatt-server.c src/uuid-helper.c
 tools_btgatt_server_LDADD = src/libshared-mainloop.la \
 						lib/libbluetooth-internal.la
 
+dist_man_MANS += tools/btattach.1
+
 EXTRA_DIST += tools/bdaddr.1
+else
+EXTRA_DIST += tools/btattach.1
 endif
 
 if READLINE
-- 
2.6.3.462.gbe2c914

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

* Re: [PATCH 0/2] Install btattach with "make install"
  2015-12-02 10:34 [PATCH 0/2] Install btattach with "make install" John Keeping
  2015-12-02 10:34 ` [PATCH 1/2] tools/btattach: add manual page John Keeping
  2015-12-02 10:35 ` [PATCH 2/2] tools/btattach: install during "make install" John Keeping
@ 2015-12-10 11:08 ` John Keeping
  2015-12-10 19:27   ` Johan Hedberg
  2 siblings, 1 reply; 5+ messages in thread
From: John Keeping @ 2015-12-10 11:08 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Marcel Holtmann

On Wed,  2 Dec 2015 10:34:58 +0000, John Keeping wrote:

> Following a discussion last week [1], it seems that btattach should be
> used in preference to hciattach when possible.  This series adds a
> manual page for it and updates the makefile so that btattach is
> installed via the standard mechanism.
> 
> For now, btattach is still marked as experimental so it wil only be
> built and installed when experimental features are enabled.
> 
> [1] http://article.gmane.org/gmane.linux.bluez.kernel/65807

Ping?  Does anyone have any feedback on this?

> John Keeping (2):
>   tools/btattach: add manual page
>   tools/btattach: install during "make install"
> 
>  Makefile.tools   |  8 +++++++-
>  tools/btattach.1 | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 60 insertions(+), 1 deletion(-)
>  create mode 100644 tools/btattach.1

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

* Re: [PATCH 0/2] Install btattach with "make install"
  2015-12-10 11:08 ` [PATCH 0/2] Install btattach with " John Keeping
@ 2015-12-10 19:27   ` Johan Hedberg
  0 siblings, 0 replies; 5+ messages in thread
From: Johan Hedberg @ 2015-12-10 19:27 UTC (permalink / raw)
  To: John Keeping; +Cc: linux-bluetooth, Marcel Holtmann

Hi John,

On Thu, Dec 10, 2015, John Keeping wrote:
> > Following a discussion last week [1], it seems that btattach should be
> > used in preference to hciattach when possible.  This series adds a
> > manual page for it and updates the makefile so that btattach is
> > installed via the standard mechanism.
> > 
> > For now, btattach is still marked as experimental so it wil only be
> > built and installed when experimental features are enabled.
> > 
> > [1] http://article.gmane.org/gmane.linux.bluez.kernel/65807
> 
> Ping?  Does anyone have any feedback on this?

Sorry for the delay. Both patches look good and have now been applied to
bluez.git. Thanks.


Johan

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

end of thread, other threads:[~2015-12-10 19:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-02 10:34 [PATCH 0/2] Install btattach with "make install" John Keeping
2015-12-02 10:34 ` [PATCH 1/2] tools/btattach: add manual page John Keeping
2015-12-02 10:35 ` [PATCH 2/2] tools/btattach: install during "make install" John Keeping
2015-12-10 11:08 ` [PATCH 0/2] Install btattach with " John Keeping
2015-12-10 19:27   ` Johan Hedberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.