Skip to content

Commit 0d5f8e3

Browse files
anoblinashif
authored andcommitted
cmake: flash: Update OPENOCD variables to work with sysbuild
Defining OPENOCD and OPENOCD_DEFAULT_PATH when we are using sysbuild doesn't make any effect. This updates flash.cmake to make these variables compatible with sysbuild. Signed-off-by: Alexandre Bailon <[email protected]>
1 parent 32e5894 commit 0d5f8e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/flash/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ function(runners_yaml_append_config)
6161
runners_yaml_append(" uf2_file: ${uf2}")
6262
endif()
6363

64+
zephyr_get(OPENOCD)
65+
zephyr_get(OPENOCD_DEFAULT_PATH)
6466
if(CMAKE_GDB OR OPENOCD OR OPENOCD_DEFAULT_PATH)
6567
runners_yaml_append(" # Host tools:")
6668
endif()

0 commit comments

Comments
 (0)