2002-03-09 05:10:06 +08:00
|
|
|
BlueZ - Bluetooth protocol stack for Linux
|
2005-10-30 03:25:42 +08:00
|
|
|
******************************************
|
2002-03-09 05:10:06 +08:00
|
|
|
|
2004-04-02 07:45:02 +08:00
|
|
|
Copyright (C) 2000-2001 Qualcomm Incorporated
|
|
|
|
Copyright (C) 2002-2003 Maxim Krasnyansky <maxk@qualcomm.com>
|
2010-01-02 09:08:17 +08:00
|
|
|
Copyright (C) 2002-2010 Marcel Holtmann <marcel@holtmann.org>
|
2002-03-09 05:10:06 +08:00
|
|
|
|
2004-04-02 07:45:02 +08:00
|
|
|
|
2005-10-30 03:25:42 +08:00
|
|
|
Compilation and installation
|
|
|
|
============================
|
2002-03-09 05:10:06 +08:00
|
|
|
|
2004-04-02 07:45:14 +08:00
|
|
|
In order to compile Bluetooth utilities you need following software packages:
|
2004-04-02 07:45:02 +08:00
|
|
|
- GCC compiler
|
2008-08-06 05:38:26 +08:00
|
|
|
- GLib library
|
2012-12-11 20:44:58 +08:00
|
|
|
- D-Bus library
|
|
|
|
- udev library (optional)
|
|
|
|
- readline (command line clients)
|
2002-03-09 05:10:06 +08:00
|
|
|
|
2019-11-27 03:08:42 +08:00
|
|
|
On a debian based system, this can be done by running the following command:
|
|
|
|
sudo apt-get build-dep bluez
|
|
|
|
./bootstrap
|
|
|
|
|
2002-03-09 05:10:06 +08:00
|
|
|
To configure run:
|
2005-04-22 04:18:09 +08:00
|
|
|
./configure --prefix=/usr --mandir=/usr/share/man \
|
2012-12-11 20:44:58 +08:00
|
|
|
--sysconfdir=/etc --localstatedir=/var
|
2009-01-02 02:33:20 +08:00
|
|
|
|
|
|
|
Configure automatically searches for all required components and packages.
|
2002-03-09 05:10:06 +08:00
|
|
|
|
|
|
|
To compile and install run:
|
2005-10-30 03:25:42 +08:00
|
|
|
make && make install
|
2004-04-02 07:45:02 +08:00
|
|
|
|
2002-03-09 05:10:06 +08:00
|
|
|
|
2018-12-04 23:59:01 +08:00
|
|
|
Embedded Linux library
|
|
|
|
======================
|
|
|
|
|
|
|
|
In order to compile mesh support and test client utility the development
|
|
|
|
version of Embedded Linux library is required to be present. The development
|
|
|
|
repositories can be found here:
|
|
|
|
|
|
|
|
git://git.kernel.org/pub/scm/libs/ell/ell.git
|
|
|
|
https://kernel.googlesource.com/pub/scm/libs/ell/ell.git
|
|
|
|
|
|
|
|
The build systems requires that the Embedded Linux library source code
|
|
|
|
is available on the same top level directory as the source code:
|
|
|
|
|
|
|
|
.
|
|
|
|
|--- ell
|
|
|
|
| |--- ell
|
|
|
|
| `--- unit
|
|
|
|
`--- bluez
|
|
|
|
|--- src
|
|
|
|
`--- tools
|
|
|
|
|
|
|
|
It is not required to build or install Embedded Linux library. The build
|
|
|
|
will happen when building the binaries and it will then be linked internally.
|
|
|
|
|
|
|
|
When using --enable-external-ell build option, it is not required that the
|
|
|
|
Embedded Linux library source code is available in the top level directory.
|
|
|
|
|
|
|
|
When neither --enable-mesh nor --enable-btpclient is specified, then this
|
|
|
|
part is irrelevant and Embedded Linux library is not required.
|
|
|
|
|
|
|
|
|
2020-03-12 06:15:18 +08:00
|
|
|
Kernel Build Options (for Mesh)
|
|
|
|
===============================
|
|
|
|
|
|
|
|
The Mesh daemon uses kernel provided crypto utilities to perform security
|
|
|
|
functions required of Bluetooth Mesh. Many standard distributions currently
|
|
|
|
enable all required crypto features, but a few notable distributions do
|
|
|
|
not.
|
|
|
|
|
|
|
|
If Mesh Cryptography is not working, the following configuration options
|
|
|
|
may need to be enabled, and the kernel rebuilt.
|
|
|
|
|
|
|
|
1. A minimum of kernel version 4.9 or later is required
|
|
|
|
|
|
|
|
2. The kernel must at a minimum have the following .config options turned on:
|
|
|
|
CONFIG_CRYPTO_USER
|
|
|
|
CONFIG_CRYPTO_USER_API
|
|
|
|
CONFIG_CRYPTO_USER_API_AEAD
|
|
|
|
CONFIG_CRYPTO_USER_API_HASH
|
|
|
|
|
|
|
|
CONFIG_CRYPTO_AES
|
|
|
|
CONFIG_CRYPTO_CCM
|
|
|
|
CONFIG_CRYPTO_AEAD
|
|
|
|
CONFIG_CRYPTO_CMAC
|
|
|
|
|
|
|
|
|
2012-12-11 21:09:25 +08:00
|
|
|
Configuration and options
|
|
|
|
=========================
|
|
|
|
|
|
|
|
For a working system, certain configuration options need to be enabled:
|
|
|
|
|
|
|
|
--enable-library
|
|
|
|
|
|
|
|
Enable installation of Bluetooth library
|
|
|
|
|
|
|
|
By default the Bluetooth library is no longer installed.
|
|
|
|
|
|
|
|
The user interfaces or command line utilities do not
|
|
|
|
require an installed Bluetooth library anymore. This
|
|
|
|
option is provided for legacy third party applications
|
|
|
|
that still depend on the library.
|
|
|
|
|
|
|
|
When the library installation is enabled, it is a good
|
|
|
|
idea to use a separate bluez-library or libbluetooth
|
|
|
|
package for it.
|
|
|
|
|
|
|
|
--disable-tools
|
|
|
|
|
|
|
|
Disable support for Bluetooth utilities
|
|
|
|
|
|
|
|
By default the Bluetooth utilities are built and also
|
|
|
|
installed. For production systems the tools are not
|
|
|
|
needed and this option allows to disable them to save
|
|
|
|
build time and disk space.
|
|
|
|
|
|
|
|
When the tools are selected, it is a good idea to
|
|
|
|
use a separate bluez-tools package for them.
|
|
|
|
|
|
|
|
--disable-cups
|
|
|
|
|
|
|
|
Disable support for CUPS printer backend
|
|
|
|
|
|
|
|
By default the printer backend for CUPS is build and
|
|
|
|
also installed. For systems that do not require printing
|
|
|
|
over Bluetooth, this options allows to disable it.
|
|
|
|
|
|
|
|
When the CUPS backend is selected, it is a good idea to
|
|
|
|
use a separate bluez-cups package for it.
|
|
|
|
|
2012-12-13 06:20:14 +08:00
|
|
|
--disable-monitor
|
|
|
|
|
|
|
|
Disable support for the Bluetooth monitor utility
|
|
|
|
|
|
|
|
By default the monitor utility is enabled. It provides
|
|
|
|
support for HCI level tracing and debugging. For systems
|
|
|
|
that don't require any kind of tracing or debugging
|
|
|
|
capabilities, this options allows to disable it.
|
|
|
|
|
2012-12-24 11:05:07 +08:00
|
|
|
The monitor utility should be placed in the main package
|
2012-12-13 06:20:14 +08:00
|
|
|
along with the daemons. It is universally useful.
|
|
|
|
|
2012-12-11 21:09:25 +08:00
|
|
|
--disable-client
|
|
|
|
|
|
|
|
Disable support for the command line client
|
|
|
|
|
|
|
|
By default the command line client is enabled and uses the
|
|
|
|
readline library. For specific systems where BlueZ is
|
|
|
|
configured by other means, the command line client can be
|
|
|
|
disabled and the dependency on readline is removed.
|
|
|
|
|
2012-12-13 06:20:37 +08:00
|
|
|
The client should be placed in the main package along
|
|
|
|
with the daemons. It is universally useful.
|
|
|
|
|
2012-12-11 21:55:58 +08:00
|
|
|
--disable-systemd
|
|
|
|
|
|
|
|
Disable integration with systemd
|
|
|
|
|
|
|
|
By default the integration with systemd is enabled and
|
|
|
|
installed. This gives the best integration into all
|
|
|
|
distributions based on systemd.
|
|
|
|
|
|
|
|
This option is provided for distributions that do not
|
|
|
|
support systemd. In that case all integration with the
|
|
|
|
init system is up to the package.
|
|
|
|
|
2016-11-11 21:40:54 +08:00
|
|
|
--disable-a2dp
|
|
|
|
|
|
|
|
Disable A2DP profile
|
|
|
|
|
|
|
|
By default bluetoothd supports A2DP profile using a built-in
|
|
|
|
plugin, this option disables it.
|
|
|
|
|
|
|
|
This option is provided for distributions that do not have any
|
|
|
|
audio capabilities.
|
|
|
|
|
2016-11-11 21:47:25 +08:00
|
|
|
--disable-avrcp
|
|
|
|
|
|
|
|
Disable AVRCP profile
|
|
|
|
|
|
|
|
By default bluetoothd supports AVRCP profile using a built-in
|
|
|
|
plugin, this option disables it.
|
|
|
|
|
|
|
|
This option is provided for distributions that do not have any
|
|
|
|
audio capabilities.
|
|
|
|
|
2016-11-11 21:52:55 +08:00
|
|
|
--disable-network
|
|
|
|
|
|
|
|
Disable PANU, NAP, GN profiles
|
|
|
|
|
|
|
|
By default bluetoothd supports PANU, NAP and GN profile using a
|
|
|
|
built-in plugin, this option disables it.
|
|
|
|
|
|
|
|
This option is provided for distributions that do not have any
|
|
|
|
network capabilities.
|
|
|
|
|
2016-11-11 22:02:06 +08:00
|
|
|
--disable-hid
|
|
|
|
|
|
|
|
Disable HID profile
|
|
|
|
|
|
|
|
By default bluetoothd supports HID profile using a built-in
|
|
|
|
plugin, this option disables it.
|
|
|
|
|
|
|
|
This option is provided for distributions that do not have any
|
|
|
|
input capabilities.
|
|
|
|
|
2016-11-11 22:05:40 +08:00
|
|
|
--disable-hog
|
|
|
|
|
|
|
|
Disable HoG profile
|
|
|
|
|
|
|
|
By default bluetoothd supports HoG profile using a built-in
|
|
|
|
plugin, this option disables it.
|
|
|
|
|
|
|
|
This option is provided for distributions that do not have any
|
|
|
|
input capabilities.
|
|
|
|
|
2017-01-04 21:24:45 +08:00
|
|
|
--enable-testing
|
|
|
|
|
|
|
|
Enable testing tools
|
|
|
|
|
|
|
|
By default tools used only for testing emulation are disabled.
|
|
|
|
This option can be used to enable them.
|
|
|
|
|
|
|
|
It is not recommended to enable this option for production
|
|
|
|
systems. These tools may contain tests that depend on specific
|
|
|
|
environment or kernel features in development.
|
|
|
|
|
2012-12-11 21:09:25 +08:00
|
|
|
--enable-experimental
|
|
|
|
|
2016-11-11 22:28:34 +08:00
|
|
|
Enable experimental tools
|
2012-12-11 21:09:25 +08:00
|
|
|
|
2016-11-11 22:28:34 +08:00
|
|
|
By default all tools that are still in development
|
2012-12-11 21:09:25 +08:00
|
|
|
are disabled. This option can be used to enable them.
|
|
|
|
|
|
|
|
It is not recommended to enable this option for production
|
2016-11-11 22:28:34 +08:00
|
|
|
systems. The behavior of the experimental tools is unstable
|
|
|
|
and might still change.
|
2012-12-11 21:09:25 +08:00
|
|
|
|
2017-01-04 20:23:58 +08:00
|
|
|
--enable-deprecated
|
|
|
|
|
|
|
|
Enable deprecated tools
|
|
|
|
|
|
|
|
By defauld all tools that are no longer maintained are
|
|
|
|
disabled. This option can be used to enable them.
|
|
|
|
|
|
|
|
It is not recommended to enable this option for production
|
|
|
|
systems. The behavior of the deprecated tools may be unstable
|
|
|
|
or simply don't work anymore.
|
|
|
|
|
2016-11-11 22:17:18 +08:00
|
|
|
--enable-nfc
|
|
|
|
|
|
|
|
This option enable NFC pairing support.
|
|
|
|
|
|
|
|
By default the integration with neard is disabled, this gives
|
|
|
|
the option to enable it in system where neard is supported.
|
|
|
|
|
|
|
|
The plugin is built into bluetoothd therefore it does not need
|
|
|
|
to be package separately.
|
2012-12-11 21:09:25 +08:00
|
|
|
|
2016-11-11 22:25:39 +08:00
|
|
|
--enable-sap
|
|
|
|
|
|
|
|
This option enable SAP profile using sap plugin.
|
|
|
|
|
|
|
|
By default sap plugin is disabled since it requires tight
|
|
|
|
integration with systems and is very rarely required.
|
|
|
|
|
|
|
|
The plugin is built into bluetoothd therefore it does not need
|
|
|
|
to be package separately.
|
|
|
|
|
2016-11-11 22:10:10 +08:00
|
|
|
--enable-health
|
|
|
|
|
|
|
|
This option enable health profiles.
|
|
|
|
|
|
|
|
By default health plugin is disabled since its profiles are
|
|
|
|
target for the health industry.
|
|
|
|
|
|
|
|
The plugin is built into bluetoothd therefore it does not need
|
|
|
|
to be package separately.
|
|
|
|
|
2017-01-08 21:12:53 +08:00
|
|
|
--enable-midi
|
|
|
|
|
|
|
|
This option enable MIDI support via ALSA Sequencer.
|
|
|
|
|
|
|
|
By default midi plugin is disabled since it still considered
|
|
|
|
experimental. When bluetoothd will create a new ALSA Sequencer
|
|
|
|
client and port for each device connected that supports the
|
|
|
|
MIDI GATT primary service.
|
|
|
|
|
|
|
|
The plugin is built into bluetoothd therefore it does not need
|
|
|
|
to be package separately.
|
|
|
|
|
2005-10-30 03:25:42 +08:00
|
|
|
Information
|
|
|
|
===========
|
2002-03-09 05:10:06 +08:00
|
|
|
|
|
|
|
Mailing lists:
|
2008-09-12 01:58:26 +08:00
|
|
|
linux-bluetooth@vger.kernel.org
|
2002-03-09 05:10:06 +08:00
|
|
|
|
|
|
|
For additional information about the project visit BlueZ web site:
|
2004-04-02 07:45:02 +08:00
|
|
|
http://www.bluez.org
|