diff options
author | Andre Nahrwold <andre.nahrwold@dlr.de> | 2021-02-11 17:23:16 +0100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2021-02-16 16:10:42 +1100 |
commit | 7189172c1a81dd042696066246f77e59580852b2 (patch) | |
tree | a27cd1b2c788c4bc9226ded906360232fd83e1ee /misc | |
parent | tester: Swap Xilinx ZynqMP BSPs to secondary UART (diff) | |
download | rtems-tools-7189172c1a81dd042696066246f77e59580852b2.tar.bz2 |
misc: tools: fix mkimage.py script type processing
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/tools/mkimage.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/misc/tools/mkimage.py b/misc/tools/mkimage.py index fd75f0a..111e224 100755 --- a/misc/tools/mkimage.py +++ b/misc/tools/mkimage.py @@ -121,6 +121,16 @@ outputfile.seek(struct.size); inputcrc = 0; +if options.type in 'script': + + filler_struct = Struct("!II") + inputblock = filler_struct.pack(inputsize, 0) + + inputcrc = binascii.crc32(inputblock, inputcrc) + outputfile.write(inputblock) + + inputsize = inputsize + 8 + while True: inputblock = inputfile.read(4096) if not inputblock: break |