Sync BaseTool trunk (version r2649) into EDKII BaseTools.
Signed-off-by: Gao, Liming <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15188 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -296,13 +296,13 @@ class FV (FvClassObject):
|
||||
Buffer = ''
|
||||
for Index in range (0, len(self.FvExtEntryType)):
|
||||
if self.FvExtEntryType[Index] == 'FILE':
|
||||
# check if the path is absolute or relative
|
||||
if os.path.isabs(self.FvExtEntryData[Index]):
|
||||
FileFullPath = os.path.normpath(self.FvExtEntryData[Index])
|
||||
else:
|
||||
FileFullPath = os.path.normpath(os.path.join(GenFdsGlobalVariable.WorkSpaceDir, self.FvExtEntryData[Index]))
|
||||
# check if the file path exists or not
|
||||
if not os.path.isfile(FileFullPath):
|
||||
# check if the path is absolute or relative
|
||||
if os.path.isabs(self.FvExtEntryData[Index]):
|
||||
FileFullPath = os.path.normpath(self.FvExtEntryData[Index])
|
||||
else:
|
||||
FileFullPath = os.path.normpath(os.path.join(GenFdsGlobalVariable.WorkSpaceDir, self.FvExtEntryData[Index]))
|
||||
# check if the file path exists or not
|
||||
if not os.path.isfile(FileFullPath):
|
||||
GenFdsGlobalVariable.ErrorLogger("Error opening FV Extension Header Entry file %s." % (self.FvExtEntryData[Index]))
|
||||
FvExtFile = open (FileFullPath,'rb')
|
||||
FvExtFile.seek(0,2)
|
||||
|
Reference in New Issue
Block a user