From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 65F5721954060 for ; Thu, 27 Apr 2017 02:33:55 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga105.fm.intel.com with ESMTP; 27 Apr 2017 02:33:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,383,1488873600"; d="scan'208";a="254096189" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga004.fm.intel.com with ESMTP; 27 Apr 2017 02:33:54 -0700 Received: from fmsmsx117.amr.corp.intel.com (10.18.116.17) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 27 Apr 2017 02:33:54 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx117.amr.corp.intel.com (10.18.116.17) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 27 Apr 2017 02:33:54 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.246]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.193]) with mapi id 14.03.0319.002; Thu, 27 Apr 2017 17:33:52 +0800 From: "Gao, Liming" To: "Zhu, Yonghong" , "edk2-devel@lists.01.org" Thread-Topic: [edk2] [Patch] BaseTools: Copy "MODULE_UNI_FILE" file into OUTPUT directory Thread-Index: AQHStCjxEJ5DpaewskGWPLEPsndGSKHZCmyQ Date: Thu, 27 Apr 2017 09:33:51 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14D725E04@shsmsx102.ccr.corp.intel.com> References: <1492069075-20184-1-git-send-email-yonghong.zhu@intel.com> In-Reply-To: <1492069075-20184-1-git-send-email-yonghong.zhu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch] BaseTools: Copy "MODULE_UNI_FILE" file into OUTPUT directory X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Apr 2017 09:33:55 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Liming Gao >-----Original Message----- >From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of >Yonghong Zhu >Sent: Thursday, April 13, 2017 3:38 PM >To: edk2-devel@lists.01.org >Cc: Gao, Liming >Subject: [edk2] [Patch] BaseTools: Copy "MODULE_UNI_FILE" file into >OUTPUT directory > >Current the "MODULE_UNI_FILE" item defined in the [Defines] section will >be copied into As Built INF file, but tool doesn't copy the real file into >same directory with the As Built INF file. > >Cc: Liming Gao >Contributed-under: TianoCore Contribution Agreement 1.0 >Signed-off-by: Yonghong Zhu >--- > BaseTools/Source/Python/AutoGen/AutoGen.py | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py >b/BaseTools/Source/Python/AutoGen/AutoGen.py >index c18802f..62b93b7 100644 >--- a/BaseTools/Source/Python/AutoGen/AutoGen.py >+++ b/BaseTools/Source/Python/AutoGen/AutoGen.py >@@ -3878,10 +3878,15 @@ class ModuleAutoGen(AutoGen): > 'guid_item' : [], > 'flags_item' : [], > 'libraryclasses_item' : [] > } > >+ if 'MODULE_UNI_FILE' in MDefs: >+ UNIFile =3D os.path.join(self.MetaFile.Dir, MDefs['MODULE_UNI= _FILE']) >+ if os.path.isfile(UNIFile): >+ shutil.copy2(UNIFile, self.OutputDir) >+ > if self.AutoGenVersion > int(gInfSpecVersion, 0): > AsBuiltInfDict['module_inf_version'] =3D '0x%08x' % self.Auto= GenVersion > else: > AsBuiltInfDict['module_inf_version'] =3D gInfSpecVersion > >-- >2.6.1.windows.1 > >_______________________________________________ >edk2-devel mailing list >edk2-devel@lists.01.org >https://lists.01.org/mailman/listinfo/edk2-devel