BaseTools: FMMT support ELF UPLD parser
FMMT add new function to support the .elf file parsing. Using '-v' option, the UPLD info will be printed out. ''' - UNIVERSAL_PAYLOAD_INFO - 4 bytes align (BOOLEAN) - Identifier - SpecRevision - Attribute - Revision - Capability - ProducerId - ImageId UPLD Buffer ''' Cc: Rebecca Cran <rebecca@bsdio.com> Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Signed-off-by: Yuwei Chen <yuwei.chen@intel.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
This commit is contained in:
@ -84,6 +84,8 @@ class FMMT():
|
||||
ROOT_TYPE = ROOT_FFS_TREE
|
||||
elif filetype == '.sec':
|
||||
ROOT_TYPE = ROOT_SECTION_TREE
|
||||
elif filetype == '.elf':
|
||||
ROOT_TYPE = ROOT_ELF_TREE
|
||||
else:
|
||||
ROOT_TYPE = ROOT_TREE
|
||||
ViewFile(inputfile, ROOT_TYPE, layoutfilename, outputfile)
|
||||
|
Reference in New Issue
Block a user