Skip to content

Commit 3324eec

Browse files
jori-nordicnashif
authored andcommitted
Bluetooth: Re-organize logging Kconfig options
- got rid of "Others" menu - JK I made a new one: "Common" - moved all host-related opts to "Host" instead of "Others" - moved all audio-related opts behind `if BT_AUDIO` - moved only controller kconfig to controller/Kconfig.ll_sw_split - it had a dependency there already Signed-off-by: Jonathan Rico <[email protected]>
1 parent f7631d4 commit 3324eec

File tree

2 files changed

+82
-88
lines changed

2 files changed

+82
-88
lines changed

subsys/bluetooth/Kconfig.logging

Lines changed: 78 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,91 @@ parent-module = BT
2828

2929
# COMMON (subsys/bluetooth/common/Kconfig)
3030

31+
menu "Common"
3132
module = BT_HCI_DRIVER
3233
module-str = "Bluetooth HCI driver"
3334
source "subsys/logging/Kconfig.template.log_config_inherit"
3435

3536
module = BT_RPA
3637
module-str = "Bluetooth Resolvable Private Address (RPA)"
3738
source "subsys/logging/Kconfig.template.log_config_inherit"
39+
endmenu # Common
3840

41+
menu "Libraries"
42+
43+
if BT_EAD
44+
module = BT_EAD
45+
module-str = "Bluetooth Encrypted Advertising Data"
46+
source "subsys/logging/Kconfig.template.log_config_inherit"
47+
endif # BT_EAD
48+
49+
if BT_CRYPTO
50+
module = BT_CRYPTO
51+
module-str = "Bluetooth Cryptographic Toolbox"
52+
source "subsys/logging/Kconfig.template.log_config_inherit"
53+
endif # BT_CRYPTO
54+
55+
endmenu # Libraries
56+
57+
if BT_HCI_HOST
58+
menu "Host"
59+
module = BT_ATT
60+
module-str = "Bluetooth Attribute Protocol (ATT)"
61+
source "subsys/logging/Kconfig.template.log_config_inherit"
62+
63+
module = BT_GATT
64+
module-str = "Bluetooth Generic Attribute Profile (GATT)"
65+
source "subsys/logging/Kconfig.template.log_config_inherit"
66+
67+
module = BT_L2CAP
68+
module-str = "Bluetooth L2CAP"
69+
source "subsys/logging/Kconfig.template.log_config_inherit"
70+
71+
if BT_DF
72+
module = BT_DF
73+
module-str = "Bluetooth Direction Finding"
74+
source "subsys/logging/Kconfig.template.log_config_inherit"
75+
endif # BT_DF
76+
77+
if BT_SETTINGS
78+
module = BT_SETTINGS
79+
module-str = "Bluetooth storage"
80+
source "subsys/logging/Kconfig.template.log_config_inherit"
81+
endif # BT_SETTINGS
82+
83+
module = BT_HCI_CORE
84+
module-str = "Bluetooth HCI core"
85+
source "subsys/logging/Kconfig.template.log_config_inherit"
86+
87+
if BT_CONN
88+
module = BT_CONN
89+
module-str = "Bluetooth connection"
90+
source "subsys/logging/Kconfig.template.log_config_inherit"
91+
endif # BT_CONN
92+
93+
if BT_ISO
94+
module = BT_ISO
95+
module-str = "ISO channel"
96+
source "subsys/logging/Kconfig.template.log_config_inherit"
97+
endif # BT_ISO
98+
99+
module = BT_KEYS
100+
module-str = "Bluetooth security keys"
101+
source "subsys/logging/Kconfig.template.log_config_inherit"
102+
103+
if BT_SMP
104+
module = BT_SMP
105+
module-str = "Bluetooth Security Manager Protocol"
106+
source "subsys/logging/Kconfig.template.log_config_inherit"
107+
endif # BT_SMP
108+
109+
module = BT_SERVICE
110+
module-str = "Bluetooth Services"
111+
source "subsys/logging/Kconfig.template.log_config_inherit"
112+
endmenu # LE Host
113+
endif # BT_HCI_HOST
114+
115+
if BT_AUDIO
39116
menu "Audio"
40117

41118
if BT_AICS
@@ -285,94 +362,7 @@ source "${ZEPHYR_BASE}/subsys/logging/Kconfig.template.log_config"
285362
endif # BT_PBP
286363

287364
endmenu # Audio
288-
289-
menu "Others"
290-
291-
# CRYPTO (subsys/bluetooth/crypto/Kconfig)
292-
293-
if BT_CRYPTO
294-
module = BT_CRYPTO
295-
module-str = "Bluetooth Cryptographic Toolbox"
296-
source "subsys/logging/Kconfig.template.log_config_inherit"
297-
endif # BT_CRYPTO
298-
299-
# GATT
300-
301-
module = BT_ATT
302-
module-str = "Bluetooth Attribute Protocol (ATT)"
303-
source "subsys/logging/Kconfig.template.log_config_inherit"
304-
305-
module = BT_GATT
306-
module-str = "Bluetooth Generic Attribute Profile (GATT)"
307-
source "subsys/logging/Kconfig.template.log_config_inherit"
308-
309-
# L2CAP
310-
311-
module = BT_L2CAP
312-
module-str = "Bluetooth L2CAP"
313-
source "subsys/logging/Kconfig.template.log_config_inherit"
314-
315-
# LIB (subsys/bluetooth/lib/Kconfig)
316-
317-
if BT_EAD
318-
module = BT_EAD
319-
module-str = "Bluetooth Encrypted Advertising Data"
320-
source "subsys/logging/Kconfig.template.log_config_inherit"
321-
endif # BT_EAD
322-
323-
# HOST (subsys/bluetooth/host/Kconfig)
324-
325-
if BT_DF
326-
module = BT_DF
327-
module-str = "Bluetooth Direction Finding"
328-
source "subsys/logging/Kconfig.template.log_config_inherit"
329-
endif # BT_DF
330-
331-
if BT_SETTINGS
332-
module = BT_SETTINGS
333-
module-str = "Bluetooth storage"
334-
source "subsys/logging/Kconfig.template.log_config_inherit"
335-
endif # BT_SETTINGS
336-
337-
module = BT_HCI_CORE
338-
module-str = "Bluetooth HCI core"
339-
source "subsys/logging/Kconfig.template.log_config_inherit"
340-
341-
if BT_CONN
342-
module = BT_CONN
343-
module-str = "Bluetooth connection"
344-
source "subsys/logging/Kconfig.template.log_config_inherit"
345-
endif # BT_CONN
346-
347-
if BT_ISO
348-
module = BT_ISO
349-
module-str = "ISO channel"
350-
source "subsys/logging/Kconfig.template.log_config_inherit"
351-
endif # BT_ISO
352-
353-
module = BT_KEYS
354-
module-str = "Bluetooth security keys"
355-
source "subsys/logging/Kconfig.template.log_config_inherit"
356-
357-
if BT_SMP
358-
module = BT_SMP
359-
module-str = "Bluetooth Security Manager Protocol"
360-
source "subsys/logging/Kconfig.template.log_config_inherit"
361-
endif # BT_SMP
362-
363-
module = BT_SERVICE
364-
module-str = "Bluetooth Services"
365-
source "subsys/logging/Kconfig.template.log_config_inherit"
366-
367-
# CONTROLLER (subsys/bluetooth/controller/Kconfig)
368-
369-
if BT_ISO
370-
module = BT_CTLR_ISOAL
371-
module-str = "Bluetooth Controller ISO-AL"
372-
source "subsys/logging/Kconfig.template.log_config_inherit"
373-
endif # BT_ISO
374-
375-
endmenu # Others
365+
endif # BT_AUDIO
376366

377367
if BT_CLASSIC
378368
menu "Bluetooth Classic"

subsys/bluetooth/controller/Kconfig.ll_sw_split

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,10 @@ config BT_CTLR_CHECK_SAME_PEER_SYNC
219219

220220
endif # BT_CTLR_ADV_EXT
221221

222+
module = BT_CTLR_ISOAL
223+
module-str = "Bluetooth Controller ISO-AL"
224+
source "subsys/logging/Kconfig.template.log_config_inherit"
225+
222226
config BT_CTLR_ISOAL_LOG_DBG_VERBOSE
223227
bool "ISO-AL verbose debug logging"
224228
depends on BT_CTLR_ISOAL_LOG_LEVEL = 4

0 commit comments

Comments
 (0)