From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.100; helo=mga07.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (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 83FEF2232BDEF for ; Mon, 22 Jan 2018 07:13:41 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Jan 2018 07:19:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,397,1511856000"; d="scan'208";a="12518863" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga006.jf.intel.com with ESMTP; 22 Jan 2018 07:19:07 -0800 Received: from fmsmsx151.amr.corp.intel.com (10.18.125.4) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 22 Jan 2018 07:19:07 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX151.amr.corp.intel.com (10.18.125.4) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 22 Jan 2018 07:19:06 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.152]) by shsmsx102.ccr.corp.intel.com ([169.254.2.189]) with mapi id 14.03.0319.002; Mon, 22 Jan 2018 23:19:04 +0800 From: "Gao, Liming" To: "Zhu, Yonghong" , "edk2-devel@lists.01.org" Thread-Topic: [edk2] [Patch V2] BaseTools: Enhance binary file in [Binaries] section use relative path Thread-Index: AQHTk2iS0H9N6zwmtUiDuFNf6BodwqOAAdWA Date: Mon, 22 Jan 2018 15:19:03 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E1A7788@SHSMSX104.ccr.corp.intel.com> References: <1516615507-6220-1-git-send-email-yonghong.zhu@intel.com> In-Reply-To: <1516615507-6220-1-git-send-email-yonghong.zhu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch V2] BaseTools: Enhance binary file in [Binaries] section use relative path X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2018 15:13:42 -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 Yo= nghong Zhu > Sent: Monday, January 22, 2018 6:05 PM > To: edk2-devel@lists.01.org > Subject: [edk2] [Patch V2] BaseTools: Enhance binary file in [Binaries] s= ection use relative path >=20 > V2: make sure the relative path base on the Asbuilt inf path >=20 > Enhance the binary file in Asbuilt inf file [Binaries] section use > relative path. >=20 > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Yonghong Zhu > --- > BaseTools/Source/Python/AutoGen/AutoGen.py | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Sourc= e/Python/AutoGen/AutoGen.py > index 998a733..013ca9d 100644 > --- a/BaseTools/Source/Python/AutoGen/AutoGen.py > +++ b/BaseTools/Source/Python/AutoGen/AutoGen.py > @@ -4151,10 +4151,12 @@ class ModuleAutoGen(AutoGen): > DebugDir =3D self.DebugDir.replace('\\', '/').strip('/') > for Item in self.CodaTargetList: > File =3D Item.Target.Path.replace('\\', '/').strip('/').repl= ace(DebugDir, '').strip('/') > if File not in self.OutputFile: > self.OutputFile.append(File) > + if os.path.isabs(File): > + File =3D File.replace('\\', '/').strip('/').replace(Outp= utDir, '').strip('/') > if Item.Target.Ext.lower() =3D=3D '.aml': > AsBuiltInfDict['binary_item'] +=3D ['ASL|' + File] > elif Item.Target.Ext.lower() =3D=3D '.acpi': > AsBuiltInfDict['binary_item'] +=3D ['ACPI|' + File] > elif Item.Target.Ext.lower() =3D=3D '.efi': > -- > 2.6.1.windows.1 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel