mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'fix/run_esptool_absolute_path' into 'master'
project_include.cmake: Make esptool_py_custom_target callable from other directories See merge request espressif/esp-idf!7062
This commit is contained in:
commit
ba0a22f59d
@ -140,13 +140,14 @@ endif()
|
|||||||
#
|
#
|
||||||
function(esptool_py_custom_target target_name flasher_filename dependencies)
|
function(esptool_py_custom_target target_name flasher_filename dependencies)
|
||||||
idf_build_get_property(idf_path IDF_PATH)
|
idf_build_get_property(idf_path IDF_PATH)
|
||||||
|
idf_component_get_property(esptool_py_dir esptool_py COMPONENT_DIR)
|
||||||
add_custom_target(${target_name} DEPENDS ${dependencies}
|
add_custom_target(${target_name} DEPENDS ${dependencies}
|
||||||
COMMAND ${CMAKE_COMMAND}
|
COMMAND ${CMAKE_COMMAND}
|
||||||
-D IDF_PATH="${idf_path}"
|
-D IDF_PATH="${idf_path}"
|
||||||
-D ESPTOOLPY="${ESPTOOLPY}"
|
-D ESPTOOLPY="${ESPTOOLPY}"
|
||||||
-D ESPTOOL_ARGS="write_flash;@flash_${flasher_filename}_args"
|
-D ESPTOOL_ARGS="write_flash;@flash_${flasher_filename}_args"
|
||||||
-D WORKING_DIRECTORY="${build_dir}"
|
-D WORKING_DIRECTORY="${build_dir}"
|
||||||
-P run_esptool.cmake
|
-P ${esptool_py_dir}/run_esptool.cmake
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
|
||||||
USES_TERMINAL
|
USES_TERMINAL
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user