From 1d844bff265765be0f644a8b06d3fd90fe18de98 Mon Sep 17 00:00:00 2001 From: Jordan Yates Date: Fri, 5 Aug 2022 15:02:11 +1000 Subject: [PATCH] dfu: fixup conditional CMake include The dfu subsys is theoretically agnostic to the particular bootloader, even if MCUboot is the only bootloader currently supported. Include the dfu folder based on the parent symbol `IMG_MANAGER` instead of the specific `MCUBOOT_IMG_MANAGER`. The MCUboot specific files are already gated by the Kconfig in the `boot` and `img_util` folders. Signed-off-by: Jordan Yates --- subsys/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/CMakeLists.txt b/subsys/CMakeLists.txt index 4318f3136e..a2f049f323 100644 --- a/subsys/CMakeLists.txt +++ b/subsys/CMakeLists.txt @@ -12,7 +12,7 @@ add_subdirectory_ifdef(CONFIG_EMUL emul) add_subdirectory(fs) add_subdirectory(ipc) add_subdirectory(mgmt) -add_subdirectory_ifdef(CONFIG_MCUBOOT_IMG_MANAGER dfu) +add_subdirectory_ifdef(CONFIG_IMG_MANAGER dfu) add_subdirectory_ifdef(CONFIG_NET_BUF net) add_subdirectory(usb) add_subdirectory(random)