scripts/signrom.py: Allow option ROM checksum script to write the size header.
commit6f71b779c8b05cf60ea0fffbcd8c02adfe845ece
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 11 May 2016 21:06:45 +0000 (11 22:06 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 23 May 2016 14:53:45 +0000 (23 16:53 +0200)
tree505afa5df616f0f0891ff3fd22e8d02cb02ddbb8
parent168340b6ba5ab784b9d2ed90351759f36c9b1486
scripts/signrom.py: Allow option ROM checksum script to write the size header.

Modify the signrom.py script so that if the size byte in the header is
0 (ie. not set) then the script will set the size.  If the size byte
is non-zero then we do the same as before, so this doesn't require
changes to any existing ROM sourcecode.

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
Message-Id: <1463000807-18015-2-git-send-email-rjones@redhat.com>
scripts/signrom.py