diff options
author | Shi, Steven <steven.shi@intel.com> | 2019-06-14 19:44:41 +0800 |
---|---|---|
committer | Feng, Bob C <bob.c.feng@intel.com> | 2019-06-17 17:00:45 +0800 |
commit | 04df18535caae11d19686d8f14b5e24a8e67ce31 (patch) | |
tree | 0bd585fb4b2fa1b900e5261c190d78386b4fa992 /BaseTools/Source/Python/build | |
parent | ede54e3588173178ec054b5c4dc181d3c63872b2 (diff) | |
download | edk2-04df18535caae11d19686d8f14b5e24a8e67ce31.tar.gz edk2-04df18535caae11d19686d8f14b5e24a8e67ce31.tar.bz2 edk2-04df18535caae11d19686d8f14b5e24a8e67ce31.zip |
BaseTools:Build Cache output notification message
BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1868
Build need output the cache miss or hit notification
message when consume the build cache. Current build does not
output any message which is not clear for user to know
whether the module built result is from cache or not.
This patch adds message about the cache miss or hit when
build consumes the cache.
Cc: Liming Gao <liming.gao@intel.com>
Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Zhiju.Fan <zhijux.fan@intel.com>
Signed-off-by: Steven Shi <steven.shi@intel.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/build')
-rw-r--r-- | BaseTools/Source/Python/build/build.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Python/build/build.py index 0855d4561c..2dca3c7b34 100644 --- a/BaseTools/Source/Python/build/build.py +++ b/BaseTools/Source/Python/build/build.py @@ -1815,7 +1815,12 @@ class Build(): MaList.append(Ma)
if Ma.CanSkipbyHash():
self.HashSkipModules.append(Ma)
+ if GlobalData.gBinCacheSource:
+ EdkLogger.quiet("cache hit: %s[%s]" % (Ma.MetaFile.Path, Ma.Arch))
continue
+ else:
+ if GlobalData.gBinCacheSource:
+ EdkLogger.quiet("cache miss: %s[%s]" % (Ma.MetaFile.Path, Ma.Arch))
# Not to auto-gen for targets 'clean', 'cleanlib', 'cleanall', 'run', 'fds'
if self.Target not in ['clean', 'cleanlib', 'cleanall', 'run', 'fds']:
# for target which must generate AutoGen code and makefile
@@ -2004,7 +2009,12 @@ class Build(): continue
if Ma.CanSkipbyHash():
self.HashSkipModules.append(Ma)
+ if GlobalData.gBinCacheSource:
+ EdkLogger.quiet("cache hit: %s[%s]" % (Ma.MetaFile.Path, Ma.Arch))
continue
+ else:
+ if GlobalData.gBinCacheSource:
+ EdkLogger.quiet("cache miss: %s[%s]" % (Ma.MetaFile.Path, Ma.Arch))
# Not to auto-gen for targets 'clean', 'cleanlib', 'cleanall', 'run', 'fds'
if self.Target not in ['clean', 'cleanlib', 'cleanall', 'run', 'fds']:
|