Skip to content

Commit 34d0487

Browse files
tomchyanangl
authored andcommitted
suit: Remove dependency between dfu_target and SSF
The dfu_target uses suit_dfu library and does not use SSF services directly. Ref: NCSDK-31359 Signed-off-by: Tomasz Chyrowicz <[email protected]>
1 parent a427b75 commit 34d0487

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

subsys/dfu/dfu_target/src/dfu_target_suit.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
#include <dfu/dfu_target.h>
1010
#include <dfu/dfu_target_stream.h>
1111
#include <zephyr/devicetree.h>
12-
#ifdef CONFIG_SSF_SUIT_SERVICE_ENABLED
13-
#include <sdfw/sdfw_services/suit_service.h>
14-
#endif /* CONFIG_SSF_SUIT_SERVICE_ENABLED */
1512
#include <suit_envelope_info.h>
1613
#ifdef CONFIG_DFU_TARGET_SUIT_CACHE_PROCESSING
1714
#include <suit_dfu_cache_rw.h>
@@ -197,7 +194,7 @@ int dfu_target_suit_reset(void)
197194
return rc;
198195
}
199196

200-
suit_ssf_err_t err = suit_dfu_cleanup();
197+
int err = suit_dfu_cleanup();
201198

202199
stream_flash_in_use = false;
203200
stream_buf_bytes = 0;
@@ -215,7 +212,7 @@ int dfu_target_suit_reboot(void)
215212
{
216213
k_msleep(CONFIG_DFU_TARGET_REBOOT_RESET_DELAY_MS);
217214

218-
suit_ssf_err_t err = suit_dfu_update_start();
215+
int err = suit_dfu_update_start();
219216

220217
if (err < 0) {
221218
LOG_ERR("Failed to start firmware upgrade!");

0 commit comments

Comments
 (0)