cmake: Pass GDB env var to flasher script
Signed-off-by: Sebastian Boe <sebastian.boe@nordicsemi.no>
This commit is contained in:
parent
3d01cdd60e
commit
4449bef955
2 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,7 @@ list(APPEND ENV_VARS
|
|||
KERNEL_BIN_NAME=${KERNEL_BIN_NAME}
|
||||
ARCH=${ARCH}
|
||||
BOARD_NAME=${BOARD}
|
||||
GDB=${CMAKE_GDB}
|
||||
)
|
||||
|
||||
foreach(target flash debug debugserver)
|
||||
|
|
|
@ -8,6 +8,7 @@ set(CMAKE_OBJDUMP ${CROSS_COMPILE}objdump CACHE INTERNAL " " FORCE)
|
|||
set(CMAKE_AR ${CROSS_COMPILE}ar CACHE INTERNAL " " FORCE)
|
||||
set(CMAKE_RANLILB ${CROSS_COMPILE}ranlib CACHE INTERNAL " " FORCE)
|
||||
set(CMAKE_READELF ${CROSS_COMPILE}readelf CACHE INTERNAL " " FORCE)
|
||||
set(CMAKE_GDB ${CROSS_COMPILE}gdb CACHE INTERNAL " " FORCE)
|
||||
|
||||
assert_exists(CMAKE_READELF)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue