summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/AutoGen
diff options
context:
space:
mode:
authorBob Feng <bob.c.feng@intel.com>2019-06-24 09:51:24 +0800
committerFeng, Bob C <bob.c.feng@intel.com>2019-06-25 09:23:53 +0800
commitdc174cd9e5de5171a5c7729e765b3af8b9e347fd (patch)
tree7262312bfbc5e0528b3af3ed92583b67a2eadf12 /BaseTools/Source/Python/AutoGen
parent401507c786b4b8bc208c0c34ebdad047173e37ea (diff)
downloadedk2-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/AutoGen')
-rw-r--r--BaseTools/Source/Python/AutoGen/AutoGen.py5
1 files changed, 1 insertions, 4 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
@@ -3581,11 +3581,8 @@ class ModuleAutoGen(AutoGen):
## 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