Files
esp-idf/components/esptool_py/CMakeLists.txt
Sudeep Mohanty 3a1f34386c refactor(esptool_py): Move flasher_args.json generation to project level
This commit refactors the esptool_py component to move the
flasher_args.json file generation to the main project level cmake file
when idf_build_executable() runs.
2025-07-10 11:26:28 +02:00

14 lines
354 B
CMake

idf_build_get_property(target IDF_TARGET)
idf_build_get_property(esp_tee_build ESP_TEE_BUILD)
if(${target} STREQUAL "linux")
return() # This component is not supported by the POSIX/Linux simulator
endif()
if(esp_tee_build)
idf_component_register()
return()
endif()
idf_component_register(REQUIRES bootloader PRIV_REQUIRES partition_table)