Skip to content

Getting delta base version from filename is error prone #527

@StuartGorman

Description

@StuartGorman

In file wolfBoot/tools/keytools/sign.c:1780 the delta base version is extracted from the filename of the image as the first number between "_v" and the next "_". However, the delta image creation requires a signed base file, and the image version is contained within the image header. The signing tool should pull the version from the image header, given that the bootloader will use the version from that location when applying the delta.

This will prevent issues where the file is renamed with the version string (for the purpose of artifact management), as opposed to the integer version (in the scenario where the printed text of those version are different).

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions