]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BaseTools/AutoGen: Remove redundant copy action for binary module
authorHess Chen <hesheng.chen@intel.com>
Thu, 4 Sep 2014 08:32:44 +0000 (08:32 +0000)
committerhchen30 <hchen30@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 4 Sep 2014 08:32:44 +0000 (08:32 +0000)
Remove redundant copy action for binary module to copy binary files to output directory only when the binary module is a library

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hess Chen <hesheng.chen@intel.com>
Reviewed-by: Yingke Liu <yingke.d.liu@Intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16057 6f19259b-4bc3-4df7-8a09-765794883524

BaseTools/Source/Python/AutoGen/AutoGen.py

index 0b6582845952e330aa6cbb7a9743bbd1744af34b..7c0d7a4509b9ac0d121c9a40bc007bbb94016096 100644 (file)
@@ -3429,7 +3429,8 @@ class ModuleAutoGen(AutoGen):
             CreatePcdDatabaseCode(self, TemplateString(), TemplateString())\r
             return\r
         if self.IsBinaryModule:\r
-            self.CopyBinaryFiles()\r
+            if self.IsLibrary:\r
+                self.CopyBinaryFiles()\r
             return\r
 \r
         if not self.IsLibrary and CreateLibraryCodeFile:\r