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.20; helo=mga02.intel.com; envelope-from=yonghong.zhu@intel.com; receiver=edk2-devel@lists.01.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (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 0B29221B02855 for ; Thu, 7 Dec 2017 06:37:41 -0800 (PST) Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Dec 2017 06:42:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,373,1508828400"; d="scan'208";a="914632" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga006.jf.intel.com with ESMTP; 07 Dec 2017 06:42:14 -0800 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 7 Dec 2017 06:42:14 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 7 Dec 2017 06:42:14 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.152]) with mapi id 14.03.0319.002; Thu, 7 Dec 2017 22:42:12 +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//5aGAIAAh66w Date: Thu, 7 Dec 2017 14:42:12 +0000 Message-ID: References: <1512629477-12264-1-git-send-email-yonghong.zhu@intel.com> <20171207112931.2rp4fy4s4uegba27@bivouac.eciton.net> <20171207143552.bspv72fj7auhub74@bivouac.eciton.net> In-Reply-To: <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 14:37:42 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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]=20 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