From b69a3d8824a20fc35e9fb176c7d5184aaa999766 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 6cba4e9d94d..cec49f0ec69 100644 --- a/cmake/flash/CMakeLists.txt +++ b/cmake/flash/CMakeLists.txt @@ -199,6 +199,7 @@ foreach(target flash debug debugserver attach) ${target} --skip-rebuild DEPENDS ${FLASH_DEPS} + $ WORKING_DIRECTORY ${APPLICATION_BINARY_DIR} )