diff options
author | Bob Feng <bob.c.feng@intel.com> | 2019-06-24 09:51:24 +0800 |
---|---|---|
committer | Feng, Bob C <bob.c.feng@intel.com> | 2019-06-25 09:23:53 +0800 |
commit | dc174cd9e5de5171a5c7729e765b3af8b9e347fd (patch) | |
tree | 7262312bfbc5e0528b3af3ed92583b67a2eadf12 /BaseTools/Source/Python/build | |
parent | 401507c786b4b8bc208c0c34ebdad047173e37ea (diff) | |
download | edk2-dc174cd9e5de5171a5c7729e765b3af8b9e347fd.tar.gz edk2-dc174cd9e5de5171a5c7729e765b3af8b9e347fd.tar.bz2 edk2-dc174cd9e5de5171a5c7729e765b3af8b9e347fd.zip |
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>
Reviewed-by: Steven Shi <steven.shi@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/build')
-rw-r--r-- | BaseTools/Source/Python/build/build.py | 6 |
1 files changed, 4 insertions, 2 deletions
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 @@ -2219,13 +2219,15 @@ class Build(): 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 = []
|