Closed conorpp closed 5 years ago
.json
@szszszsz I removed your --end_page and did this instead to more easily support older versions of bootloader.
--end_page
def sign_firmware(sk_name, hex_file, ): v1 = sign_firmware_for_version(sk_name, hex_file, 19) v2 = sign_firmware_for_version(sk_name, hex_file, 20) # use fw from v2 since it's smaller. fw = v2['firmware'] return { 'firmware': fw, 'signature': v2['signature'], # signatures to use for different versions of bootloader 'versions':{ '<=2.3.0' : { 'signature': v1['signature'] }, '>2.3.0' : { 'signature': v2['signature'] } } } def sign_firmware_for_version(sk_name, hex_file, APPLICATION_END_PAGE): # ...
Happy to accept further changes
.json
firmware file to allow "legacy" bootloaders to work still.@szszszsz I removed your
--end_page
and did this instead to more easily support older versions of bootloader.