]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools: increment build generate inf file lost .depex file
authorYunhua Feng <yunhuax.feng@intel.com>
Wed, 10 Oct 2018 06:54:49 +0000 (14:54 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Mon, 15 Oct 2018 02:28:05 +0000 (10:28 +0800)
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>
BaseTools/Source/Python/AutoGen/AutoGen.py

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