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 <abailon@baylibre.com>
This commit is contained in:
Alexandre Bailon 2024-10-09 09:58:09 +02:00 committed by Anas Nashif
parent 32e5894ab9
commit 0d5f8e3524

View File

@ -61,6 +61,8 @@ function(runners_yaml_append_config)
runners_yaml_append(" uf2_file: ${uf2}")
endif()
zephyr_get(OPENOCD)
zephyr_get(OPENOCD_DEFAULT_PATH)
if(CMAKE_GDB OR OPENOCD OR OPENOCD_DEFAULT_PATH)
runners_yaml_append(" # Host tools:")
endif()