Skip to content

Commit 99e03db

Browse files
committed
cmake: Add Windows OpenOCD prefix
Add OpenOCD prefix for the Windows host tools -- note that there is no "unified bin directory" in the Windows Zephyr SDK host tools. Also, fix the `OPENOCD_DEFAULT_PATH`. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
1 parent fcb1b22 commit 99e03db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/zephyr/host-tools.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ elseif(${CMAKE_HOST_SYSTEM_NAME} STREQUAL Windows)
3535
# Add host tool component binary directories to the prefix paths for
3636
# discovery by the find_program() function.
3737
list(APPEND CMAKE_PREFIX_PATH ${HOST_TOOLS_HOME}/qemu)
38+
list(APPEND CMAKE_PREFIX_PATH ${HOST_TOOLS_HOME}/openocd)
3839

3940
set_ifndef(QEMU_BIOS ${HOST_TOOLS_HOME}/qemu/share)
40-
set_ifndef(OPENOCD_DEFAULT_PATH ${HOST_TOOLS_HOME}/openocd/scripts)
41+
set_ifndef(OPENOCD_DEFAULT_PATH ${HOST_TOOLS_HOME}/openocd/share/openocd/scripts)
4142
endif()

0 commit comments

Comments
 (0)