esptool: Fixes esp32h2 target name

This commit is contained in:
KonstantinKondrashov 2022-02-16 23:53:00 +08:00
parent 5c7b597594
commit d011404607

View File

@ -6,6 +6,9 @@ idf_build_get_property(python PYTHON)
idf_build_get_property(idf_path IDF_PATH)
set(chip_model ${target})
if(target STREQUAL "esp32h2")
set(chip_model esp32h2beta1)
endif()
set(ESPTOOLPY ${python} "$ENV{ESPTOOL_WRAPPER}" "${CMAKE_CURRENT_LIST_DIR}/esptool/esptool.py" --chip ${chip_model})
set(ESPSECUREPY ${python} "${CMAKE_CURRENT_LIST_DIR}/esptool/espsecure.py")