mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
tools: Fix Cmake arguments for IDF Monitor
SERIAL_TOOL_ARGS is post-processed with the spaces2list cmake function. Therefore, it should be a list of arguments because spaces are replaced with semicolons. Regression ofb77addea2f
andc425ac7bed
. Closes https://github.com/espressif/esp-idf/issues/6946
This commit is contained in:
parent
644f430a31
commit
3a948c1455
@ -49,7 +49,7 @@ endif()
|
||||
|
||||
if(min_rev)
|
||||
list(APPEND esptool_elf2image_args --min-rev ${min_rev})
|
||||
set(monitor_rev_args --revision ${min_rev})
|
||||
set(monitor_rev_args "--revision;${min_rev}")
|
||||
unset(min_rev)
|
||||
endif()
|
||||
|
||||
@ -155,7 +155,7 @@ add_custom_target(monitor
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
-D IDF_PATH="${idf_path}"
|
||||
-D SERIAL_TOOL="${ESPMONITOR}"
|
||||
-D SERIAL_TOOL_ARGS="--target ${target} ${monitor_rev_args} ${elf_dir}/${elf}"
|
||||
-D SERIAL_TOOL_ARGS="--target;${target};${monitor_rev_args};${elf_dir}/${elf}"
|
||||
-D WORKING_DIRECTORY="${build_dir}"
|
||||
-P run_serial_tool.cmake
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
|
||||
|
Loading…
Reference in New Issue
Block a user