summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
diff options
context:
space:
mode:
authorHao A Wu <hao.a.wu@intel.com>2019-06-14 09:14:29 +0800
committerHao A Wu <hao.a.wu@intel.com>2019-06-17 09:27:32 +0800
commit84f736a73e7a435e2f087f2c5953553ee4f8387a (patch)
tree4c7d7936a537be0ee709c1626b5ac25b1cb1a6b2 /OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
parentae71eae15171b8ad1e0681f473ee7067ba92b972 (diff)
downloadedk2-84f736a73e7a435e2f087f2c5953553ee4f8387a.tar.gz
edk2-84f736a73e7a435e2f087f2c5953553ee4f8387a.tar.bz2
edk2-84f736a73e7a435e2f087f2c5953553ee4f8387a.zip
OvmfPkg: Refer to Shell app via its declared GUID
REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1843 Currently, the file GUID reference of the UEFI Shell app is indirected via the PCD gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile, which is set to a fixed value for OvmfPkg. So instead, use the symbolic GUID in ShellPkg for this purpose, and drop the reference to this PCD, and to the IntelFrameworkModulePkg package entirely. Cc: Ray Ni <ray.ni@intel.com> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Hao A Wu <hao.a.wu@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c')
-rw-r--r--OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
index 5b15d3bb12..797731a41c 100644
--- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
+++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
@@ -1,7 +1,7 @@
/** @file
Platform BDS customizations.
- Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2004 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
@@ -1532,7 +1532,7 @@ PlatformBootManagerAfterConsole (
// Register UEFI Shell
//
PlatformRegisterFvBootOption (
- PcdGetPtr (PcdShellFile), L"EFI Internal Shell", LOAD_OPTION_ACTIVE
+ &gUefiShellFileGuid, L"EFI Internal Shell", LOAD_OPTION_ACTIVE
);
RemoveStaleFvFileOptions ();