From: "Steven Shi" <steven.shi@intel.com>
To: "Feng, Bob C" <bob.c.feng@intel.com>,
"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Gao, Liming" <liming.gao@intel.com>,
"Rodriguez, Christian" <christian.rodriguez@intel.com>
Subject: Re: [Patch 1/2] BaseTools: refine CreateAsBuiltInf function
Date: Mon, 24 Jun 2019 07:19:07 +0000 [thread overview]
Message-ID: <06C8AB66E78EE34A949939824ABE2B314002D1F2@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <20190624015124.16544-1-bob.c.feng@intel.com>
Reviewed-by: Steven Shi <steven.shi@intel.com>
> -----Original Message-----
> From: Feng, Bob C
> Sent: Monday, June 24, 2019 9:51 AM
> To: devel@edk2.groups.io
> Cc: Gao, Liming <liming.gao@intel.com>; Shi, Steven <steven.shi@intel.com>;
> Rodriguez, Christian <christian.rodriguez@intel.com>; Feng, Bob C
> <bob.c.feng@intel.com>
> Subject: [Patch 1/2] BaseTools: refine CreateAsBuiltInf function
>
> BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1932
> ModuleAutogen.CreateAsBuiltInf IsOnlyCopy parameter
> and related function can be moved out of CreateAsBuiltInf,
> so that CreateAsBuiltInf is more clean.
>
> Cc: Liming Gao <liming.gao@intel.com>
> Cc: Steven Shi <steven.shi@intel.com>
> Cc: Christian Rodriguez <christian.rodriguez@intel.com>
> Signed-off-by: Bob Feng <bob.c.feng@intel.com>
> ---
> BaseTools/Source/Python/AutoGen/AutoGen.py | 5 +----
> BaseTools/Source/Python/build/build.py | 6 ++++--
> 2 files changed, 5 insertions(+), 6 deletions(-)
>
> diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py
> b/BaseTools/Source/Python/AutoGen/AutoGen.py
> index f50941d422..45b81ed660 100644
> --- a/BaseTools/Source/Python/AutoGen/AutoGen.py
> +++ b/BaseTools/Source/Python/AutoGen/AutoGen.py
> @@ -3579,15 +3579,12 @@ class ModuleAutoGen(AutoGen):
> fInputfile.close ()
> return OutputName
>
> ## Create AsBuilt INF file the module
> #
> - def CreateAsBuiltInf(self, IsOnlyCopy = False):
> + def CreateAsBuiltInf(self):
> self.OutputFile = set()
> - if IsOnlyCopy and GlobalData.gBinCacheDest:
> - self.CopyModuleToCache()
> - return
>
> if self.IsAsBuiltInfCreated:
> return
>
> # Skip INF file generation for libraries
> diff --git a/BaseTools/Source/Python/build/build.py
> b/BaseTools/Source/Python/build/build.py
> index 2dca3c7b34..3ece4d4c61 100644
> --- a/BaseTools/Source/Python/build/build.py
> +++ b/BaseTools/Source/Python/build/build.py
> @@ -2217,17 +2217,19 @@ class Build():
> all_mod_set = set()
> for Module in self.BuildModules:
> Module.CreateAsBuiltInf()
> all_mod_set.add(Module)
> for Module in self.HashSkipModules:
> - Module.CreateAsBuiltInf(True)
> + if GlobalData.gBinCacheDest:
> + Module.CopyModuleToCache()
> all_mod_set.add(Module)
> for Module in all_mod_set:
> for lib in Module.LibraryAutoGenList:
> all_lib_set.add(lib)
> for lib in all_lib_set:
> - lib.CreateAsBuiltInf(True)
> + if GlobalData.gBinCacheDest:
> + lib.CopyModuleToCache()
> all_lib_set.clear()
> all_mod_set.clear()
> self.BuildModules = []
> self.HashSkipModules = []
> ## Do some clean-up works when error occurred
> --
> 2.20.1.windows.1
prev parent reply other threads:[~2019-06-24 7:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-24 1:51 [Patch 1/2] BaseTools: refine CreateAsBuiltInf function Bob Feng
2019-06-24 7:19 ` Steven Shi [this message]
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=06C8AB66E78EE34A949939824ABE2B314002D1F2@shsmsx102.ccr.corp.intel.com \
--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