fix(bootloader_support/cmake): initialize priv_include_dirs variable

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 <frantisek.hrbata@espressif.com>
This commit is contained in:
Frantisek Hrbata
2026-03-05 17:07:22 +01:00
committed by BOT
parent 36d3a180cf
commit 4d85eb5ba7

View File

@@ -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.