mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
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:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user