Skip to content

Commit

Permalink
suit: Added configuration for using DFU cache RW only
Browse files Browse the repository at this point in the history
Added a selectable application-core configuration for SUIT
which allows to use DFU Cache without full manifest processing.

Signed-off-by: Artur Hadasz <artur.hadasz@nordicsemi.no>
  • Loading branch information
ahasztag authored and rlubos committed Sep 25, 2024
1 parent cc3c8a4 commit 6a0d476
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
7 changes: 7 additions & 0 deletions samples/suit/smp_transfer/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ tests:
extra_args:
- FILE_SUFFIX=extflash
- OVERLAY_CONFIG="sysbuild/smp_transfer.conf"
extra_configs:
- CONFIG_SUIT_DFU_CANDIDATE_PROCESSING_FULL=y
tags: suit ci_samples_suit

sample.suit.smp_transfer.recovery:
Expand All @@ -52,6 +54,8 @@ tests:
- FILE_SUFFIX=extflash
- OVERLAY_CONFIG="sysbuild/smp_transfer_bt.conf"
- SB_OVERLAY_CONFIG="sysbuild_bt.conf"
extra_configs:
- CONFIG_SUIT_DFU_CANDIDATE_PROCESSING_FULL=y
tags: suit bluetooth ci_samples_suit

sample.suit.smp_transfer.full.extflash.extracted_cache:
Expand All @@ -61,6 +65,7 @@ tests:
- OVERLAY_CONFIG="sysbuild/smp_transfer.conf"
extra_configs:
- CONFIG_SUIT_DFU_CACHE_EXTRACT_IMAGE=y
- CONFIG_SUIT_DFU_CANDIDATE_PROCESSING_PUSH_TO_CACHE=y
tags: suit ci_samples_suit

sample.suit.smp_transfer.full.extflash.bt.extracted_cache:
Expand All @@ -72,4 +77,6 @@ tests:
- hci_ipc_CONFIG_SUIT_DFU_CACHE_EXTRACT_IMAGE=y
extra_configs:
- CONFIG_SUIT_DFU_CACHE_EXTRACT_IMAGE=y
- CONFIG_SUIT_DFU_CANDIDATE_PROCESSING_PUSH_TO_CACHE=y

tags: suit bluetooth ci_samples_suit
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

CONFIG_SUIT_DFU_CANDIDATE_PROCESSING_FULL=y
CONFIG_SUIT_STREAM_SOURCE_FLASH=y
CONFIG_SUIT_ENVELOPE_TEMPLATE_FILENAME="app_envelope_extflash.yaml.jinja2"
15 changes: 15 additions & 0 deletions subsys/suit/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,21 @@ config SUIT_DFU_CANDIDATE_PROCESSING_FULL
imply SUIT_MPI_GENERATE
imply SUIT_SINK_SELECTOR

config SUIT_DFU_CANDIDATE_PROCESSING_PUSH_TO_CACHE
bool "Push to cache"
#TODO: change to imply
select SUIT_ORCHESTRATOR_APP
select SUIT_ORCHESTRATOR_APP_CANDIDATE_PROCESSING
select SUIT_ENVELOPE_INFO
select SUIT_UTILS
select SUIT_METADATA
select SSF_SUIT_SERVICE_ENABLED
select SUIT_MPI_GENERATE
select SUIT_CACHE
select SUIT_CACHE_RW
select SUIT_MEMPTR_STORAGE
select SUIT_STREAM_SINK_FLASH

config SUIT_DFU_CANDIDATE_PROCESSING_NONE
bool "Disable any processing of the SUIT candidate envelope"
help
Expand Down

0 comments on commit 6a0d476

Please sign in to comment.