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