flash: Pass env var OPENOCD_DEFAULT_PATH to flasher
Signed-off-by: Sebastian Boe <sebastian.boe@nordicsemi.no>
This commit is contained in:
parent
3c0a0053fa
commit
8dd3bb8666
2 changed files with 4 additions and 1 deletions
|
@ -7,6 +7,7 @@ list(APPEND ENV_VARS
|
|||
ARCH=${ARCH}
|
||||
BOARD_NAME=${BOARD}
|
||||
GDB=${CMAKE_GDB}
|
||||
OPENOCD_DEFAULT_PATH=${OPENOCD_DEFAULT_PATH}
|
||||
OPENOCD=${OPENOCD}
|
||||
)
|
||||
|
||||
|
|
|
@ -34,4 +34,6 @@ endif()
|
|||
# we call, e.g. find_program(QEMU qemu-system-x86)
|
||||
list(APPEND CMAKE_PREFIX_PATH ${TOOLCHAIN_HOME}/usr)
|
||||
|
||||
set(QEMU_BIOS ${TOOLCHAIN_HOME}/usr/share/qemu)
|
||||
# TODO: Use find_* somehow for these as well?
|
||||
set_ifndef(QEMU_BIOS ${TOOLCHAIN_HOME}/usr/share/qemu)
|
||||
set_ifndef(OPENOCD_DEFAULT_PATH ${TOOLCHAIN_HOME}/usr/share/openocd/scripts)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue