[edk2-devel] [PATCH] BaseTools:Build Cache output notification message

Fan, ZhijuX zhijux.fan at intel.com
Thu Jun 6 01:22:11 UTC 2019


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 is to consume the build cache.

Cc: Liming Gao <liming.gao at intel.com>
Cc: Bob Feng <bob.c.feng at intel.com>
Cc: Steven Shi <steven.shi at intel.com>
Signed-off-by: Zhiju.Fan <zhijux.fan at intel.com>
---
 BaseTools/Source/Python/AutoGen/AutoGen.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Source/Python/AutoGen/AutoGen.py
index f1b8f9364b..a3de730d1f 100644
--- a/BaseTools/Source/Python/AutoGen/AutoGen.py
+++ b/BaseTools/Source/Python/AutoGen/AutoGen.py
@@ -3957,7 +3957,9 @@ class ModuleAutoGen(AutoGen):
                                 shutil.copy(File, destination_dir)
                     if self.Name == "PcdPeim" or self.Name == "PcdDxe":
                         CreatePcdDatabaseCode(self, TemplateString(), TemplateString())
+                    EdkLogger.quiet("Cache hit ... %s[%s]" % (self.MetaFile.Path,self.Arch))
                     return True
+        EdkLogger.quiet("Cache miss ... %s[%s]" % (self.MetaFile.Path, self.Arch))
         return False
 
     ## Create makefile for the module and its dependent libraries
-- 
2.17.1.windows.2


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#41968): https://edk2.groups.io/g/devel/message/41968
Mute This Topic: https://groups.io/mt/31945437/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 3934 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20190606/6de462bb/attachment.bin>


More information about the edk2-devel-archive mailing list