1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-22 13:21:03 +00:00

fix(core): always recalculate header hashes

This commit is contained in:
Pavol Rusnak 2020-10-15 15:18:14 +02:00
parent 9ed25a718a
commit bf6e9b4cad
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -628,7 +628,7 @@ if TREZOR_MODEL == 'T':
'$OBJCOPY -O binary -j .vendorheader -j .header -j .flash -j .data --pad-to 0x08100000 $SOURCE ${TARGET}.p1',
'$OBJCOPY -O binary -j .flash2 $SOURCE ${TARGET}.p2',
'$CAT ${TARGET}.p1 ${TARGET}.p2 > $TARGET',
'$HEADERTOOL $TARGET ' + ('-D' if ARGUMENTS.get('PRODUCTION', '0') == '0' else ''),
'$HEADERTOOL -h $TARGET ' + ('-D' if ARGUMENTS.get('PRODUCTION', '0') == '0' else ''),
'$DD if=$TARGET of=${TARGET}.p1 skip=0 bs=128k count=6',
]
elif TREZOR_MODEL == '1':