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
|
@ -7,6 +7,7 @@ list(APPEND ENV_VARS
|
|||
ARCH=${ARCH}
|
||||
BOARD_NAME=${BOARD}
|
||||
GDB=${CMAKE_GDB}
|
||||
OPENOCD=${OPENOCD}
|
||||
)
|
||||
|
||||
foreach(target flash debug debugserver)
|
||||
|
|
|
@ -38,6 +38,12 @@ find_program(
|
|||
mconf
|
||||
)
|
||||
|
||||
# openocd is an optional dependency
|
||||
find_program(
|
||||
OPENOCD
|
||||
openocd
|
||||
)
|
||||
|
||||
# qemu is an optional dependency
|
||||
if("${ARCH}" STREQUAL "x86")
|
||||
set(QEMU_binary_suffix i386)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue