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