Merge branch 'fix/cmake_absolute_path_to_run_esptool' into 'release/v3.2'

project_include.cmake: Make esptool_py_custom_target callable from other directories (backport v3.2)

See merge request espressif/esp-idf!6944
This commit is contained in:
Mahavir Jain 2020-02-20 18:37:19 +08:00
commit 886bc21f7f

View file

@ -52,7 +52,7 @@ function(esptool_py_custom_target target_name flasher_filename dependencies)
-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 ESPTOOL_WORKING_DIR="${CMAKE_CURRENT_BINARY_DIR}" -D ESPTOOL_WORKING_DIR="${CMAKE_CURRENT_BINARY_DIR}"
-P run_esptool.cmake -P ${IDF_PATH}/components/esptool_py/run_esptool.cmake
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR} WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
USES_TERMINAL USES_TERMINAL
) )