1# Bluetooth logging configuration options
2
3# Copyright (c) 2023 Nordic Semiconductor ASA
4# SPDX-License-Identifier: Apache-2.0
5
6config BT_LOG
7	# convenience symbol, _no touchy_
8	bool
9	default y if LOG && BT
10
11if BT_LOG
12
13menu "Bluetooth logging"
14
15# (subsys/bluetooth/Kconfig)
16
17module = BT
18module-str = "Bluetooth"
19source "subsys/logging/Kconfig.template.log_config"
20
21# Set BT as the parent module for all the symbols that will use
22# `Kconfig.template.log_config_inherit`. This is more convenient to do it here
23# instead of setting it for every modules.
24#
25# The downside of doing that is that people need to be careful when adding a new
26# parent module because  all the following symbol will use it.
27parent-module = BT
28
29# COMMON (subsys/bluetooth/common/Kconfig)
30
31menu "Common"
32module = BT_HCI_DRIVER
33module-str = "Bluetooth HCI driver"
34source "subsys/logging/Kconfig.template.log_config_inherit"
35
36module = BT_RPA
37module-str = "Bluetooth Resolvable Private Address (RPA)"
38source "subsys/logging/Kconfig.template.log_config_inherit"
39endmenu # Common
40
41menu "Libraries"
42
43if BT_EAD
44module = BT_EAD
45module-str = "Bluetooth Encrypted Advertising Data"
46source "subsys/logging/Kconfig.template.log_config_inherit"
47endif # BT_EAD
48
49if BT_CRYPTO
50module = BT_CRYPTO
51module-str = "Bluetooth Cryptographic Toolbox"
52source "subsys/logging/Kconfig.template.log_config_inherit"
53endif # BT_CRYPTO
54
55endmenu # Libraries
56
57if BT_HCI_HOST
58menu "Host"
59module = BT_ATT
60module-str = "Bluetooth Attribute Protocol (ATT)"
61source "subsys/logging/Kconfig.template.log_config_inherit"
62
63module = BT_GATT
64module-str = "Bluetooth Generic Attribute Profile (GATT)"
65source "subsys/logging/Kconfig.template.log_config_inherit"
66
67module = BT_L2CAP
68module-str = "Bluetooth L2CAP"
69source "subsys/logging/Kconfig.template.log_config_inherit"
70
71if BT_DF
72module = BT_DF
73module-str = "Bluetooth Direction Finding"
74source "subsys/logging/Kconfig.template.log_config_inherit"
75endif # BT_DF
76
77if BT_SETTINGS
78module = BT_SETTINGS
79module-str = "Bluetooth storage"
80source "subsys/logging/Kconfig.template.log_config_inherit"
81endif # BT_SETTINGS
82
83module = BT_HCI_CORE
84module-str = "Bluetooth HCI core"
85source "subsys/logging/Kconfig.template.log_config_inherit"
86
87if BT_CONN
88module = BT_CONN
89module-str = "Bluetooth connection"
90source "subsys/logging/Kconfig.template.log_config_inherit"
91endif # BT_CONN
92
93if BT_ISO
94module = BT_ISO
95module-str = "ISO channel"
96source "subsys/logging/Kconfig.template.log_config_inherit"
97endif # BT_ISO
98
99module = BT_KEYS
100module-str = "Bluetooth security keys"
101source "subsys/logging/Kconfig.template.log_config_inherit"
102
103if BT_SMP
104module = BT_SMP
105module-str = "Bluetooth Security Manager Protocol"
106source "subsys/logging/Kconfig.template.log_config_inherit"
107endif # BT_SMP
108
109module = BT_SERVICE
110module-str = "Bluetooth Services"
111source "subsys/logging/Kconfig.template.log_config_inherit"
112endmenu # LE Host
113endif # BT_HCI_HOST
114
115if BT_AUDIO
116menu "Audio"
117
118if BT_AICS
119module = BT_AICS
120module-str = "Audio Input Control Service"
121source "subsys/logging/Kconfig.template.log_config_inherit"
122endif # BT_AICS
123
124if BT_AICS_CLIENT
125module = BT_AICS_CLIENT
126module-str = "Audio Input Control Service client"
127source "subsys/logging/Kconfig.template.log_config_inherit"
128endif # BT_AICS_CLIENT
129
130if BT_BAP_STREAM
131module = BT_BAP_STREAM
132module-str = "Bluetooth Audio Stream"
133source "subsys/logging/Kconfig.template.log_config_inherit"
134endif # BT_BAP_STREAM
135
136if BT_BAP_BASE
137module = BT_BAP_BASE
138module-str = "Bluetooth Basic Audio Profile Broadcast Audio Source Endpoint"
139source "subsys/logging/Kconfig.template.log_config_inherit"
140endif # BT_BAP_BASE
141
142if BT_BAP_STREAM
143module = BT_AUDIO_CODEC
144module-str = "Bluetooth Audio Codec"
145source "subsys/logging/Kconfig.template.log_config_inherit"
146endif # BT_BAP_STREAM
147
148if BT_ASCS
149module = BT_ASCS
150module-str = "Audio Stream Control Service"
151source "subsys/logging/Kconfig.template.log_config_inherit"
152endif # BT_ASCS
153
154if BT_BAP_UNICAST_SERVER
155module = BT_BAP_UNICAST_SERVER
156module-str = "Bluetooth Audio Unicast Server"
157source "subsys/logging/Kconfig.template.log_config_inherit"
158endif # BT_BAP_UNICAST_SERVER
159
160if BT_BAP_UNICAST_CLIENT
161module = BT_BAP_UNICAST_CLIENT
162module-str = "Basic Audio Profile"
163source "subsys/logging/Kconfig.template.log_config_inherit"
164endif # BT_BAP_UNICAST_CLIENT
165
166if BT_BAP_BROADCAST_SOURCE
167module = BT_BAP_BROADCAST_SOURCE
168module-str = "Bluetooth Audio Broadcast Source"
169source "subsys/logging/Kconfig.template.log_config_inherit"
170endif # BT_BAP_BROADCAST_SOURCE
171
172if BT_BAP_BROADCAST_SINK
173module = BT_BAP_BROADCAST_SINK
174module-str = "Bluetooth Audio Broadcast Sink"
175source "subsys/logging/Kconfig.template.log_config_inherit"
176endif # BT_BAP_BROADCAST_SINK
177
178if BT_BAP_SCAN_DELEGATOR
179module = BT_BAP_SCAN_DELEGATOR
180module-str = "Broadcast Audio Scan Service"
181source "subsys/logging/Kconfig.template.log_config_inherit"
182endif # BT_BAP_SCAN_DELEGATOR
183
184if BT_BAP_BROADCAST_ASSISTANT
185module = BT_BAP_BROADCAST_ASSISTANT
186module-str = "Broadcast Audio Scan Service client debug"
187source "subsys/logging/Kconfig.template.log_config_inherit"
188endif # BT_BAP_BROADCAST_ASSISTANT
189
190if BT_BAP_STREAM
191module = BT_BAP_ISO
192module-str = "Bluetooth Audio ISO"
193source "subsys/logging/Kconfig.template.log_config_inherit"
194endif # BT_BAP_STREAM
195
196# CAP
197
198if BT_CAP_ACCEPTOR
199module = BT_CAP_ACCEPTOR
200module-str = "Common Audio Profile Acceptor"
201source "subsys/logging/Kconfig.template.log_config_inherit"
202endif # BT_CAP_ACCEPTOR
203
204if BT_CAP_INITIATOR
205module = BT_CAP_INITIATOR
206module-str = "Common Audio Profile Initiator"
207source "subsys/logging/Kconfig.template.log_config_inherit"
208endif # BT_CAP_INITIATOR
209
210if BT_CAP_COMMANDER
211module = BT_CAP_COMMANDER
212module-str = "Common Audio Profile Commander"
213source "subsys/logging/Kconfig.template.log_config_inherit"
214endif # BT_CAP_COMMANDER
215
216if BT_CAP_HANDOVER
217module = BT_CAP_HANDOVER
218module-str = "Common Audio Profile Handover"
219source "subsys/logging/Kconfig.template.log_config_inherit"
220endif # BT_CAP_HANDOVER
221
222if BT_AUDIO
223module = BT_CAP_COMMON
224module-str = "Common Audio Profile Common"
225source "subsys/logging/Kconfig.template.log_config_inherit"
226endif # BT_AUDIO
227
228if BT_CAP
229module = BT_CAP_STREAM
230module-str = "Common Audio Profile Stream"
231source "subsys/logging/Kconfig.template.log_config_inherit"
232endif # BT_CAP
233
234# CSIP
235
236if BT_CSIP_SET_MEMBER
237module = BT_CSIP_SET_MEMBER
238module-str = "Coordinated Set Identification Service"
239source "subsys/logging/Kconfig.template.log_config_inherit"
240endif # BT_CSIP_SET_MEMBER
241
242if BT_CSIP_SET_COORDINATOR
243module = BT_CSIP_SET_COORDINATOR
244module-str = "Coordinated Set Identification Profile Set Coordinator"
245source "subsys/logging/Kconfig.template.log_config_inherit"
246endif # BT_CSIP_SET_COORDINATOR
247
248if BT_AUDIO
249module = BT_CSIP_SET_MEMBER_CRYPTO
250module-str = "Coordinated Set Identification Profile crypto functions"
251source "subsys/logging/Kconfig.template.log_config_inherit"
252endif # BT_AUDIO
253
254# HAS
255
256if BT_HAS
257module = BT_HAS
258module-str = "Hearing Access Service"
259source "subsys/logging/Kconfig.template.log_config_inherit"
260endif # BT_HAS
261
262if BT_HAS_CLIENT
263module = BT_HAS_CLIENT
264module-str = "Hearing Access Service Client"
265source "subsys/logging/Kconfig.template.log_config_inherit"
266endif # BT_HAS_CLIENT
267
268# MCS
269
270if BT_MCS
271module = BT_MCS
272module-str = "Media Control Service"
273source "subsys/logging/Kconfig.template.log_config_inherit"
274endif # BT_MCS
275
276if BT_MCC
277module = BT_MCC
278module-str = "Media Control Client"
279source "subsys/logging/Kconfig.template.log_config_inherit"
280endif # BT_MCC
281
282# MCTL
283
284if MCTL
285module = MCTL
286module-str = "Media control"
287source "subsys/logging/Kconfig.template.log_config_inherit"
288endif # MCTL
289
290# MICP
291
292if BT_MICP_MIC_DEV
293module = BT_MICP_MIC_DEV
294module-str = "Microphone Control Profile Microphone Device"
295source "subsys/logging/Kconfig.template.log_config_inherit"
296endif # BT_MICP_MIC_DEV
297
298if BT_MICP_MIC_CTLR
299module = BT_MICP_MIC_CTLR
300module-str = "Microphone Control Profile Microphone Controller"
301source "subsys/logging/Kconfig.template.log_config_inherit"
302endif # BT_MICP_MIC_CTLR
303
304# MPL
305
306if BT_MPL
307module = BT_MPL
308module-str = "Media player"
309source "subsys/logging/Kconfig.template.log_config_inherit"
310endif # BT_MPL
311
312# PACS
313
314if BT_PACS
315module = BT_PACS
316module-str = "Published Audio Capabilities Service"
317source "subsys/logging/Kconfig.template.log_config_inherit"
318endif # BT_PACS
319
320# TBS
321
322if BT_TBS
323module = BT_TBS
324module-str = "Telephone Bearer Service"
325source "subsys/logging/Kconfig.template.log_config_inherit"
326endif # BT_TBS
327
328if BT_TBS_CLIENT
329module = BT_TBS_CLIENT
330module-str = "Telephone Bearer Service client"
331source "subsys/logging/Kconfig.template.log_config_inherit"
332endif # BT_TBS_CLIENT
333
334# VCP
335
336if BT_VCP_VOL_REND
337module = BT_VCP_VOL_REND
338module-str = "Volume Control Profile Volume Renderer"
339source "subsys/logging/Kconfig.template.log_config_inherit"
340endif # BT_VCP_VOL_REND
341
342if BT_VCP_VOL_CTLR
343module = BT_VCP_VOL_CTLR
344module-str = "Volume Control Profile Volume Controller"
345source "subsys/logging/Kconfig.template.log_config_inherit"
346endif # BT_VCP_VOL_CTLR
347
348# VOCS
349
350if BT_VOCS
351module = BT_VOCS
352module-str = "Volume Offset Control Service"
353source "subsys/logging/Kconfig.template.log_config_inherit"
354endif # BT_VOCS
355
356if BT_VOCS_CLIENT
357module = BT_VOCS_CLIENT
358module-str = "Volume Offset Control Service client"
359source "subsys/logging/Kconfig.template.log_config_inherit"
360endif # BT_VOCS_CLIENT
361
362# PBP
363
364if BT_PBP
365module = BT_PBP
366module-str = "Public Broadcast Profile"
367source "$(ZEPHYR_BASE)/subsys/logging/Kconfig.template.log_config"
368endif # BT_PBP
369
370endmenu # Audio
371endif # BT_AUDIO
372
373if BT_CLASSIC
374menu "Bluetooth Classic"
375
376module = BT_RFCOMM
377module-str = "Bluetooth RFCOMM"
378source "subsys/logging/Kconfig.template.log_config_inherit"
379
380module = BT_HFP_HF
381module-str = "Bluetooth Hands Free Profile (HFP)"
382source "subsys/logging/Kconfig.template.log_config_inherit"
383
384module = BT_HFP_AG
385module-str = "Bluetooth Hands Free Audio Gateway Profile (HFP AG)"
386source "subsys/logging/Kconfig.template.log_config_inherit"
387
388module = BT_AVDTP
389module-str = "Bluetooth AVDTP debug"
390source "subsys/logging/Kconfig.template.log_config_inherit"
391
392module = BT_A2DP
393module-str = "Bluetooth A2DP"
394source "subsys/logging/Kconfig.template.log_config_inherit"
395
396module = BT_AVCTP
397module-str = "Bluetooth AVCTP"
398source "subsys/logging/Kconfig.template.log_config_inherit"
399
400module = BT_AVRCP
401module-str = "Bluetooth AVRCP"
402source "subsys/logging/Kconfig.template.log_config_inherit"
403
404module = BT_SDP
405module-str = "Bluetooth Service Discovery Protocol (SDP)"
406source "subsys/logging/Kconfig.template.log_config_inherit"
407
408module = BT_GOEP
409module-str = "Bluetooth Generic Object Exchange Profile (GOEP)"
410source "subsys/logging/Kconfig.template.log_config_inherit"
411
412module = BT_BIP
413module-str = "Bluetooth Basic Imaging Profile (BIP)"
414source "subsys/logging/Kconfig.template.log_config_inherit"
415
416endmenu # Bluetooth Classic
417endif # BT_CLASSIC
418
419# MESH (subsys/bluetooth/mesh/Kconfig)
420
421if BT_MESH
422menu "Mesh"
423
424module = BT_MESH
425module-str = "Debug logs"
426source "subsys/logging/Kconfig.template.log_config_inherit"
427
428module = BT_MESH_NET
429module-str = "Network layer"
430source "subsys/logging/Kconfig.template.log_config_inherit"
431
432module = BT_MESH_BRG
433module-str = "Subnet Bridging layer"
434source "subsys/logging/Kconfig.template.log_config_inherit"
435
436module = BT_MESH_RPL
437module-str = "Replay protection list"
438source "subsys/logging/Kconfig.template.log_config_inherit"
439
440module = BT_MESH_TRANS
441module-str = "Transport layer"
442source "subsys/logging/Kconfig.template.log_config_inherit"
443
444module = BT_MESH_BEACON
445module-str = "Beacon"
446source "subsys/logging/Kconfig.template.log_config_inherit"
447
448module = BT_MESH_CRYPTO
449module-str = "Crypto"
450source "subsys/logging/Kconfig.template.log_config_inherit"
451
452module = BT_MESH_KEYS
453module-str = "Key management"
454source "subsys/logging/Kconfig.template.log_config_inherit"
455
456module = BT_MESH_PROV
457module-str = "Provisioning"
458source "subsys/logging/Kconfig.template.log_config_inherit"
459
460module = BT_MESH_PROVISIONER
461module-str = "Provisioner"
462source "subsys/logging/Kconfig.template.log_config_inherit"
463
464module = BT_MESH_PROVISIONEE
465module-str = "Provisioning device"
466source "subsys/logging/Kconfig.template.log_config_inherit"
467
468module = BT_MESH_ACCESS
469module-str = "Access layer"
470source "subsys/logging/Kconfig.template.log_config_inherit"
471
472module = BT_MESH_MODEL
473module-str = "Foundation model"
474source "subsys/logging/Kconfig.template.log_config_inherit"
475
476module = BT_MESH_DFU
477module-str = "DFU model"
478source "subsys/logging/Kconfig.template.log_config_inherit"
479
480module = BT_MESH_ADV
481module-str = "Advertising"
482source "subsys/logging/Kconfig.template.log_config_inherit"
483
484module = BT_MESH_LOW_POWER
485module-str = "Low Power"
486source "subsys/logging/Kconfig.template.log_config_inherit"
487
488module = BT_MESH_FRIEND
489module-str = "Friend"
490source "subsys/logging/Kconfig.template.log_config_inherit"
491
492module = BT_MESH_PROXY
493module-str = "Proxy"
494source "subsys/logging/Kconfig.template.log_config_inherit"
495
496module = BT_MESH_SETTINGS
497module-str = "Persistent settings"
498source "subsys/logging/Kconfig.template.log_config_inherit"
499
500module = BT_MESH_CDB
501module-str = "Configuration database"
502source "subsys/logging/Kconfig.template.log_config_inherit"
503
504module = BT_MESH_CFG
505module-str = "Configuration"
506source "subsys/logging/Kconfig.template.log_config_inherit"
507
508endmenu # Mesh
509endif # BT_MESH
510
511menu "Services"
512
513# BAS
514
515if BT_BAS
516module = BT_BAS
517module-str = BAS
518source "subsys/logging/Kconfig.template.log_config"
519endif # BT_BAS
520
521# CTS
522
523if BT_CTS
524module = BT_CTS
525module-str = CTS
526source "subsys/logging/Kconfig.template.log_config"
527endif # BT_CTS
528
529# HRS
530
531if BT_HRS
532module = BT_HRS
533module-str = HRS
534source "subsys/logging/Kconfig.template.log_config"
535endif # BT_HRS
536
537# TPS
538
539if BT_TPS
540module = BT_TPS
541module-str = TPS
542source "subsys/logging/Kconfig.template.log_config"
543endif # BT_TPS
544
545# IAS
546
547if BT_IAS_CLIENT
548module = BT_IAS_CLIENT
549module-str = "Immediate Alert Service Client"
550source "subsys/logging/Kconfig.template.log_config_inherit"
551endif # BT_IAS_CLIENT
552
553if BT_IAS
554module = BT_IAS
555module-str = IAS
556source "$(ZEPHYR_BASE)/subsys/logging/Kconfig.template.log_config"
557endif # BT_IAS
558
559# OTS (subsys/bluetooth/services/ots/Kconfig)
560
561if BT_OTS_CLIENT
562module = BT_OTS_CLIENT
563module-str = "Object Transfer Service Client"
564source "subsys/logging/Kconfig.template.log_config_inherit"
565endif # BT_OTS_CLIENT
566
567if BT_OTS
568module = BT_OTS
569module-str = BT_OTS
570source "$(ZEPHYR_BASE)/subsys/logging/Kconfig.template.log_config"
571endif # BT_OTS
572
573endmenu # Services
574
575endmenu # Bluetooth logging
576
577endif # BT_LOG
578