mirror of
https://github.com/ipxe/ipxe
synced 2025-12-17 18:11:49 +03:00
[util] Update mergerom.pl to handle .mrom images
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -87,12 +87,15 @@ foreach my $rom ( @roms ) {
|
|||||||
# Fix checksum for this ROM segment
|
# Fix checksum for this ROM segment
|
||||||
$rom->fix_checksum();
|
$rom->fix_checksum();
|
||||||
|
|
||||||
|
# Add this ROM to base ROM
|
||||||
|
my $data = substr ( $baserom->get(), 0, $baserom->length() );
|
||||||
|
$data .= $rom->get();
|
||||||
|
$data .= $baserom->next_image()->get() if $baserom->next_image();
|
||||||
|
$baserom->set ( $data );
|
||||||
|
|
||||||
$offset += $rom->length;
|
$offset += $rom->length;
|
||||||
}
|
}
|
||||||
|
|
||||||
$baserom->pnp_header->fix_checksum() if $baserom->pnp_header;
|
$baserom->pnp_header->fix_checksum() if $baserom->pnp_header;
|
||||||
$baserom->fix_checksum();
|
$baserom->fix_checksum();
|
||||||
$baserom->save ( "-" );
|
$baserom->save ( "-" );
|
||||||
foreach my $rom ( @roms ) {
|
|
||||||
$rom->save ( "-" );
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user