mirror of https://github.com/ipxe/ipxe.git
[util] Update mergerom.pl to handle .mrom images
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/6/head
parent
b58374fe91
commit
a3cba84bab
|
@ -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 ( "-" );
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue