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=192.55.52.43; helo=mga05.intel.com; envelope-from=yonghong.zhu@intel.com; receiver=edk2-devel@lists.01.org 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 DEBD821B02835 for ; Thu, 7 Dec 2017 04:51:19 -0800 (PST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Dec 2017 04:55:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,373,1508828400"; d="scan'208";a="16259257" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga002.jf.intel.com with ESMTP; 07 Dec 2017 04:55:51 -0800 Received: from fmsmsx158.amr.corp.intel.com (10.18.116.75) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 7 Dec 2017 04:55:51 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by fmsmsx158.amr.corp.intel.com (10.18.116.75) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 7 Dec 2017 04:55:51 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.159]) with mapi id 14.03.0319.002; Thu, 7 Dec 2017 20:55:49 +0800 From: "Zhu, Yonghong" To: Leif Lindholm CC: "edk2-devel@lists.01.org" , "Feng, YunhuaX" , "Gao, Liming" , "Zhu, Yonghong" Thread-Topic: [edk2] [PATCH] BaseTools: Fix GenSec can't found the depex file Thread-Index: AQHTbyfQ8/BQcCAnkkOsSaTfnmmBeKM3OOCAgACdiwA= Date: Thu, 7 Dec 2017 12:55:48 +0000 Message-ID: References: <1512629477-12264-1-git-send-email-yonghong.zhu@intel.com> <20171207112931.2rp4fy4s4uegba27@bivouac.eciton.net> In-Reply-To: <20171207112931.2rp4fy4s4uegba27@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 12:51:20 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Leif, May I know how this binary driver is described in DSC file and FDF file, an= d the [Rule.Common.DXE_DRIVER.BINARY] section ? I tried to add this driver into OvmfPkg, but failed to reproduce this failu= re. Thanks. Best Regards, Zhu Yonghong -----Original Message----- From: Leif Lindholm [mailto:leif.lindholm@linaro.org]=20 Sent: Thursday, December 07, 2017 7:30 PM To: Zhu, Yonghong Cc: edk2-devel@lists.01.org; Feng, YunhuaX ; Gao, L= iming Subject: Re: [edk2] [PATCH] BaseTools: Fix GenSec can't found the depex fil= e Hi Yonghong, This patch resolves the issue for the hikey platform, but not for (edk2-pla= tforms/Platform/Hisilicon/)D03/D05. They fail with --- Generating FVMAIN FV ###### ######################################## #############################Return Value =3D 2 GenSec: ERROR 0001: Error opening file /work/git/tianocore/Build/D03/DEBUG_GCC5/AARCH64/Platform/Hisilicon/D03/D= rivers/Net/SnpPlatform/SnpPlatform/OUTPUT/SnpPlatform.depex GenSec: ERROR 2000: Status is not successful --- and --- Generating FVMAIN FV ###### ######################################## ######################################## ################Return Value =3D 2 GenSec: ERROR 0001: Error opening file /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 --- respectively. Again, reverting 37de70b7 makes the build successful again. Note that the failing drivers are binary, held in edk2-non-osi. Regards, Leif 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=20 > 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.Depex= : > - FileList.append(Filename) > + if IsMakefile: > + FileList.append(Filename) > else: > FileList, IsSect =3D Section.Section.GetFileList(FfsInf, sel= f.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