Changeset e621fd9 in rtems-tools


Ignore:
Timestamp:
02/11/21 16:23:16 (2 years ago)
Author:
Andre Nahrwold <andre.nahrwold@…>
Branches:
5
Children:
0a5d205
Parents:
4f5485e
git-author:
Andre Nahrwold <andre.nahrwold@…> (02/11/21 16:23:16)
git-committer:
Chris Johns <chrisj@…> (02/16/21 05:22:36)
Message:

misc: tools: fix mkimage.py script type processing

Closes #4249

File:
1 edited

Legend:

Unmodified
Added
Removed
  • misc/tools/mkimage.py

    r4f5485e re621fd9  
    122122inputcrc = 0;
    123123
     124if options.type in 'script':
     125
     126    filler_struct = Struct("!II")
     127    inputblock = filler_struct.pack(inputsize, 0)
     128
     129    inputcrc = binascii.crc32(inputblock, inputcrc)
     130    outputfile.write(inputblock)
     131
     132    inputsize = inputsize + 8
     133
    124134while True:
    125135        inputblock = inputfile.read(4096)
Note: See TracChangeset for help on using the changeset viewer.