BaseTools: increment build generate inf file lost .depex file

increment build generate inf file in output directory lost .depex file info.

Fixes: https://bugzilla.tianocore.org/show_bug.cgi?id=1244
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
Yunhua Feng 2018-10-10 14:54:49 +08:00 committed by Yonghong Zhu
parent ea787b6b55
commit b87099f336
1 changed files with 4 additions and 0 deletions

View File

@ -3636,6 +3636,10 @@ class ModuleAutoGen(AutoGen):
AsBuiltInfDict['binary_item'].append('PE32|' + self.Name + '.efi') AsBuiltInfDict['binary_item'].append('PE32|' + self.Name + '.efi')
else: else:
AsBuiltInfDict['binary_item'].append('BIN|' + File) AsBuiltInfDict['binary_item'].append('BIN|' + File)
if not self.DepexGenerated:
DepexFile = os.path.join(self.OutputDir, self.Name + '.depex')
if os.path.exists(DepexFile):
self.DepexGenerated = True
if self.DepexGenerated: if self.DepexGenerated:
self.OutputFile.add(self.Name + '.depex') self.OutputFile.add(self.Name + '.depex')
if self.ModuleType in [SUP_MODULE_PEIM]: if self.ModuleType in [SUP_MODULE_PEIM]: