BaseTools: handling the case that map file is not exist

We meet a case that add the library inf file which has the uni file in
the [Sources] section, for this case there will no map file exist, it
cause build tools report Traceback  error.

Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
Yonghong Zhu 2016-09-22 09:48:46 +08:00
parent ea317c0658
commit 587e9dfbba
1 changed files with 17 additions and 16 deletions

View File

@ -941,6 +941,7 @@ class FfsInfStatement(FfsInfStatementClassObject):
#
# Generate the Raw data of raw section
#
if VfrUniOffsetList:
os.path.join( self.OutputPath, self.BaseName + '.offset')
UniVfrOffsetFileName = os.path.join( self.OutputPath, self.BaseName + '.offset')
UniVfrOffsetFileSection = os.path.join( self.OutputPath, self.BaseName + 'Offset' + '.raw')