]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[util] Fix up checksum in UNDI ROM header, if present
authorMichael Brown <mcb30@ipxe.org>
Wed, 15 Aug 2012 12:20:02 +0000 (13:20 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 15 Aug 2012 12:22:12 +0000 (13:22 +0100)
The UNDI ROM header does contain a checksum byte.  Apparently no-one
cares about this, since iPXE has left it as zero for years without
anyone noticing.

Since Option::ROM now understands the UNDI ROM header, we may as well
fix up the checksum byte for the sake of completeness.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/util/fixrom.pl

index 8987b5129df83cf6571ade02a6a2d3847a959b8f..dcc38fe4ba831fb0156f751c33babaa234740a45 100755 (executable)
@@ -32,6 +32,7 @@ foreach my $romfile ( @romfiles ) {
   my $image = $rom;
   while ( $image ) {
     $image->pnp_header->fix_checksum() if $image->pnp_header;
+    $image->undi_header->fix_checksum() if $image->undi_header;
     $image->ipxe_header->fix_checksum() if $image->ipxe_header;
     $image->fix_checksum();
     $image = $image->next_image();