From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=liming.gao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (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 E07222116DA05 for ; Fri, 12 Oct 2018 06:31:47 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Oct 2018 06:31:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,372,1534834800"; d="scan'208";a="94658780" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga002.fm.intel.com with ESMTP; 12 Oct 2018 06:31:47 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 12 Oct 2018 06:31:47 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.319.2; Fri, 12 Oct 2018 06:31:47 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.48]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.245]) with mapi id 14.03.0319.002; Fri, 12 Oct 2018 21:31:45 +0800 From: "Gao, Liming" To: "Zhu, Yonghong" , "edk2-devel@lists.01.org" Thread-Topic: [edk2] [PATCH] BaseTools: increment build generate inf file lost .depex file Thread-Index: AQHUYdbD+cmGsbxpy0iWbggufXORnaUbnCGQ Date: Fri, 12 Oct 2018 13:31:43 +0000 Message-ID: <4A89E2EF3DFEDB4C8BFDE51014F606A14E3393E2@SHSMSX104.ccr.corp.intel.com> References: <1539312792-11344-1-git-send-email-yonghong.zhu@intel.com> In-Reply-To: <1539312792-11344-1-git-send-email-yonghong.zhu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYjNkN2FjYWMtOGEyMy00MGQzLTlhZjAtMDRkNWVmMzhjZTE2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiU28yRGhjbTd4Sk8yc1U5TFZzbzNwVlpxb3dOaXVHcStNVkFWUU1Ea05ITnVudGhxU2JcLzY4cURYYkVxMVwvUUd1In0= dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] BaseTools: increment build generate inf file lost .depex file X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Oct 2018 13:31:48 -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: Friday, October 12, 2018 10:53 AM > To: edk2-devel@lists.01.org > Cc: Gao, Liming > Subject: [edk2] [PATCH] BaseTools: increment build generate inf file lost= .depex file >=20 > From: Yunhua Feng >=20 > increment build generate inf file in output directory lost .depex file in= fo. >=20 > Fixes: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1244 > Cc: Liming Gao > Cc: Yonghong Zhu > Contributed-under: TianoCore Contribution Agreement 1.1 > Signed-off-by: Yunhua Feng > --- > BaseTools/Source/Python/AutoGen/AutoGen.py | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > diff --git a/BaseTools/Source/Python/AutoGen/AutoGen.py b/BaseTools/Sourc= e/Python/AutoGen/AutoGen.py > index 5778943512..2201ec8790 100644 > --- a/BaseTools/Source/Python/AutoGen/AutoGen.py > +++ b/BaseTools/Source/Python/AutoGen/AutoGen.py > @@ -3634,10 +3634,14 @@ class ModuleAutoGen(AutoGen): > AsBuiltInfDict['binary_item'].append('ACPI|' + File) > elif Item.Target.Ext.lower() =3D=3D '.efi': > AsBuiltInfDict['binary_item'].append('PE32|' + self.Name= + '.efi') > else: > AsBuiltInfDict['binary_item'].append('BIN|' + File) > + if not self.DepexGenerated: > + DepexFile =3D os.path.join(self.OutputDir, self.Name + '.dep= ex') > + if os.path.exists(DepexFile): > + self.DepexGenerated =3D True > if self.DepexGenerated: > self.OutputFile.add(self.Name + '.depex') > if self.ModuleType in [SUP_MODULE_PEIM]: > AsBuiltInfDict['binary_item'].append('PEI_DEPEX|' + self= .Name + '.depex') > elif self.ModuleType in [SUP_MODULE_DXE_DRIVER, SUP_MODULE_D= XE_RUNTIME_DRIVER, > SUP_MODULE_DXE_SAL_DRIVER, SUP_MODULE_UEFI_DRIVER]: > -- > 2.12.2.windows.2 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel