From d4d778182f6ed3c2be3bcf72cbb6b30cbc1c1e15 Mon Sep 17 00:00:00 2001 From: Frantisek Hrbata Date: Wed, 4 Mar 2026 16:32:01 +0100 Subject: [PATCH] fix(esp_partition/cmake): remove unused PRIV_INCLUDE_DIRS Currently, the bootloader version of the `esp_partition` component sets `PRIV_INCLUDE_DIRS` using the `private_include_dirs` variable. However, this variable is not properly initialized, which causes issues in cmakev2. In cmakev2, components are evaluated recursively, and a component may be evaluated in the context of another component, so components must initialize all variables before using them. Moreover, there are effectively no `PRIV_INCLUDE_DIRS` to set when the component is evaluated for the bootloader. Therefore, remove `PRIV_INCLUDE_DIRS` entirely for bootloader and test builds. Signed-off-by: Frantisek Hrbata --- components/esp_partition/CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/esp_partition/CMakeLists.txt b/components/esp_partition/CMakeLists.txt index 3bd605b3ca..be80e77476 100644 --- a/components/esp_partition/CMakeLists.txt +++ b/components/esp_partition/CMakeLists.txt @@ -10,7 +10,6 @@ if(BOOTLOADER_BUILD) idf_component_register(SRCS "${srcs}" INCLUDE_DIRS "include" - PRIV_INCLUDE_DIRS ${private_include_dirs} REQUIRES ${reqs} PRIV_REQUIRES ${priv_reqs}) @@ -22,7 +21,6 @@ elseif(esp_tee_build) idf_component_register(SRCS "${srcs}" INCLUDE_DIRS "include" - PRIV_INCLUDE_DIRS ${private_include_dirs} REQUIRES ${reqs} PRIV_REQUIRES ${priv_reqs})