Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions cmake/mcuboot.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,13 @@ function(zephyr_mcuboot_tasks)
set(imgtool_args --align ${write_block_size} ${imgtool_args})
endif()

# Set proper hash calculation algorithm for signing
if(CONFIG_MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_PURE)
set(imgtool_args --pure ${imgtool_args})
elseif(CONFIG_MCUBOOT_BOOTLOADER_USES_SHA512)
set(imgtool_args --sha 512 ${imgtool_args})
endif()

# Extensionless prefix of any output file.
set(output ${ZEPHYR_BINARY_DIR}/${KERNEL_NAME})

Expand Down
7 changes: 7 additions & 0 deletions modules/Kconfig.mcuboot
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,13 @@ config MCUBOOT_BOOTLOADER_USES_SHA512
help
MCUboot has been compiled to verify images using SHA512.

config MCUBOOT_BOOTLOADER_SIGNATURE_TYPE_PURE
bool "Signature is verified over an image rather than sha of an image"
help
MCUboot has been compiled to verify images using pure signature
verification, i.e., the signature is verified over the image rather
than the SHA of the image.

config MCUBOOT_APPLICATION_FIRMWARE_UPDATER
bool "Application is firmware updater image"
depends on MCUBOOT_BOOTLOADER_MODE_FIRMWARE_UPDATER
Expand Down