1# SPDX-License-Identifier: Apache-2.0
2
3if(NOT "${OPENOCD}" MATCHES "^${ESPRESSIF_TOOLCHAIN_PATH}/.*")
4  set(OPENOCD OPENOCD-NOTFOUND)
5endif()
6find_program(OPENOCD openocd PATHS ${ESPRESSIF_TOOLCHAIN_PATH}/openocd-esp32/bin NO_DEFAULT_PATH)
7
8include(${ZEPHYR_BASE}/boards/common/esp32.board.cmake)
9include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
10