mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-03 03:31:41 +03:00
fix(esp_tee): Stop esp_tee subproject to be built with build system v2
- Unset IDF_BUILD_V2 in subproject/CMakeLists.txt before including project.cmake so the nested esp_tee ExternalProject cmake stays on cmakev1. - Read PARTITION_TABLE_BIN_PATH as a generator expression under IDF_BUILD_V2 to defer the lookup to CMake's generate phase.
This commit is contained in:
@@ -33,6 +33,12 @@ list(APPEND COMPONENTS attestation tee_flash_mgr tee_ota_ops tee_sec_storage)
|
||||
|
||||
include_directories("${SECURE_SERVICE_HEADERS_DIR}")
|
||||
|
||||
# The TEE subproject is not yet ported to build system v2.
|
||||
# Explicitly clear the IDF_BUILD_V2 environment variable so that
|
||||
# tools/cmake/project.cmake does not activate the cmakev2 shim when
|
||||
# the parent build was invoked with IDF_BUILD_V2=1.
|
||||
unset(ENV{IDF_BUILD_V2})
|
||||
|
||||
include("${IDF_PATH}/tools/cmake/project.cmake")
|
||||
set(common_req esp_common esp_hw_support esp_rom freertos hal log esp_libc soc spi_flash)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user