From 907e11c880ff15408478b92c7190cd49d5081138 Mon Sep 17 00:00:00 2001 From: Zhao Wei Liang Date: Wed, 26 Feb 2025 15:03:44 +0800 Subject: [PATCH] fix(ble): fixed common kconfig error when controller enable only (cherry picked from commit 5b8ac71ace864a7bb9100a68dc650b8502315411) Co-authored-by: zwl --- components/bt/Kconfig | 2 -- components/bt/common/Kconfig.in | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/components/bt/Kconfig b/components/bt/Kconfig index 65c757a25f..417a8c18e9 100644 --- a/components/bt/Kconfig +++ b/components/bt/Kconfig @@ -81,8 +81,6 @@ menu "Bluetooth" So this option will disable the PMP (ESP_SYSTEM_PMP_IDRAM_SPLIT) menu "Common Options" - visible if (BT_BLUEDROID_ENABLED || BT_NIMBLE_ENABLED) - source "$IDF_PATH/components/bt/common/Kconfig.in" endmenu 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.