]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTool: Fixed the incorrect cache key.
authorbob.c.feng@intel.com <bob.c.feng@intel.com>
Tue, 10 Jul 2018 16:19:24 +0000 (00:19 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 12 Jul 2018 07:57:32 +0000 (15:57 +0800)
This patch is to fix the incorrect cache key of
skip ModuleAutoGen cache.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Source/Python/AutoGen/AutoGen.py

index b27290989e9a1904fb87a6000ada97a79fec2346..54c6b7330f53ee5de6866309d38febc7de3da235 100644 (file)
@@ -4320,7 +4320,7 @@ class ModuleAutoGen(AutoGen):
     #  If any source file is newer than the module than we cannot skip\r
     #\r
     def CanSkip(self):\r
-        if self.MetaFile in GlobalData.gSikpAutoGenCache:\r
+        if self.MakeFileDir in GlobalData.gSikpAutoGenCache:\r
             return True\r
         if not os.path.exists(self.GetTimeStampPath()):\r
             return False\r
@@ -4340,7 +4340,7 @@ class ModuleAutoGen(AutoGen):
                     ModuleAutoGen.TimeDict[source] = os.stat(source)[8]\r
                 if ModuleAutoGen.TimeDict[source] > DstTimeStamp:\r
                     return False\r
-        GlobalData.gSikpAutoGenCache.add(self.MetaFile)\r
+        GlobalData.gSikpAutoGenCache.add(self.MakeFileDir)\r
         return True\r
 \r
     def GetTimeStampPath(self):\r