From nobody Sat May 18 14:54:12 2024 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+74859+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+74859+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1620634565; cv=none; d=zohomail.com; s=zohoarc; b=eRkQz+qAf36+alJD600G9DAT43W4AUKXpPoQz2aHKY4Y18w7bKsZvKy6AZbGeeyToNE4Pdx3/VbqOZf6tXzEjveFvy+wf7i2YbQMyrfY2zA9YLJryrb2wb/HIIPWn2PQlrDc3fMA5/25NpP+ibqUsc3TCvlzDmHMsnA1mmUkSjQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620634565; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=qwI91N9aIngoU5a4h8rfcQRhtxm2Ziov89xMUTi/MU0=; b=a1d3y59FqCspnd4uJt1Bre+Ue1k5tkojquK519E6Zs8elAUId0u9dJmxS7dx93i0hXB9dT3ddeRGg99y7PXZjducgA0pzSXsSkpGSKuaGBJVVFeL+woQKpBItziTeQUJ4nkaPwtb0Bk0k8bvgX4oPRFzYpJKC4jq7qLk49Ly5bQ= 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+74859+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1620634565957673.2562037468617; Mon, 10 May 2021 01:16:05 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id AXvGYY1788612xopMxvjOwsk; Mon, 10 May 2021 01:16:05 -0700 X-Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web08.28864.1620634564552872848 for ; Mon, 10 May 2021 01:16:04 -0700 IronPort-SDR: wWTfG0QS0wLAw8VxAxmptqXHyJ8jMzbGh4jlHGYfEpyB8BIZwyZaJZG6XrHi5Ac5emFOZ5jhtA fwnoJdk4siPw== X-IronPort-AV: E=McAfee;i="6200,9189,9979"; a="196045049" X-IronPort-AV: E=Sophos;i="5.82,287,1613462400"; d="scan'208";a="196045049" X-Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2021 01:16:03 -0700 IronPort-SDR: oZlxIWHtSurpkqDbFdO5XudqAg8n3pT4FusSUPCpwprVYVNYOBz19bvn4I9RZ4jZH1s/QXP/z/ t8eNx8BsQqVQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,287,1613462400"; d="scan'208";a="433709132" X-Received: from fieedk002.ccr.corp.intel.com ([10.239.158.144]) by fmsmga008.fm.intel.com with ESMTP; 10 May 2021 01:16:01 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Jian J Wang , Hao A Wu , Zhichao Gao , Ray Ni Subject: [edk2-devel] [PATCH] MdeModulePkg: Retrive boot manager menu from any fv Date: Mon, 10 May 2021 16:15:32 +0800 Message-Id: <20210510081532.1073-1-zhiguang.liu@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,zhiguang.liu@intel.com X-Gm-Message-State: UBiSTGHeNTS1wwIaQpXswLGRx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1620634565; bh=k/oVwBpAo3Gu9Zw10XZ+l/6xaHMQ1h0MqaHJoikBE7U=; h=Cc:Date:From:Reply-To:Subject:To; b=X3oiw5CjmdDuNOTqgsRcyt2B2JImNvx0zAcQKQ+7dM9pdbYDHBP7OxYns2JS6z4Lupo w2rK1qAPdyrc/+w7ne3aylughzVDB4Ho/kGngvYWla7tsoiLb9YDWItZEff7kQRApvh3U 5aIAYXUZEDcZv8ttLXT/JU1VOBflOv4JI9E= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3384 Currently, UefiBootManagerLib has the below assumption: Assume the BootManagerMenuFile is in the same FV as the module links to t= his library. It has some limitation now, so remove the assumption. Cc: Jian J Wang Cc: Hao A Wu Cc: Zhichao Gao Cc: Ray Ni Signed-off-by: Zhiguang Liu Reviewed-by: Hao A Wu --- MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c b/MdeModulePk= g/Library/UefiBootManagerLib/BmBoot.c index 6cc34d29c0..b8df4d590f 100644 --- a/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c +++ b/MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c @@ -2,7 +2,7 @@ Library functions which relates with booting. =20 Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved. -Copyright (c) 2011 - 2020, Intel Corporation. All rights reserved.
+Copyright (c) 2011 - 2021, Intel Corporation. All rights reserved.
(C) Copyright 2015-2021 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -2385,7 +2385,6 @@ EfiBootManagerRefreshAllBootOption ( This function is called to get or create the boot option for the Boot Ma= nager Menu. =20 The Boot Manager Menu is shown after successfully booting a boot option. - Assume the BootManagerMenuFile is in the same FV as the module links to = this library. =20 @param BootOption Return the boot option of the Boot Manager Menu =20 @@ -2437,7 +2436,7 @@ BmRegisterBootManagerMenu ( =20 if (DevicePath =3D=3D NULL) { Data =3D NULL; - Status =3D GetSectionFromFv ( + Status =3D GetSectionFromAnyFv ( PcdGetPtr (PcdBootManagerMenuFile), EFI_SECTION_PE32, 0, @@ -2455,7 +2454,7 @@ BmRegisterBootManagerMenu ( // // Get BootManagerMenu application's description from EFI User Interfa= ce Section. // - Status =3D GetSectionFromFv ( + Status =3D GetSectionFromAnyFv ( PcdGetPtr (PcdBootManagerMenuFile), EFI_SECTION_USER_INTERFACE, 0, --=20 2.30.0.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 (#74859): https://edk2.groups.io/g/devel/message/74859 Mute This Topic: https://groups.io/mt/82714887/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-