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_AUDIO 217module = BT_CAP_COMMON 218module-str = "Common Audio Profile Common" 219source "subsys/logging/Kconfig.template.log_config_inherit" 220endif # BT_AUDIO 221 222if BT_CAP 223module = BT_CAP_STREAM 224module-str = "Common Audio Profile Stream" 225source "subsys/logging/Kconfig.template.log_config_inherit" 226endif # BT_CAP 227 228# CSIP 229 230if BT_CSIP_SET_MEMBER 231module = BT_CSIP_SET_MEMBER 232module-str = "Coordinated Set Identification Service" 233source "subsys/logging/Kconfig.template.log_config_inherit" 234endif # BT_CSIP_SET_MEMBER 235 236if BT_CSIP_SET_COORDINATOR 237module = BT_CSIP_SET_COORDINATOR 238module-str = "Coordinated Set Identification Profile Set Coordinator" 239source "subsys/logging/Kconfig.template.log_config_inherit" 240endif # BT_CSIP_SET_COORDINATOR 241 242if BT_AUDIO 243module = BT_CSIP_SET_MEMBER_CRYPTO 244module-str = "Coordinated Set Identification Profile crypto functions" 245source "subsys/logging/Kconfig.template.log_config_inherit" 246endif # BT_AUDIO 247 248# HAS 249 250if BT_HAS 251module = BT_HAS 252module-str = "Hearing Access Service" 253source "subsys/logging/Kconfig.template.log_config_inherit" 254endif # BT_HAS 255 256if BT_HAS_CLIENT 257module = BT_HAS_CLIENT 258module-str = "Hearing Access Service Client" 259source "subsys/logging/Kconfig.template.log_config_inherit" 260endif # BT_HAS_CLIENT 261 262# MCS 263 264if BT_MCS 265module = BT_MCS 266module-str = "Media Control Service" 267source "subsys/logging/Kconfig.template.log_config_inherit" 268endif # BT_MCS 269 270if BT_MCC 271module = BT_MCC 272module-str = "Media Control Client" 273source "subsys/logging/Kconfig.template.log_config_inherit" 274endif # BT_MCC 275 276# MCTL 277 278if MCTL 279module = MCTL 280module-str = "Media control" 281source "subsys/logging/Kconfig.template.log_config_inherit" 282endif # MCTL 283 284# MICP 285 286if BT_MICP_MIC_DEV 287module = BT_MICP_MIC_DEV 288module-str = "Microphone Control Profile Microphone Device" 289source "subsys/logging/Kconfig.template.log_config_inherit" 290endif # BT_MICP_MIC_DEV 291 292if BT_MICP_MIC_CTLR 293module = BT_MICP_MIC_CTLR 294module-str = "Microphone Control Profile Microphone Controller" 295source "subsys/logging/Kconfig.template.log_config_inherit" 296endif # BT_MICP_MIC_CTLR 297 298# MPL 299 300if BT_MPL 301module = BT_MPL 302module-str = "Media player" 303source "subsys/logging/Kconfig.template.log_config_inherit" 304endif # BT_MPL 305 306# PACS 307 308if BT_PACS 309module = BT_PACS 310module-str = "Published Audio Capabilities Service" 311source "subsys/logging/Kconfig.template.log_config_inherit" 312endif # BT_PACS 313 314# TBS 315 316if BT_TBS 317module = BT_TBS 318module-str = "Telephone Bearer Service" 319source "subsys/logging/Kconfig.template.log_config_inherit" 320endif # BT_TBS 321 322if BT_TBS_CLIENT 323module = BT_TBS_CLIENT 324module-str = "Telephone Bearer Service client" 325source "subsys/logging/Kconfig.template.log_config_inherit" 326endif # BT_TBS_CLIENT 327 328# VCP 329 330if BT_VCP_VOL_REND 331module = BT_VCP_VOL_REND 332module-str = "Volume Control Profile Volume Renderer" 333source "subsys/logging/Kconfig.template.log_config_inherit" 334endif # BT_VCP_VOL_REND 335 336if BT_VCP_VOL_CTLR 337module = BT_VCP_VOL_CTLR 338module-str = "Volume Control Profile Volume Controller" 339source "subsys/logging/Kconfig.template.log_config_inherit" 340endif # BT_VCP_VOL_CTLR 341 342# VOCS 343 344if BT_VOCS 345module = BT_VOCS 346module-str = "Volume Offset Control Service" 347source "subsys/logging/Kconfig.template.log_config_inherit" 348endif # BT_VOCS 349 350if BT_VOCS_CLIENT 351module = BT_VOCS_CLIENT 352module-str = "Volume Offset Control Service client" 353source "subsys/logging/Kconfig.template.log_config_inherit" 354endif # BT_VOCS_CLIENT 355 356# PBP 357 358if BT_PBP 359module = BT_PBP 360module-str = "Public Broadcast Profile" 361source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config" 362endif # BT_PBP 363 364endmenu # Audio 365endif # BT_AUDIO 366 367if BT_CLASSIC 368menu "Bluetooth Classic" 369 370module = BT_RFCOMM 371module-str = "Bluetooth RFCOMM" 372source "subsys/logging/Kconfig.template.log_config_inherit" 373 374module = BT_HFP_HF 375module-str = "Bluetooth Hands Free Profile (HFP)" 376source "subsys/logging/Kconfig.template.log_config_inherit" 377 378module = BT_HFP_AG 379module-str = "Bluetooth Hands Free Audio Gateway Profile (HFP AG)" 380source "subsys/logging/Kconfig.template.log_config_inherit" 381 382module = BT_AVDTP 383module-str = "Bluetooth AVDTP debug" 384source "subsys/logging/Kconfig.template.log_config_inherit" 385 386module = BT_A2DP 387module-str = "Bluetooth A2DP" 388source "subsys/logging/Kconfig.template.log_config_inherit" 389 390module = BT_AVCTP 391module-str = "Bluetooth AVCTP" 392source "subsys/logging/Kconfig.template.log_config_inherit" 393 394module = BT_AVRCP 395module-str = "Bluetooth AVRCP" 396source "subsys/logging/Kconfig.template.log_config_inherit" 397 398module = BT_SDP 399module-str = "Bluetooth Service Discovery Protocol (SDP)" 400source "subsys/logging/Kconfig.template.log_config_inherit" 401 402endmenu # Bluetooth Classic 403endif # BT_CLASSIC 404 405# MESH (subsys/bluetooth/mesh/Kconfig) 406 407if BT_MESH 408menu "Mesh" 409 410module = BT_MESH 411module-str = "Debug logs" 412source "subsys/logging/Kconfig.template.log_config_inherit" 413 414module = BT_MESH_NET 415module-str = "Network layer" 416source "subsys/logging/Kconfig.template.log_config_inherit" 417 418module = BT_MESH_BRG 419module-str = "Subnet Bridging layer" 420source "subsys/logging/Kconfig.template.log_config_inherit" 421 422module = BT_MESH_RPL 423module-str = "Replay protection list" 424source "subsys/logging/Kconfig.template.log_config_inherit" 425 426module = BT_MESH_TRANS 427module-str = "Transport layer" 428source "subsys/logging/Kconfig.template.log_config_inherit" 429 430module = BT_MESH_BEACON 431module-str = "Beacon" 432source "subsys/logging/Kconfig.template.log_config_inherit" 433 434module = BT_MESH_CRYPTO 435module-str = "Crypto" 436source "subsys/logging/Kconfig.template.log_config_inherit" 437 438module = BT_MESH_KEYS 439module-str = "Key management" 440source "subsys/logging/Kconfig.template.log_config_inherit" 441 442module = BT_MESH_PROV 443module-str = "Provisioning" 444source "subsys/logging/Kconfig.template.log_config_inherit" 445 446module = BT_MESH_PROVISIONER 447module-str = "Provisioner" 448source "subsys/logging/Kconfig.template.log_config_inherit" 449 450module = BT_MESH_PROVISIONEE 451module-str = "Provisioning device" 452source "subsys/logging/Kconfig.template.log_config_inherit" 453 454module = BT_MESH_ACCESS 455module-str = "Access layer" 456source "subsys/logging/Kconfig.template.log_config_inherit" 457 458module = BT_MESH_MODEL 459module-str = "Foundation model" 460source "subsys/logging/Kconfig.template.log_config_inherit" 461 462module = BT_MESH_DFU 463module-str = "DFU model" 464source "subsys/logging/Kconfig.template.log_config_inherit" 465 466module = BT_MESH_ADV 467module-str = "Advertising" 468source "subsys/logging/Kconfig.template.log_config_inherit" 469 470module = BT_MESH_LOW_POWER 471module-str = "Low Power" 472source "subsys/logging/Kconfig.template.log_config_inherit" 473 474module = BT_MESH_FRIEND 475module-str = "Friend" 476source "subsys/logging/Kconfig.template.log_config_inherit" 477 478module = BT_MESH_PROXY 479module-str = "Proxy" 480source "subsys/logging/Kconfig.template.log_config_inherit" 481 482module = BT_MESH_SETTINGS 483module-str = "Persistent settings" 484source "subsys/logging/Kconfig.template.log_config_inherit" 485 486module = BT_MESH_CDB 487module-str = "Configuration database" 488source "subsys/logging/Kconfig.template.log_config_inherit" 489 490module = BT_MESH_CFG 491module-str = "Configuration" 492source "subsys/logging/Kconfig.template.log_config_inherit" 493 494endmenu # Mesh 495endif # BT_MESH 496 497menu "Services" 498 499# BAS 500 501if BT_BAS 502module = BT_BAS 503module-str = BAS 504source "subsys/logging/Kconfig.template.log_config" 505endif # BT_BAS 506 507# CTS 508 509if BT_CTS 510module = BT_CTS 511module-str = CTS 512source "subsys/logging/Kconfig.template.log_config" 513endif # BT_CTS 514 515# HRS 516 517if BT_HRS 518module = BT_HRS 519module-str = HRS 520source "subsys/logging/Kconfig.template.log_config" 521endif # BT_HRS 522 523# TPS 524 525if BT_TPS 526module = BT_TPS 527module-str = TPS 528source "subsys/logging/Kconfig.template.log_config" 529endif # BT_TPS 530 531# IAS 532 533if BT_IAS_CLIENT 534module = BT_IAS_CLIENT 535module-str = "Immediate Alert Service Client" 536source "subsys/logging/Kconfig.template.log_config_inherit" 537endif # BT_IAS_CLIENT 538 539if BT_IAS 540module = BT_IAS 541module-str = IAS 542source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config" 543endif # BT_IAS 544 545# OTS (subsys/bluetooth/services/ots/Kconfig) 546 547if BT_OTS_CLIENT 548module = BT_OTS_CLIENT 549module-str = "Object Transfer Service Client" 550source "subsys/logging/Kconfig.template.log_config_inherit" 551endif # BT_OTS_CLIENT 552 553if BT_OTS 554module = BT_OTS 555module-str = BT_OTS 556source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config" 557endif # BT_OTS 558 559endmenu # Services 560 561endmenu # Bluetooth logging 562 563endif # BT_LOG 564