From f90f706e6ed1d2afdc7b1ded13062a59f5c4fa97 Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Tue, 20 Jan 2026 16:23:13 +0100 Subject: [PATCH] fix(bt/config): use osource for target controller configuration In cmakev2, the configuration for all components is included because the complete configuration is generated very early, before any component is actually evaluated. This poses a problem for the Linux target, which does not have a controller Kconfig.in file, causing kconfgen to fail due to the missing include. To address this, let's use the osource command, which does not include the referenced Kconfig file if it does not exist. Closes https://github.com/espressif/esp-idf/issues/18142 Signed-off-by: Frantisek Hrbata --- components/bt/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/bt/Kconfig b/components/bt/Kconfig index 9bd635734db..d9c2fdc7536 100644 --- a/components/bt/Kconfig +++ b/components/bt/Kconfig @@ -66,7 +66,7 @@ menu "Bluetooth" menu "Controller Options" depends on BT_CONTROLLER_ENABLED - source "$IDF_PATH/components/bt/controller/$IDF_TARGET/Kconfig.in" + osource "$IDF_PATH/components/bt/controller/$IDF_TARGET/Kconfig.in" endmenu config BT_RELEASE_IRAM