From c09663efd4e587ee39b32a8c4de3b549bfac85de Mon Sep 17 00:00:00 2001 From: Torsten Rasmussen Date: Thu, 16 Jan 2020 11:25:40 +0100 Subject: [PATCH] cmake: Allow projects to add additional dependencies to flash target Using zephyr_target_property::FLASH_DEPENDENCIES to fetch additional dependencies to the flash operation. The properties are fetched using a generator expression which allows users of Zephyr to add dependencies both before and after the flash target has been defined. Dependencies can be other targets that must be build / custom commands which must be executed before the flash operation. Or it can be targets which must be built. Signed-off-by: Torsten Rasmussen Signed-off-by: Haakon Oeye Amundsen --- cmake/flash/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/flash/CMakeLists.txt b/cmake/flash/CMakeLists.txt index 7f80f1ebac9..eaf6dceea4a 100644 --- a/cmake/flash/CMakeLists.txt +++ b/cmake/flash/CMakeLists.txt @@ -207,6 +207,7 @@ foreach(target flash debug debugserver attach) ${target} --skip-rebuild DEPENDS ${FLASH_DEPS} + $ WORKING_DIRECTORY ${APPLICATION_BINARY_DIR} )