Changeset 7189172 in rtems-tools


Ignore:
Timestamp:
Feb 11, 2021, 4:23:16 PM (2 months ago)
Author:
Andre Nahrwold <andre.nahrwold@…>
Branches:
master
Children:
2cfdc80
Parents:
4da0114
git-author:
Andre Nahrwold <andre.nahrwold@…> (02/11/21 16:23:16)
git-committer:
Chris Johns <chrisj@…> (02/16/21 05:10:42)
Message:

misc: tools: fix mkimage.py script type processing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • misc/tools/mkimage.py

    r4da0114 r7189172  
    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.