public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Lin, Derek (HPS SW)" <derek.lin2@hpe.com>
To: Steven Shi <steven.shi@intel.com>,devel@edk2.groups.io
Subject: Re: [edk2-devel] BaseTools --hash malfunction after migrate from stable201905 to stable201908
Date: Fri, 27 Sep 2019 00:57:15 -0700	[thread overview]
Message-ID: <13576.1569571035464933693@groups.io> (raw)
In-Reply-To: <06C8AB66E78EE34A949939824ABE2B3140183293@shsmsx102.ccr.corp.intel.com>


[-- Attachment #1.1: Type: text/plain, Size: 820 bytes --]

Hi Steven,

Thanks for the fix!
I've tried your patch with a minor fix as attached.
1            2           3                4
Build Duration:        00:05:51  00:03:47  00:05:15  00:04:31
AutoGen Duration:  00:03:32  00:03:08  00:03:14  00:03:16
Make Duration:       00:01:50  00:00:16  00:01:29  00:00:50
GenFds Duration:   00:00:30  00:00:22  00:00:31  00:00:23

1: clean build with patch and --hash
2: incremental build
3. clean build without patch and without --hash
4. incremental build

BTW, this data cannot compare with previous data I provided because they are built in different environment.

In general, the result is as you said that it fix --hash functionality, but not as quick as before.
Also the cost of --hash in clean build is increased.

[-- Attachment #1.2: Type: text/html, Size: 1248 bytes --]

[-- Attachment #2: build.patch --]
[-- Type: application/octet-stream, Size: 1067 bytes --]

From 785f105b6ae6582996cb1db36f182d796729590c Mon Sep 17 00:00:00 2001
From: Derek Lin <derek.lin2@hpe.com>
Date: Fri, 27 Sep 2019 14:06:04 +0800
Subject: [PATCH] Remove gModuleBuildTracking

---
 BaseTools/Source/Python/AutoGen/GenMake.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/BaseTools/Source/Python/AutoGen/GenMake.py b/BaseTools/Source/Python/AutoGen/GenMake.py
index 584156dab97..4ed46de888c 100755
--- a/BaseTools/Source/Python/AutoGen/GenMake.py
+++ b/BaseTools/Source/Python/AutoGen/GenMake.py
@@ -968,8 +968,6 @@ def ProcessBuildTargetList(self):
         for aFile in headerFileDependencySet:
             if aFile in headerFilesInMetaFileSet:
                 continue
-            if GlobalData.gUseHashCache:
-                GlobalData.gModuleBuildTracking[self._AutoGenObject] = 'FAIL_METAFILE'
             EdkLogger.warn("build","Module MetaFile [Sources] is missing local header!",
                         ExtraData = "Local Header: " + aFile + " not found in " + self._AutoGenObject.MetaFile.Path
                         )

  reply	other threads:[~2019-09-27  7:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-20  6:54 BaseTools --hash malfunction after migrate from stable201905 to stable201908 Lin, Derek (HPS SW)
2019-09-23  7:51 ` Steven Shi
2019-09-24  8:12 ` Steven Shi
2019-09-27  7:57   ` Lin, Derek (HPS SW) [this message]
2019-09-29  2:31     ` [edk2-devel] " Steven Shi
2019-10-21  5:27       ` Steven Shi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=13576.1569571035464933693@groups.io \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox