From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::244; helo=mail-wr0-x244.google.com; envelope-from=leif.lindholm@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id A9B5B21B0284D for ; Thu, 7 Dec 2017 06:31:23 -0800 (PST) Received: by mail-wr0-x244.google.com with SMTP id o2so7719595wro.5 for ; Thu, 07 Dec 2017 06:35:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=UzxeixU0UjdyhZSBBDu4KYA1veFmIYxzHzFS8gskgio=; b=RPdCJF8ooiB0KLT9J68FpMytbQvmfHFQKpe5H69Rabnh5xurJFdw3PEtzvmS7lzX/l QKrlN59uvKWjWHTbonhSFggTZPgfB+vC5FEs356e8YdIMRaj10oPG0YFGYa44NIRS0lb nOzDo2ky6mlDhGOcaYL4SVxM/oZgZwkXzi+qk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=UzxeixU0UjdyhZSBBDu4KYA1veFmIYxzHzFS8gskgio=; b=p8dq32/UON2mexONyEp23K8B4BLCHfbKz5mQEwLAU2gA0NdBSFNyQrIbQRSU9vKxnL 5/nBhLL8o3pFigLGJ530rE7u61viil0aqGj3YtRFier5XC+dyuhlKHKaSqL9RY2rhQvj LDo8IC9EkLYTxP80g0TklJiR/B0ADGkG5s1gxpJhHq5yp7jWZfb0pKQs5wVsuCgIjU6K WNEC1B00t9BP8L0Gc13kZ9vLB/32OPaBl5hAJS42OnOrqhvKZkOHx7S2/yBwKnlWSUKQ l8YpDvgDDFBC3FDc8+cODvq2dp05gYlLPeKGdXRnyBqF9xj+tWmk1q2LF8KN/owgyHQM yNuQ== X-Gm-Message-State: AKGB3mJY+VWOCM2A52yRJvk9dhcLRA1CSFC8sbsHOC2KtD6C/0CaZrmB wkqS2tdTX8zPUB/mu/6+KV8f3w== X-Google-Smtp-Source: AGs4zMbsIgs+f9bQnr/UMDtGLsG/WUky/EvObXR2UuNnAcuknqhK1xYMeVy/JhTU9M7OYHonyCxH4w== X-Received: by 10.223.191.13 with SMTP id p13mr17921687wrh.69.1512657355243; Thu, 07 Dec 2017 06:35:55 -0800 (PST) Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by smtp.gmail.com with ESMTPSA id h12sm5073406wre.52.2017.12.07.06.35.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 07 Dec 2017 06:35:53 -0800 (PST) Date: Thu, 7 Dec 2017 14:35:52 +0000 From: Leif Lindholm To: "Zhu, Yonghong" Cc: "edk2-devel@lists.01.org" , "Feng, YunhuaX" , "Gao, Liming" , jason.zhang@linaro.org Message-ID: <20171207143552.bspv72fj7auhub74@bivouac.eciton.net> References: <1512629477-12264-1-git-send-email-yonghong.zhu@intel.com> <20171207112931.2rp4fy4s4uegba27@bivouac.eciton.net> MIME-Version: 1.0 In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) 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:31:24 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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, > > May I know how this binary driver is described in DSC file and FDF > file, and the [Rule.Common.DXE_DRIVER.BINARY] section ? > I tried to add this driver into OvmfPkg, but failed to reproduce > this failure. Thanks. > > Best Regards, > Zhu Yonghong > > > -----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 ; Gao, Liming > Subject: Re: [edk2] [PATCH] BaseTools: Fix GenSec can't found the depex file > > Hi Yonghong, > > This patch resolves the issue for the hikey platform, but not for (edk2-platforms/Platform/Hisilicon/)D03/D05. They fail with > > --- > Generating FVMAIN FV > ###### > ######################################## > #############################Return Value = 2 > GenSec: ERROR 0001: Error opening file > > /work/git/tianocore/Build/D03/DEBUG_GCC5/AARCH64/Platform/Hisilicon/D03/Drivers/Net/SnpPlatform/SnpPlatform/OUTPUT/SnpPlatform.depex > GenSec: ERROR 2000: Status is not successful > --- > > and > > --- > Generating FVMAIN FV > ###### > ######################################## > ######################################## > ################Return Value = 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 > > > > Filter the FileList when multiple genfds thread options is not enabled. > > > > 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(-) > > > > 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.Depex: > > - FileList.append(Filename) > > + if IsMakefile: > > + FileList.append(Filename) > > else: > > FileList, IsSect = Section.Section.GetFileList(FfsInf, self.FileType, self.FileExtension, Dict) > > if IsSect : > > -- > > 2.12.2.windows.2 > > > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel