Skip to content

Commit

Permalink
suit: Minor fix for cmake and tests
Browse files Browse the repository at this point in the history
Fixed paths and variables pattern.
Fixed some misspelt in the script description.

Signed-off-by: Arkadiusz Balys <[email protected]>
  • Loading branch information
ArekBalysNordic authored and rlubos committed Oct 14, 2024
1 parent 19fe584 commit 7105475
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions cmake/sysbuild/suit.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ function(suit_create_package)
endif()

if(SB_CONFIG_SUIT_MULTI_IMAGE_PACKAGE_BUILD)
include(${ZEPHYR_BASE}/../nrf/cmake/fw_zip.cmake)
include(${ZEPHYR_BASE}/../nrf/cmake/dfu_multi_image.cmake)
include(${ZEPHYR_NRF_MODULE_DIR}/cmake/fw_zip.cmake)
include(${ZEPHYR_NRF_MODULE_DIR}/cmake/dfu_multi_image.cmake)

set(suit_multi_image_ids)
set(suit_multi_image_paths)
Expand All @@ -381,10 +381,10 @@ function(suit_create_package)
list(APPEND suit_multi_image_paths "${SUIT_ROOT_DIRECTORY}root.suit")
list(APPEND suit_multi_image_targets "${SUIT_ROOT_DIRECTORY}root.suit")
# Include cache partition to the multi image package to store it in cache_partition
foreach(CACHE_PARTITION_NUM ${DFU_CACHE_PARTITIONS_USED})
math(EXPR DFU_IMAGE_ID "${CACHE_PARTITION_NUM} + 1")
list(APPEND suit_multi_image_ids ${DFU_IMAGE_ID})
list(APPEND suit_multi_image_paths "${SUIT_ROOT_DIRECTORY}dfu_cache_partition_${CACHE_PARTITION_NUM}.bin")
foreach(cache_partition_num ${DFU_CACHE_PARTITIONS_USED})
math(EXPR dfu_image_id "${cache_partition_num} + 1")
list(APPEND suit_multi_image_ids ${dfu_image_id})
list(APPEND suit_multi_image_paths "${SUIT_ROOT_DIRECTORY}dfu_cache_partition_${cache_partition_num}.bin")
endforeach()

dfu_multi_image_package(
Expand Down
4 changes: 2 additions & 2 deletions tests/subsys/dfu/dfu_target/suit/regenerate_manifests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# Scrtipt to regenerate SUIT manifests for DFU target tests.
# Script to regenerate SUIT manifests for DFU target tests.
# To use this script you must have the following tools installed:
# - suit-generator
# - zcbor
#
# The script will update the following files:
# - dfu_cache_partition_1.c which conatins the binary cache as C code
# - dfu_cache_partition_1.c which contains the binary cache as C code
# - manifest.c which contains the signed manifest as C code
#
# Before using this script paste the following files into
Expand Down

0 comments on commit 7105475

Please sign in to comment.