cmake: Fixed openocd

Signed-off-by: Sebastian Boe <sebastian.boe@nordicsemi.no>
This commit is contained in:
Sebastian Bøe 2017-11-08 19:20:55 +01:00 committed by Anas Nashif
commit eb8e7b7969
2 changed files with 8 additions and 1 deletions

View file

@ -6,7 +6,8 @@ list(APPEND ENV_VARS
KERNEL_BIN_NAME=${KERNEL_BIN_NAME} KERNEL_BIN_NAME=${KERNEL_BIN_NAME}
ARCH=${ARCH} ARCH=${ARCH}
BOARD_NAME=${BOARD} BOARD_NAME=${BOARD}
GDB=${CMAKE_GDB} GDB=${CMAKE_GDB}
OPENOCD=${OPENOCD}
) )
foreach(target flash debug debugserver) foreach(target flash debug debugserver)

View file

@ -38,6 +38,12 @@ find_program(
mconf mconf
) )
# openocd is an optional dependency
find_program(
OPENOCD
openocd
)
# qemu is an optional dependency # qemu is an optional dependency
if("${ARCH}" STREQUAL "x86") if("${ARCH}" STREQUAL "x86")
set(QEMU_binary_suffix i386) set(QEMU_binary_suffix i386)