[util] Allow Option::ROM to access multiple ROM images
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
+6
-2
@@ -28,7 +28,11 @@ my @romfiles = @ARGV;
|
||||
foreach my $romfile ( @romfiles ) {
|
||||
my $rom = new Option::ROM;
|
||||
$rom->load ( $romfile );
|
||||
$rom->pnp_header->fix_checksum() if $rom->pnp_header;
|
||||
$rom->fix_checksum();
|
||||
my $image = $rom;
|
||||
while ( $image ) {
|
||||
$image->pnp_header->fix_checksum() if $image->pnp_header;
|
||||
$image->fix_checksum();
|
||||
$image = $image->next_image();
|
||||
}
|
||||
$rom->save ( $romfile );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user