From nobody Mon Feb 9 19:05:26 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+98843+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+98843+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1674093091; cv=none; d=zohomail.com; s=zohoarc; b=R5QKquq2Vsmw+HVBuxhfYZ98Hooia0nCwQ/L/CBD612Sf8yS719mQknVsOvTylW9M/XMXewEMYhibUr6V40vDjpMbToTtMrVz7giPXAFZ9vkuH4uiY3JwlFl7kSor7xhweglF/0QV8X7LSMs7XhVhz6eIMwLUOsHj8ZfvafI+OA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1674093091; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=uo4bdFq6OPFOTNY+c6U67VVo1spGmJxYWs5euJ2RfhY=; b=gilvzj1wvrC5O5TQ9Prg+3qtY1sscnnm6/zgEiJUY0PK0R4viZRfQo9NWhzWRIgtR9cIYEUE6PcpTwarxAAw8IG5tvi61NmxfLXFgu3O4KkVi795sprrlPX1dpMA9deaemWQ9a0Aps5WcP0Qp1y+nPu/TyaiZzttGKd1h0MFuLA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+98843+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1674093091765255.09374105147208; Wed, 18 Jan 2023 17:51:31 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id DfFAYY1788612xTAXz8MBn7b; Wed, 18 Jan 2023 17:51:31 -0800 X-Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web11.35930.1674093084732795787 for ; Wed, 18 Jan 2023 17:51:30 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10594"; a="304846069" X-IronPort-AV: E=Sophos;i="5.97,226,1669104000"; d="scan'208";a="304846069" X-Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2023 17:51:30 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10594"; a="692239006" X-IronPort-AV: E=Sophos;i="5.97,226,1669104000"; d="scan'208";a="692239006" X-Received: from mxu9-mobl1.ccr.corp.intel.com ([10.254.211.169]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2023 17:51:26 -0800 From: "Min Xu" To: devel@edk2.groups.io Cc: Min M Xu , Leif Lindholm , Ard Biesheuvel , Abner Chang , Daniel Schaefer , Gerd Hoffmann , Erdem Aktas , James Bottomley , Jiewen Yao , Tom Lendacky Subject: [edk2-devel] [PATCH V1 2/2] EmbeddedPkg: Add back FfsFindSectionData Date: Thu, 19 Jan 2023 09:51:08 +0800 Message-Id: <20230119015108.1323-3-min.m.xu@intel.com> In-Reply-To: <20230119015108.1323-1-min.m.xu@intel.com> References: <20230119015108.1323-1-min.m.xu@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,min.m.xu@intel.com X-Gm-Message-State: hDDYSgTJmmtIUuAxLCGTKURFx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1674093091; bh=w8wnIonw4fJMnTOxTBQEdGyFLVh3IhhVVZE+uWeblW4=; h=Cc:Date:From:Reply-To:Subject:To; b=w8vaCbxCkLdHER/1CoI8NlVoe3yF5XNDNGcg+2IChxTOANMqSjG/1zFR57T0ZhQCjrd LXgc+IcSAOO0xMgY4exTRTEf6gboOznHRPd4jlCGQX4V4sq4UDRTP5+NqNJU0cn4eaepV 3RrJWN1pYgM7nxY32rtmeM2jytEyaYEHqV0= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1674093092729100001 Content-Type: text/plain; charset="utf-8" From: Min M Xu In commit c673216f53 a new input parameter is added in FfsFindSectionData. That change breaks the build of ArmVirtPkg. In this patch FfsFindSectionData is added back. It calls FfsFindSectionDataWithHook with a NULL hook. Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: Abner Chang Cc: Daniel Schaefer Cc: Gerd Hoffmann Cc: Erdem Aktas Cc: James Bottomley Cc: Jiewen Yao Cc: Tom Lendacky Signed-off-by: Min Xu --- EmbeddedPkg/Include/Library/PrePiLib.h | 20 ++++++++++++++++++++ EmbeddedPkg/Library/PrePiLib/FwVol.c | 23 +++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/EmbeddedPkg/Include/Library/PrePiLib.h b/EmbeddedPkg/Include/L= ibrary/PrePiLib.h index 0c259864d612..93a9115eac2d 100644 --- a/EmbeddedPkg/Include/Library/PrePiLib.h +++ b/EmbeddedPkg/Include/Library/PrePiLib.h @@ -85,6 +85,26 @@ FfsFindSectionDataWithHook ( OUT VOID **SectionData ); =20 +/** + This service enables discovery sections of a given type within a valid F= FS file. + + @param SectionType The value of the section type to find. + @param FileHandle A pointer to the file header that contains= the set of sections to + be searched. + @param SectionData A pointer to the discovered section, if su= ccessful. + + @retval EFI_SUCCESS The section was found. + @retval EFI_NOT_FOUND The section was not found. + +**/ +EFI_STATUS +EFIAPI +FfsFindSectionData ( + IN EFI_SECTION_TYPE SectionType, + IN EFI_PEI_FILE_HANDLE FileHandle, + OUT VOID **SectionData + ); + /** Find a file in the volume by name =20 diff --git a/EmbeddedPkg/Library/PrePiLib/FwVol.c b/EmbeddedPkg/Library/Pre= PiLib/FwVol.c index 85dbf5b0adb3..7739a5c8aae7 100644 --- a/EmbeddedPkg/Library/PrePiLib/FwVol.c +++ b/EmbeddedPkg/Library/PrePiLib/FwVol.c @@ -504,6 +504,29 @@ FfsFindSectionDataWithHook ( ); } =20 +/** + This service enables discovery sections of a given type within a valid F= FS file. + + @param SectionType The value of the section type to find. + @param FileHandle A pointer to the file header that contains= the set of sections to + be searched. + @param SectionData A pointer to the discovered section, if su= ccessful. + + @retval EFI_SUCCESS The section was found. + @retval EFI_NOT_FOUND The section was not found. + +**/ +EFI_STATUS +EFIAPI +FfsFindSectionData ( + IN EFI_SECTION_TYPE SectionType, + IN EFI_PEI_FILE_HANDLE FileHandle, + OUT VOID **SectionData + ) +{ + return FfsFindSectionDataWithHook (SectionType, NULL, FileHandle, Sectio= nData); +} + /** This service enables discovery of additional firmware files. =20 --=20 2.29.2.windows.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#98843): https://edk2.groups.io/g/devel/message/98843 Mute This Topic: https://groups.io/mt/96369501/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-