Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: sysbuild: Make b0_packaging.cmake backwards compatible #23

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions cmake/sysbuild/b0_packaging.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ 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)

set(s0_name signed_by_b0_s0_image.bin)
set(s1_name signed_by_b0_s1_image.bin)

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
ZIP_NAMES ${s0_name} ${s1_name}
TYPE application
IMAGE ${DEFAULT_IMAGE}
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>"
"${s0_name}load_address=$<TARGET_PROPERTY:partition_manager,PM_S0_ADDRESS>"
"${s1_image}load_address=$<TARGET_PROPERTY:partition_manager,PM_S1_ADDRESS>"
"version_B0=${app_fw_info_firmware_version}"
DEPENDS
${DEFAULT_IMAGE}_extra_byproducts
Expand Down
Loading