From 65037d383143bf490f89b2d47add57f9a659198d Mon Sep 17 00:00:00 2001 From: zwl Date: Wed, 26 Feb 2025 15:24:01 +0800 Subject: [PATCH] fix(ble): fixed common kconfig error when controller enable only --- components/bt/Kconfig | 10 ++++------ components/bt/common/Kconfig.in | 1 + 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/components/bt/Kconfig b/components/bt/Kconfig index 4524c804e2..52485621b8 100644 --- a/components/bt/Kconfig +++ b/components/bt/Kconfig @@ -81,6 +81,10 @@ menu "Bluetooth" We cannot split the memory into 3 different regions (IRAM, BLE-IRAM, DRAM). So this option will disable the PMP (ESP_SYSTEM_PMP_IDRAM_SPLIT) + menu "Common Options" + source "$IDF_PATH/components/bt/common/Kconfig.in" + endmenu + config BT_HCI_LOG_DEBUG_EN depends on BT_BLUEDROID_ENABLED || BT_NIMBLE_ENABLED bool "Enable Bluetooth HCI debug mode" @@ -106,12 +110,6 @@ menu "Bluetooth" This option is to configure the buffer size of the hci adv report cache in hci debug mode. This is a ring buffer, the new data will overwrite the oldest data if the buffer is full. - menu "Common Options" - visible if (BT_BLUEDROID_ENABLED || BT_NIMBLE_ENABLED) - - source "$IDF_PATH/components/bt/common/Kconfig.in" - endmenu - endmenu menuconfig BLE_MESH diff --git a/components/bt/common/Kconfig.in b/components/bt/common/Kconfig.in index f24dbd22f2..74b201b12a 100644 --- a/components/bt/common/Kconfig.in +++ b/components/bt/common/Kconfig.in @@ -1,6 +1,7 @@ config BT_ALARM_MAX_NUM int "Maximum number of Bluetooth alarms" default 50 + depends on (BT_BLUEDROID_ENABLED || BT_NIMBLE_ENABLED) help This option decides the maximum number of alarms which could be used by Bluetooth host.