cmake: Fixed openocd
Signed-off-by: Sebastian Boe <sebastian.boe@nordicsemi.no>
This commit is contained in:
parent
c7832bd343
commit
eb8e7b7969
2 changed files with 8 additions and 1 deletions
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue