Skip to content

Commit

Permalink
Set correct OPENOCD_DEFAULT_PATH for Windows
Browse files Browse the repository at this point in the history
On Windows platform, the OPENOCD_DEFAULT_PATH is not set in line with Zephyr documentation. Fixes zephyrproject-rtos/zephyr#79051.

Signed-off-by: Manuel Aebischer <manuel.aebischer@belden.com>
  • Loading branch information
Manu3l0us authored and Manuel Aebischer committed Sep 27, 2024
1 parent 9784be5 commit 52295a6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/zephyr/host-tools.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ list(APPEND CMAKE_PREFIX_PATH ${HOST_TOOLS_HOME}/usr)

# TODO: Use find_* somehow for these as well?
set_ifndef(QEMU_BIOS ${HOST_TOOLS_HOME}/usr/share/qemu)
set_ifndef(OPENOCD_DEFAULT_PATH ${HOST_TOOLS_HOME}/usr/share/openocd/scripts)
if (WIN32)
set_ifndef(OPENOCD_DEFAULT_PATH $ENV{ProgramFiles}/OpenOCD/share/openocd/scripts)
else ()
set_ifndef(OPENOCD_DEFAULT_PATH ${HOST_TOOLS_HOME}/usr/share/openocd/scripts)
endif ()

0 comments on commit 52295a6

Please sign in to comment.