flash: Pass env var OPENOCD_DEFAULT_PATH to flasher

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

View file

@ -7,6 +7,7 @@ list(APPEND ENV_VARS
ARCH=${ARCH}
BOARD_NAME=${BOARD}
GDB=${CMAKE_GDB}
OPENOCD_DEFAULT_PATH=${OPENOCD_DEFAULT_PATH}
OPENOCD=${OPENOCD}
)

View file

@ -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)