From 0d5f8e352439da441dfc81ddebe3b7df8ac89518 Mon Sep 17 00:00:00 2001 From: Alexandre Bailon Date: Wed, 9 Oct 2024 09:58:09 +0200 Subject: [PATCH] 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 --- cmake/flash/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/flash/CMakeLists.txt b/cmake/flash/CMakeLists.txt index f948b059751..8fe7380695b 100644 --- a/cmake/flash/CMakeLists.txt +++ b/cmake/flash/CMakeLists.txt @@ -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()