mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
feat(ble): reorganize log compression Kconfig and add ISO
Move sub-Kconfig files into categorized directories (profile/mesh/, host/, iso/audio/) and create the missing ISO/Audio compression Kconfig with COMPRESSION + PRESERVE pairs for all 4 log levels, matching the existing cmake tag definitions.
This commit is contained in:
@@ -15,6 +15,7 @@ config BLE_COMPRESSED_LOG_ENABLE
|
||||
for installation instructions.
|
||||
|
||||
if BLE_COMPRESSED_LOG_ENABLE
|
||||
source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/Kconfig.mesh.in"
|
||||
source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/Kconfig.host.in"
|
||||
source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/profile/mesh/Kconfig.mesh.in"
|
||||
source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/iso/audio/Kconfig.iso.in"
|
||||
source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/host/Kconfig.host.in"
|
||||
endif
|
||||
|
||||
+2
-2
@@ -22,5 +22,5 @@ config BLE_HOST_COMPRESSED_LOG_BUFFER_LEN
|
||||
help
|
||||
Maximum output length for a single log
|
||||
|
||||
source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/Kconfig.host.bluedroid.in"
|
||||
source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/Kconfig.host.nimble.in"
|
||||
source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/host/Kconfig.host.bluedroid.in"
|
||||
source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/host/Kconfig.host.nimble.in"
|
||||
@@ -0,0 +1,28 @@
|
||||
|
||||
menuconfig BLE_ISO_COMPRESSED_LOG_ENABLE
|
||||
bool "Enable BLE Audio/ISO log compression(Preview)"
|
||||
depends on BLE_COMPRESSED_LOG_ENABLE
|
||||
depends on BT_ISO
|
||||
default n
|
||||
help
|
||||
Apply compression to BLE Audio/ISO protocol stack logs. Requires
|
||||
base BLE compression to be enabled. Specifically optimizes log
|
||||
storage and transmission for BLE Audio and ISO.
|
||||
|
||||
Note: This library depends on additional Python packages. It will
|
||||
function correctly only after these dependencies are installed;
|
||||
refer to:
|
||||
"components/bt/common/ble_log/log_compression/README.en.md"
|
||||
for installation instructions.
|
||||
|
||||
If the required packages are not installed, the log-compression
|
||||
mechanism will remain disabled even when this Config is enabled.
|
||||
|
||||
config BLE_ISO_COMPRESSED_LOG_BUFFER_LEN
|
||||
int "BLE Audio/ISO log buffer length"
|
||||
depends on BLE_ISO_COMPRESSED_LOG_ENABLE
|
||||
default 300
|
||||
help
|
||||
Maximum output length for a single log
|
||||
|
||||
source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/iso/audio/Kconfig.iso.tags.in"
|
||||
@@ -0,0 +1,62 @@
|
||||
if BLE_ISO_COMPRESSED_LOG_ENABLE
|
||||
menu "Select the Audio/ISO stack log tag to be compressed"
|
||||
config BLE_ISO_STACK_ERR_LOG_COMPRESSION
|
||||
bool "Compress ERROR log of BLE Audio/ISO"
|
||||
default y
|
||||
help
|
||||
The error log in the BLE Audio/ISO component will be compressed
|
||||
config BLE_ISO_STACK_ERR_LOG_PRESERVE
|
||||
bool "Keep the original error log statement"
|
||||
depends on BLE_ISO_STACK_ERR_LOG_COMPRESSION
|
||||
default y
|
||||
help
|
||||
When this option is enabled, the log data will be output
|
||||
through both the compressed log interface and the original
|
||||
UART interface at the same time, meaning that the log
|
||||
statements will appear on both paths. However, please note
|
||||
that this dual-output approach introduces additional code
|
||||
and string constants, which will increase the size of the
|
||||
firmware binary file. When this option is disabled, the
|
||||
logs will no longer be printed through the original UART
|
||||
output path; instead, they will only be output through the
|
||||
compressed log interface. As the code and strings related
|
||||
to the original UART output are omitted, the size of the
|
||||
firmware binary file can be effectively reduced.
|
||||
|
||||
config BLE_ISO_STACK_WARN_LOG_COMPRESSION
|
||||
bool "Compress WARN log of BLE Audio/ISO"
|
||||
default y
|
||||
help
|
||||
The warn log in the BLE Audio/ISO component will be compressed
|
||||
config BLE_ISO_STACK_WARN_LOG_PRESERVE
|
||||
bool "Keep the original warn log statement"
|
||||
depends on BLE_ISO_STACK_WARN_LOG_COMPRESSION
|
||||
default y
|
||||
help
|
||||
Please refer to the help information in BLE_ISO_STACK_ERR_LOG_PRESERVE
|
||||
|
||||
config BLE_ISO_STACK_INFO_LOG_COMPRESSION
|
||||
bool "Compress INFO log of BLE Audio/ISO"
|
||||
default y
|
||||
help
|
||||
The info log in the BLE Audio/ISO component will be compressed
|
||||
config BLE_ISO_STACK_INFO_LOG_PRESERVE
|
||||
bool "Keep the original info log statement"
|
||||
depends on BLE_ISO_STACK_INFO_LOG_COMPRESSION
|
||||
default n
|
||||
help
|
||||
Please refer to the help information in BLE_ISO_STACK_ERR_LOG_PRESERVE
|
||||
|
||||
config BLE_ISO_STACK_DEBUG_LOG_COMPRESSION
|
||||
bool "Compress DEBUG log of BLE Audio/ISO"
|
||||
default y
|
||||
help
|
||||
The debug log in the BLE Audio/ISO component will be compressed
|
||||
config BLE_ISO_STACK_DEBUG_LOG_PRESERVE
|
||||
bool "Keep the original debug log statement"
|
||||
depends on BLE_ISO_STACK_DEBUG_LOG_COMPRESSION
|
||||
default n
|
||||
help
|
||||
Please refer to the help information in BLE_ISO_STACK_ERR_LOG_PRESERVE
|
||||
endmenu
|
||||
endif
|
||||
+1
-1
@@ -25,4 +25,4 @@ config BLE_MESH_COMPRESSED_LOG_BUFFER_LEN
|
||||
help
|
||||
Maximum output length for a single log
|
||||
|
||||
source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/Kconfig.mesh.tags.in"
|
||||
source "$IDF_PATH/components/bt/common/ble_log/extension/log_compression/profile/mesh/Kconfig.mesh.tags.in"
|
||||
Reference in New Issue
Block a user