Debian Codegraph @

README

raw
1 BlueZ - Bluetooth protocol stack for Linux
2 ******************************************
3
4 Copyright (C) 2000-2001 Qualcomm Incorporated
5 Copyright (C) 2002-2003 Maxim Krasnyansky <[email protected]>
6 Copyright (C) 2002-2010 Marcel Holtmann <[email protected]>
7
8
9 Compilation and installation
10 ============================
11
12 In order to compile Bluetooth utilities you need following software packages:
13 - GCC compiler
14 - GLib library
15 - D-Bus library
16 - udev library (optional)
17 - readline (command line clients)
18
19 On a debian based system, this can be done by running the following command:
20 sudo apt-get build-dep bluez
21 ./bootstrap
22
23 To configure run:
24 ./configure --prefix=/usr --mandir=/usr/share/man \
25 --sysconfdir=/etc --localstatedir=/var
26
27 Configure automatically searches for all required components and packages.
28
29 To compile and install run:
30 make && make install
31
32
33 Embedded Linux library
34 ======================
35
36 In order to compile mesh support and test client utility the development
37 version of Embedded Linux library is required to be present. The development
38 repositories can be found here:
39
40 git://git.kernel.org/pub/scm/libs/ell/ell.git
41 https://kernel.googlesource.com/pub/scm/libs/ell/ell.git
42
43 The build systems requires that the Embedded Linux library source code
44 is available on the same top level directory as the source code:
45
46 .
47 |--- ell
48 | |--- ell
49 | `--- unit
50 `--- bluez
51 |--- src
52 `--- tools
53
54 It is not required to build or install Embedded Linux library. The build
55 will happen when building the binaries and it will then be linked internally.
56
57 When using --enable-external-ell build option, it is not required that the
58 Embedded Linux library source code is available in the top level directory.
59
60 When neither --enable-mesh nor --enable-btpclient is specified, then this
61 part is irrelevant and Embedded Linux library is not required.
62
63
64 Kernel Build Options (for Mesh)
65 ===============================
66
67 The Mesh daemon uses kernel provided crypto utilities to perform security
68 functions required of Bluetooth Mesh. Many standard distributions currently
69 enable all required crypto features, but a few notable distributions do
70 not.
71
72 If Mesh Cryptography is not working, the following configuration options
73 may need to be enabled, and the kernel rebuilt.
74
75 1. A minimum of kernel version 4.9 or later is required
76
77 2. The kernel must at a minimum have the following .config options turned on:
78 CONFIG_CRYPTO_USER
79 CONFIG_CRYPTO_USER_API
80 CONFIG_CRYPTO_USER_API_AEAD
81 CONFIG_CRYPTO_USER_API_HASH
82 CONFIG_CRYPTO_USER_API_SKCIPHER
83
84 CONFIG_CRYPTO_AES
85 CONFIG_CRYPTO_CCM
86 CONFIG_CRYPTO_AEAD
87 CONFIG_CRYPTO_CMAC
88
89
90 Configuration and options
91 =========================
92
93 For a working system, certain configuration options need to be enabled:
94
95 --enable-library
96
97 Enable installation of Bluetooth library
98
99 By default the Bluetooth library is no longer installed.
100
101 The user interfaces or command line utilities do not
102 require an installed Bluetooth library anymore. This
103 option is provided for legacy third party applications
104 that still depend on the library.
105
106 When the library installation is enabled, it is a good
107 idea to use a separate bluez-library or libbluetooth
108 package for it.
109
110 --disable-tools
111
112 Disable support for Bluetooth utilities
113
114 By default the Bluetooth utilities are built and also
115 installed. For production systems the tools are not
116 needed and this option allows to disable them to save
117 build time and disk space.
118
119 When the tools are selected, it is a good idea to
120 use a separate bluez-tools package for them.
121
122 --disable-cups
123
124 Disable support for CUPS printer backend
125
126 By default the printer backend for CUPS is build and
127 also installed. For systems that do not require printing
128 over Bluetooth, this options allows to disable it.
129
130 When the CUPS backend is selected, it is a good idea to
131 use a separate bluez-cups package for it.
132
133 --disable-monitor
134
135 Disable support for the Bluetooth monitor utility
136
137 By default the monitor utility is enabled. It provides
138 support for HCI level tracing and debugging. For systems
139 that don't require any kind of tracing or debugging
140 capabilities, this options allows to disable it.
141
142 The monitor utility should be placed in the main package
143 along with the daemons. It is universally useful.
144
145 --disable-client
146
147 Disable support for the command line client
148
149 By default the command line client is enabled and uses the
150 readline library. For specific systems where BlueZ is
151 configured by other means, the command line client can be
152 disabled and the dependency on readline is removed.
153
154 The client should be placed in the main package along
155 with the daemons. It is universally useful.
156
157 --disable-systemd
158
159 Disable integration with systemd
160
161 By default the integration with systemd is enabled and
162 installed. This gives the best integration into all
163 distributions based on systemd.
164
165 This option is provided for distributions that do not
166 support systemd. In that case all integration with the
167 init system is up to the package.
168
169 --disable-a2dp
170
171 Disable A2DP profile
172
173 By default bluetoothd supports A2DP profile using a built-in
174 plugin, this option disables it.
175
176 This option is provided for distributions that do not have any
177 audio capabilities.
178
179 --disable-avrcp
180
181 Disable AVRCP profile
182
183 By default bluetoothd supports AVRCP profile using a built-in
184 plugin, this option disables it.
185
186 This option is provided for distributions that do not have any
187 audio capabilities.
188
189 --disable-network
190
191 Disable PANU, NAP, GN profiles
192
193 By default bluetoothd supports PANU, NAP and GN profile using a
194 built-in plugin, this option disables it.
195
196 This option is provided for distributions that do not have any
197 network capabilities.
198
199 --disable-hid
200
201 Disable HID profile
202
203 By default bluetoothd supports HID profile using a built-in
204 plugin, this option disables it.
205
206 This option is provided for distributions that do not have any
207 input capabilities.
208
209 --disable-hog
210
211 Disable HoG profile
212
213 By default bluetoothd supports HoG profile using a built-in
214 plugin, this option disables it.
215
216 This option is provided for distributions that do not have any
217 input capabilities.
218
219 --enable-testing
220
221 Enable testing tools
222
223 By default tools used only for testing emulation are disabled.
224 This option can be used to enable them.
225
226 It is not recommended to enable this option for production
227 systems. These tools may contain tests that depend on specific
228 environment or kernel features in development.
229
230 --enable-experimental
231
232 Enable experimental tools
233
234 By default all tools that are still in development
235 are disabled. This option can be used to enable them.
236
237 It is not recommended to enable this option for production
238 systems. The behavior of the experimental tools is unstable
239 and might still change.
240
241 --enable-deprecated
242
243 Enable deprecated tools
244
245 By default all tools that are no longer maintained are
246 disabled. This option can be used to enable them.
247
248 It is not recommended to enable this option for production
249 systems. The behavior of the deprecated tools may be unstable
250 or simply don't work anymore.
251
252 --enable-external-plugins
253
254 Enable support for external plugins
255
256 By default external plugins for bluetoothd and obexd are not
257 supported and thus disabled.
258
259 External plugins require access to internal, undocumented and
260 unversioned API in said daemons. As such they can break at any
261 time. If you have such plugins, enable this option and work
262 actively with the community to make said plugin part of the
263 upstream bluez project.
264
265 --enable-nfc
266
267 This option enable NFC pairing support.
268
269 By default the integration with neard is disabled, this gives
270 the option to enable it in system where neard is supported.
271
272 The plugin is built into bluetoothd therefore it does not need
273 to be package separately.
274
275 --enable-midi
276
277 This option enable MIDI support via ALSA Sequencer.
278
279 By default midi plugin is disabled since it still considered
280 experimental. When bluetoothd will create a new ALSA Sequencer
281 client and port for each device connected that supports the
282 MIDI GATT primary service.
283
284 The plugin is built into bluetoothd therefore it does not need
285 to be package separately.
286
287 AI Coding Assistants
288 ====================
289
290 For guidance on using AI tools when contributing to BlueZ, see:
291 doc/coding-assistants.rst
292
293
294 Information
295 ===========
296
297 Mailing lists:
298 [email protected]
299
300 For additional information about the project visit BlueZ web site:
301 http://www.bluez.org