public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [Patch 1/1] BaseTools: Fix the lib order in static_library_files.lst
@ 2019-09-27 11:35 Bob Feng
  2019-09-27 14:02 ` dann frazier
  2019-09-29  3:33 ` [edk2-devel] " Liming Gao
  0 siblings, 2 replies; 3+ messages in thread
From: Bob Feng @ 2019-09-27 11:35 UTC (permalink / raw)
  To: devel; +Cc: Liming Gao, dann frazier, Bob Feng

Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2216

This patch is going to fix the lib order in static_library_files.lst.
This issue is introduced by commit 673d09a2dd.
Before 673d09a2dd, build tool apply build rule for the module's library
firstly and then apply build rule for module itself. Now, build tool
apply build rule for module self and then for its library. That behavior
impact the lib order in static_library_files.lst.

This patch is to call module's LibraryAutoGenList function
explicitly, where the applying build rule action for
library is triggered.

Cc: Liming Gao <liming.gao@intel.com>
Cc: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
---
 BaseTools/Source/Python/AutoGen/ModuleAutoGen.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py b/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
index fad5bab0f24d..f0812b6887be 100755
--- a/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
+++ b/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
@@ -1841,11 +1841,11 @@ class ModuleAutoGen(AutoGen):
                 LibraryAutoGen.CreateCodeFile()
 
         # CanSkip uses timestamps to determine build skipping
         if self.CanSkip():
             return
-
+        self.LibraryAutoGenList
         AutoGenList = []
         IgoredAutoGenList = []
 
         for File in self.AutoGenFileList:
             if GenC.Generate(File.Path, self.AutoGenFileList[File], File.IsBinary):
-- 
2.20.1.windows.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Patch 1/1] BaseTools: Fix the lib order in static_library_files.lst
  2019-09-27 11:35 [Patch 1/1] BaseTools: Fix the lib order in static_library_files.lst Bob Feng
@ 2019-09-27 14:02 ` dann frazier
  2019-09-29  3:33 ` [edk2-devel] " Liming Gao
  1 sibling, 0 replies; 3+ messages in thread
From: dann frazier @ 2019-09-27 14:02 UTC (permalink / raw)
  To: Feng, Bob C; +Cc: devel, Liming Gao

On Fri, Sep 27, 2019 at 5:35 AM Feng, Bob C <bob.c.feng@intel.com> wrote:
>
> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2216
>
> This patch is going to fix the lib order in static_library_files.lst.
> This issue is introduced by commit 673d09a2dd.
> Before 673d09a2dd, build tool apply build rule for the module's library
> firstly and then apply build rule for module itself. Now, build tool
> apply build rule for module self and then for its library. That behavior
> impact the lib order in static_library_files.lst.
>
> This patch is to call module's LibraryAutoGenList function
> explicitly, where the applying build rule action for
> library is triggered.
>
> Cc: Liming Gao <liming.gao@intel.com>
> Cc: dann frazier <dann.frazier@canonical.com>
> Signed-off-by: Bob Feng <bob.c.feng@intel.com>

Thanks Bob! Confirmed fixes my issue.
Tested-by: dann frazier <dann.frazier@canonical.com>

  -dann

> ---
>  BaseTools/Source/Python/AutoGen/ModuleAutoGen.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py b/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
> index fad5bab0f24d..f0812b6887be 100755
> --- a/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
> +++ b/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
> @@ -1841,11 +1841,11 @@ class ModuleAutoGen(AutoGen):
>                  LibraryAutoGen.CreateCodeFile()
>
>          # CanSkip uses timestamps to determine build skipping
>          if self.CanSkip():
>              return
> -
> +        self.LibraryAutoGenList
>          AutoGenList = []
>          IgoredAutoGenList = []
>
>          for File in self.AutoGenFileList:
>              if GenC.Generate(File.Path, self.AutoGenFileList[File], File.IsBinary):
> --
> 2.20.1.windows.1
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [edk2-devel] [Patch 1/1] BaseTools: Fix the lib order in static_library_files.lst
  2019-09-27 11:35 [Patch 1/1] BaseTools: Fix the lib order in static_library_files.lst Bob Feng
  2019-09-27 14:02 ` dann frazier
@ 2019-09-29  3:33 ` Liming Gao
  1 sibling, 0 replies; 3+ messages in thread
From: Liming Gao @ 2019-09-29  3:33 UTC (permalink / raw)
  To: devel@edk2.groups.io, Feng, Bob C; +Cc: dann frazier

Reviewed-by: Liming Gao <liming.gao@intel.com>

>-----Original Message-----
>From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of
>Bob Feng
>Sent: Friday, September 27, 2019 7:35 PM
>To: devel@edk2.groups.io
>Cc: Gao, Liming <liming.gao@intel.com>; dann frazier
><dann.frazier@canonical.com>; Feng, Bob C <bob.c.feng@intel.com>
>Subject: [edk2-devel] [Patch 1/1] BaseTools: Fix the lib order in
>static_library_files.lst
>
>Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2216
>
>This patch is going to fix the lib order in static_library_files.lst.
>This issue is introduced by commit 673d09a2dd.
>Before 673d09a2dd, build tool apply build rule for the module's library
>firstly and then apply build rule for module itself. Now, build tool
>apply build rule for module self and then for its library. That behavior
>impact the lib order in static_library_files.lst.
>
>This patch is to call module's LibraryAutoGenList function
>explicitly, where the applying build rule action for
>library is triggered.
>
>Cc: Liming Gao <liming.gao@intel.com>
>Cc: dann frazier <dann.frazier@canonical.com>
>Signed-off-by: Bob Feng <bob.c.feng@intel.com>
>---
> BaseTools/Source/Python/AutoGen/ModuleAutoGen.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
>b/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
>index fad5bab0f24d..f0812b6887be 100755
>--- a/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
>+++ b/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
>@@ -1841,11 +1841,11 @@ class ModuleAutoGen(AutoGen):
>                 LibraryAutoGen.CreateCodeFile()
>
>         # CanSkip uses timestamps to determine build skipping
>         if self.CanSkip():
>             return
>-
>+        self.LibraryAutoGenList
>         AutoGenList = []
>         IgoredAutoGenList = []
>
>         for File in self.AutoGenFileList:
>             if GenC.Generate(File.Path, self.AutoGenFileList[File], File.IsBinary):
>--
>2.20.1.windows.1
>
>
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-09-29  3:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-27 11:35 [Patch 1/1] BaseTools: Fix the lib order in static_library_files.lst Bob Feng
2019-09-27 14:02 ` dann frazier
2019-09-29  3:33 ` [edk2-devel] " Liming Gao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox