From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Permerror (SPF Permanent Error: More than 10 MX records returned) identity=mailfrom; client-ip=134.134.136.100; helo=mga07.intel.com; envelope-from=yonghong.zhu@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 2D09021A1097D for ; Thu, 7 Dec 2017 07:57:07 -0800 (PST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Dec 2017 08:01:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,373,1508828400"; d="scan'208";a="16300168" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga002.jf.intel.com with ESMTP; 07 Dec 2017 08:01:39 -0800 Received: from fmsmsx126.amr.corp.intel.com (10.18.125.43) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 7 Dec 2017 08:01:39 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX126.amr.corp.intel.com (10.18.125.43) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 7 Dec 2017 08:01:38 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.218]) with mapi id 14.03.0319.002; Fri, 8 Dec 2017 00:01:37 +0800 From: "Zhu, Yonghong" To: Leif Lindholm CC: "edk2-devel@lists.01.org" , "Feng, YunhuaX" , "Gao, Liming" , "jason.zhang@linaro.org" , "Zhu, Yonghong" Thread-Topic: [edk2] [PATCH] BaseTools: Fix GenSec can't found the depex file Thread-Index: AQHTbyfQ8/BQcCAnkkOsSaTfnmmBeKM3OOCAgACdiwD//5aGAIAAh66wgAAWMSA= Date: Thu, 7 Dec 2017 16:01:36 +0000 Message-ID: References: <1512629477-12264-1-git-send-email-yonghong.zhu@intel.com> <20171207112931.2rp4fy4s4uegba27@bivouac.eciton.net> <20171207143552.bspv72fj7auhub74@bivouac.eciton.net> 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: Fix GenSec can't found the depex file 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, 07 Dec 2017 15:57:07 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Leif, I just sent out V2 patch. thanks. Best Regards, Zhu Yonghong -----Original Message----- From: Zhu, Yonghong=20 Sent: Thursday, December 07, 2017 10:42 PM To: 'Leif Lindholm' Cc: edk2-devel@lists.01.org; Feng, YunhuaX ; Gao, L= iming ; jason.zhang@linaro.org; Zhu, Yonghong Subject: RE: [edk2] [PATCH] BaseTools: Fix GenSec can't found the depex fil= e Hi Leif, I reproduced this issue. Thanks. I will try to fix it ASAP. Best Regards, Zhu Yonghong -----Original Message----- From: Leif Lindholm [mailto:leif.lindholm@linaro.org] Sent: Thursday, December 07, 2017 10:36 PM To: Zhu, Yonghong Cc: edk2-devel@lists.01.org; Feng, YunhuaX ; Gao, L= iming ; jason.zhang@linaro.org Subject: Re: [edk2] [PATCH] BaseTools: Fix GenSec can't found the depex fil= e Hi Yonghong, I do not have the DSC that was used to build it. The FDF is https://github.com/tianocore/edk2-platforms/blob/master/Platform/Hisilicon/= D05/D05.fdf#L250 Jason (cc) may be able to provide more information on the binary. Best Regards, Leif On Thu, Dec 07, 2017 at 12:55:48PM +0000, Zhu, Yonghong wrote: > Hi Leif, >=20 > May I know how this binary driver is described in DSC file and FDF=20 > file, and the [Rule.Common.DXE_DRIVER.BINARY] section ? > I tried to add this driver into OvmfPkg, but failed to reproduce this=20 > failure. Thanks. >=20 > Best Regards, > Zhu Yonghong >=20 >=20 > -----Original Message----- > From: Leif Lindholm [mailto:leif.lindholm@linaro.org] > Sent: Thursday, December 07, 2017 7:30 PM > To: Zhu, Yonghong > Cc: edk2-devel@lists.01.org; Feng, YunhuaX ;=20 > Gao, Liming > Subject: Re: [edk2] [PATCH] BaseTools: Fix GenSec can't found the=20 > depex file >=20 > Hi Yonghong, >=20 > This patch resolves the issue for the hikey platform, but not for=20 > (edk2-platforms/Platform/Hisilicon/)D03/D05. They fail with >=20 > --- > Generating FVMAIN FV > ###### > ######################################## > #############################Return Value =3D 2 > GenSec: ERROR 0001: Error opening file >=20 > =20 > /work/git/tianocore/Build/D03/DEBUG_GCC5/AARCH64/Platform/Hisilicon/D0 > 3/Drivers/Net/SnpPlatform/SnpPlatform/OUTPUT/SnpPlatform.depex > GenSec: ERROR 2000: Status is not successful > --- >=20 > and >=20 > --- > Generating FVMAIN FV > ###### > ######################################## > ######################################## > ################Return Value =3D 2 > GenSec: ERROR 0001: Error opening file >=20 >=20 > =20 > /work/git/tianocore/Build/D05/RELEASE_GCC5/AARCH64/Platform/Hisilicon/ > D05/Drivers/Net/SnpPlatform/SnpPlatform/OUTPUT/SnpPlatform.depex > GenFds.py... > : error 7000: Failed to generate section > GenSec: ERROR 2000: Status is not successful > --- >=20 > respectively. >=20 > Again, reverting 37de70b7 makes the build successful again. >=20 > Note that the failing drivers are binary, held in edk2-non-osi. >=20 > Regards, >=20 > Leif >=20 > On Thu, Dec 07, 2017 at 02:51:17PM +0800, Yonghong Zhu wrote: > > From: Yunhua Feng > >=20 > > Filter the FileList when multiple genfds thread options is not enabled. > >=20 > > Cc: Liming Gao > > Contributed-under: TianoCore Contribution Agreement 1.1 > > Signed-off-by: Yunhua Feng > > --- > > BaseTools/Source/Python/GenFds/EfiSection.py | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > >=20 > > diff --git a/BaseTools/Source/Python/GenFds/EfiSection.py > > b/BaseTools/Source/Python/GenFds/EfiSection.py > > index 7b3b717191..4276945a10 100644 > > --- a/BaseTools/Source/Python/GenFds/EfiSection.py > > +++ b/BaseTools/Source/Python/GenFds/EfiSection.py > > @@ -92,7 +92,8 @@ class EfiSection (EfiSectionClassObject): > > elif os.path.exists(Filename): > > FileList.append(Filename) > > elif '.depex' in FfsInf.FinalTargetSuffixMap or FfsInf.Dep= ex: > > - FileList.append(Filename) > > + if IsMakefile: > > + FileList.append(Filename) > > else: > > FileList, IsSect =3D Section.Section.GetFileList(FfsInf, s= elf.FileType, self.FileExtension, Dict) > > if IsSect : > > -- > > 2.12.2.windows.2 > >=20 > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel