-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sysbuild: Add b0 zip update output generation without MCUboot
Adds a dfu_application.zip output file which contains the update bin files when secure boot is used without MCUboot being enabled Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright (c) 2024 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause | ||
|
||
# B0 will boot the app directly, create the DFU zip with both update candidates | ||
include(${ZEPHYR_NRF_MODULE_DIR}/cmake/fw_zip.cmake) | ||
|
||
sysbuild_get(app_fw_info_firmware_version IMAGE ${DEFAULT_IMAGE} VAR CONFIG_FW_INFO_FIRMWARE_VERSION KCONFIG) | ||
|
||
generate_dfu_zip( | ||
OUTPUT ${PROJECT_BINARY_DIR}/dfu_application.zip | ||
BIN_FILES ${PROJECT_BINARY_DIR}/signed_by_b0_${DEFAULT_IMAGE}.bin ${PROJECT_BINARY_DIR}/signed_by_b0_s1_image.bin | ||
TYPE application | ||
SCRIPT_PARAMS | ||
"signed_by_b0_${DEFAULT_IMAGE}.binload_address=$<TARGET_PROPERTY:partition_manager,PM_S0_ADDRESS>" | ||
"signed_by_b0_s1_image.binload_address=$<TARGET_PROPERTY:partition_manager,PM_S1_ADDRESS>" | ||
"version_B0=${app_fw_info_firmware_version}" | ||
DEPENDS | ||
${DEFAULT_IMAGE}_extra_byproducts | ||
${DEFAULT_IMAGE}_signed_kernel_hex_target | ||
s1_image_extra_byproducts | ||
s1_image_signed_kernel_hex_target | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters