fix(build_system): Add Bootloader and Partition Table as dependencies for encrypted-flash

- If ESP-TEE is enabled, also add it as the dependency for the encrypted-flash target
This commit is contained in:
harshal.patil
2025-11-03 11:15:25 +05:30
parent 811e27118d
commit 7338c5179b
3 changed files with 15 additions and 0 deletions
+4
View File
@@ -28,6 +28,10 @@ else()
endif()
add_dependencies(esp_tee partition_table_bin)
add_dependencies(flash esp_tee)
if(CONFIG_SECURE_FLASH_ENCRYPTION_MODE_DEVELOPMENT)
# Also add ESP-TEE binary as a dependency to the encrypted-flash target
add_dependencies(encrypted-flash esp_tee)
endif()
set(image_file ${TEE_BUILD_DIR}/esp_tee.bin)
partition_table_get_partition_info(offset "--partition-name ${partition}" "offset")
esptool_py_flash_target_image(flash "${partition}" "${offset}" "${image_file}")