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 412endmenu # Bluetooth Classic 413endif # BT_CLASSIC 414 415# MESH (subsys/bluetooth/mesh/Kconfig) 416 417if BT_MESH 418menu "Mesh" 419 420module = BT_MESH 421module-str = "Debug logs" 422source "subsys/logging/Kconfig.template.log_config_inherit" 423 424module = BT_MESH_NET 425module-str = "Network layer" 426source "subsys/logging/Kconfig.template.log_config_inherit" 427 428module = BT_MESH_BRG 429module-str = "Subnet Bridging layer" 430source "subsys/logging/Kconfig.template.log_config_inherit" 431 432module = BT_MESH_RPL 433module-str = "Replay protection list" 434source "subsys/logging/Kconfig.template.log_config_inherit" 435 436module = BT_MESH_TRANS 437module-str = "Transport layer" 438source "subsys/logging/Kconfig.template.log_config_inherit" 439 440module = BT_MESH_BEACON 441module-str = "Beacon" 442source "subsys/logging/Kconfig.template.log_config_inherit" 443 444module = BT_MESH_CRYPTO 445module-str = "Crypto" 446source "subsys/logging/Kconfig.template.log_config_inherit" 447 448module = BT_MESH_KEYS 449module-str = "Key management" 450source "subsys/logging/Kconfig.template.log_config_inherit" 451 452module = BT_MESH_PROV 453module-str = "Provisioning" 454source "subsys/logging/Kconfig.template.log_config_inherit" 455 456module = BT_MESH_PROVISIONER 457module-str = "Provisioner" 458source "subsys/logging/Kconfig.template.log_config_inherit" 459 460module = BT_MESH_PROVISIONEE 461module-str = "Provisioning device" 462source "subsys/logging/Kconfig.template.log_config_inherit" 463 464module = BT_MESH_ACCESS 465module-str = "Access layer" 466source "subsys/logging/Kconfig.template.log_config_inherit" 467 468module = BT_MESH_MODEL 469module-str = "Foundation model" 470source "subsys/logging/Kconfig.template.log_config_inherit" 471 472module = BT_MESH_DFU 473module-str = "DFU model" 474source "subsys/logging/Kconfig.template.log_config_inherit" 475 476module = BT_MESH_ADV 477module-str = "Advertising" 478source "subsys/logging/Kconfig.template.log_config_inherit" 479 480module = BT_MESH_LOW_POWER 481module-str = "Low Power" 482source "subsys/logging/Kconfig.template.log_config_inherit" 483 484module = BT_MESH_FRIEND 485module-str = "Friend" 486source "subsys/logging/Kconfig.template.log_config_inherit" 487 488module = BT_MESH_PROXY 489module-str = "Proxy" 490source "subsys/logging/Kconfig.template.log_config_inherit" 491 492module = BT_MESH_SETTINGS 493module-str = "Persistent settings" 494source "subsys/logging/Kconfig.template.log_config_inherit" 495 496module = BT_MESH_CDB 497module-str = "Configuration database" 498source "subsys/logging/Kconfig.template.log_config_inherit" 499 500module = BT_MESH_CFG 501module-str = "Configuration" 502source "subsys/logging/Kconfig.template.log_config_inherit" 503 504endmenu # Mesh 505endif # BT_MESH 506 507menu "Services" 508 509# BAS 510 511if BT_BAS 512module = BT_BAS 513module-str = BAS 514source "subsys/logging/Kconfig.template.log_config" 515endif # BT_BAS 516 517# CTS 518 519if BT_CTS 520module = BT_CTS 521module-str = CTS 522source "subsys/logging/Kconfig.template.log_config" 523endif # BT_CTS 524 525# HRS 526 527if BT_HRS 528module = BT_HRS 529module-str = HRS 530source "subsys/logging/Kconfig.template.log_config" 531endif # BT_HRS 532 533# TPS 534 535if BT_TPS 536module = BT_TPS 537module-str = TPS 538source "subsys/logging/Kconfig.template.log_config" 539endif # BT_TPS 540 541# IAS 542 543if BT_IAS_CLIENT 544module = BT_IAS_CLIENT 545module-str = "Immediate Alert Service Client" 546source "subsys/logging/Kconfig.template.log_config_inherit" 547endif # BT_IAS_CLIENT 548 549if BT_IAS 550module = BT_IAS 551module-str = IAS 552source "$(ZEPHYR_BASE)/subsys/logging/Kconfig.template.log_config" 553endif # BT_IAS 554 555# OTS (subsys/bluetooth/services/ots/Kconfig) 556 557if BT_OTS_CLIENT 558module = BT_OTS_CLIENT 559module-str = "Object Transfer Service Client" 560source "subsys/logging/Kconfig.template.log_config_inherit" 561endif # BT_OTS_CLIENT 562 563if BT_OTS 564module = BT_OTS 565module-str = BT_OTS 566source "$(ZEPHYR_BASE)/subsys/logging/Kconfig.template.log_config" 567endif # BT_OTS 568 569endmenu # Services 570 571endmenu # Bluetooth logging 572 573endif # BT_LOG 574