summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunhua Feng <yunhuax.feng@intel.com>2018-10-10 14:54:49 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-10-15 10:28:05 +0800
commit04aa423c8d08e93e8369fbe7793c7df9b3327c8c (patch)
tree0753265330fd021ee3fd82b44111158c5c24d2f1
parent6974c784cbfcdf61725f4f28ecca34991774369f (diff)
downloadedk2-04aa423c8d08e93e8369fbe7793c7df9b3327c8c.zip
edk2-04aa423c8d08e93e8369fbe7793c7df9b3327c8c.tar.gz
edk2-04aa423c8d08e93e8369fbe7793c7df9b3327c8c.tar.bz2
BaseTools: increment build generate inf file lost .depex file
increment build generate inf file in output directory lost .depex file info. (re-add this patch since it be reverted in Python3 migration patches, but this check is not related with Python3) 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>
-rw-r--r--BaseTools/Source/Python/AutoGen/AutoGen.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/Python/AutoGen/AutoGen.py
index 7c0bb47..f2146a7 100644
--- a/BaseTools/Source/Python/AutoGen/AutoGen.py
+++ b/BaseTools/Source/Python/AutoGen/AutoGen.py
@@ -3637,6 +3637,10 @@ class ModuleAutoGen(AutoGen):
AsBuiltInfDict['binary_item'].append('PE32|' + self.Name + '.efi')
else:
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:
self.OutputFile.add(self.Name + '.depex')
if self.ModuleType in [SUP_MODULE_PEIM]: