2021-04-13 06:39:04 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2021-10-15 10:33:55 +08:00
|
|
|
if(NOT "${OPENOCD}" MATCHES "^${ESPRESSIF_TOOLCHAIN_PATH}/.*")
|
|
|
|
set(OPENOCD OPENOCD-NOTFOUND)
|
|
|
|
endif()
|
|
|
|
find_program(OPENOCD openocd PATHS ${ESPRESSIF_TOOLCHAIN_PATH}/openocd-esp32/bin NO_DEFAULT_PATH)
|
|
|
|
|
2021-04-13 06:39:04 +08:00
|
|
|
include(${ZEPHYR_BASE}/boards/common/esp32.board.cmake)
|
2021-10-15 10:33:55 +08:00
|
|
|
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
|