summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Rodriguez <christian.rodriguez@intel.com>2019-04-17 03:40:55 +0800
committerFeng, Bob C <bob.c.feng@intel.com>2019-04-22 16:50:26 +0800
commit56008eb7f68cd8bf8fec213406e4f3ef16898329 (patch)
treed70dca6860a02ab20d14cc1d174c32439a4be938
parent35c2af00d8c349f3e0feca0c430034818e64020c (diff)
downloadedk2-56008eb7f68cd8bf8fec213406e4f3ef16898329.tar.gz
edk2-56008eb7f68cd8bf8fec213406e4f3ef16898329.tar.bz2
edk2-56008eb7f68cd8bf8fec213406e4f3ef16898329.zip
BaseTools: Hash false success.. minor change in hash invalidation
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1692 Change part of the hash error handling to invalidate hashes in the cache destination not the cache source. Signed-off-by: Christian Rodriguez <christian.rodriguez@intel.com> Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
-rw-r--r--BaseTools/Source/Python/build/build.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py
index 71478b7268..7271570d29 100644
--- a/BaseTools/Source/Python/build/build.py
+++ b/BaseTools/Source/Python/build/build.py
@@ -1165,8 +1165,8 @@ class Build():
os.remove(ModuleHashFile)
# Remove .hash file from cache
- if GlobalData.gBinCacheSource:
- FileDir = path.join(GlobalData.gBinCacheSource, moduleAutoGenObj.Arch, moduleAutoGenObj.SourceDir, moduleAutoGenObj.MetaFile.BaseName)
+ if GlobalData.gBinCacheDest:
+ FileDir = path.join(GlobalData.gBinCacheDest, moduleAutoGenObj.Arch, moduleAutoGenObj.SourceDir, moduleAutoGenObj.MetaFile.BaseName)
HashFile = path.join(FileDir, moduleAutoGenObj.Name + '.hash')
if os.path.exists(HashFile):
os.remove(HashFile)