From 4d85eb5ba7230f9e34ad18db060334d83b664f2b Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Thu, 5 Mar 2026 17:07:22 +0100 Subject: [PATCH] fix(bootloader_support/cmake): initialize priv_include_dirs variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For the bootloader build, the `priv_include_dirs` variable is uninitialized, but it is used in the common call to `idf_component_register`. Using uninitialized variables is not allowed in cmakev2 because a component may be evaluated in the context of another component’s variable scope. Signed-off-by: Frantisek Hrbata --- components/bootloader_support/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/components/bootloader_support/CMakeLists.txt b/components/bootloader_support/CMakeLists.txt index 3e5620771ff..dbad83b9cd6 100644 --- a/components/bootloader_support/CMakeLists.txt +++ b/components/bootloader_support/CMakeLists.txt @@ -70,6 +70,7 @@ if(CONFIG_ESP_ROM_REV0_HAS_NO_ECDSA_INTERFACE) endif() if(BOOTLOADER_BUILD OR CONFIG_APP_BUILD_TYPE_RAM) + set(priv_include_dirs) set(include_dirs "include" "bootloader_flash/include" "private_include") # micro-ecc is only needed for secure boot sources built under BOOTLOADER_BUILD.