diff --git a/bin/extract-firmware b/bin/extract-firmware index 0d43bd9..c328596 100755 --- a/bin/extract-firmware +++ b/bin/extract-firmware @@ -197,10 +197,10 @@ sub process_ffs my $data = substr($ffs, $data_offset); my $name = EFI::file_type_lookup($type); - if ($name eq 'RAW') + if ($name eq 'FFS_PAD' or $name eq 'RAW') { # we are done here - printf "%s/%s.ffs: RAW length 0x%x \n", $base, $guid, $len; + printf "%s/%s.ffs: $name length 0x%x \n", $base, $guid, $len; return; } @@ -265,8 +265,9 @@ sub process_section return; } - if ($type eq 'RAW') - { + if ($type eq 'RAW' + or $type eq 'TIANO_COMPRESSED' + ) { return; } diff --git a/lib/EFI.pm b/lib/EFI.pm index 12b8f69..e5668e5 100755 --- a/lib/EFI.pm +++ b/lib/EFI.pm @@ -68,6 +68,7 @@ our %file_types = qw/ our %section_types = qw/ + TIANO_COMPRESSED 0x01 GUID_DEFINED 0x02 PE32 0x10 PIC 0x11