1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

firmware: update flash_firmware target to use two-part flashing fix (#266)

This commit is contained in:
mcudev 2018-07-05 16:42:46 -04:00 committed by Pavol Rusnak
parent c4918cea97
commit d325e7b5a2

View File

@ -299,6 +299,7 @@ env.Tool('micropython')
env.Replace(
CAT='cat',
DD='dd',
SED='sed',
AS='arm-none-eabi-as',
AR='arm-none-eabi-ar',
@ -430,4 +431,5 @@ program_bin = env.Command(
'$CAT ${TARGET}.p1 ${TARGET}.p2 > $TARGET',
'$BINCTL $TARGET -h',
'$BINCTL $TARGET -s 1:2 `$KEYCTL sign firmware $TARGET 4747474747474747474747474747474747474747474747474747474747474747 4848484848484848484848484848484848484848484848484848484848484848`' if ARGUMENTS.get('PRODUCTION', '0') == '0' else '',
'$DD if=$TARGET of=${TARGET}.p1 skip=0 bs=128K count=6',
], )