]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Vlv2TbltDevicePkg/Override/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c
Vlv2TbltDevicePkg: Find UEFI Shell using gUefiShellFileGuid
[mirror_edk2.git] / Vlv2TbltDevicePkg / Override / IntelFrameworkModulePkg / Library / GenericBdsLib / BdsBoot.c
index b875041880854a0c64d53d69f2aea4eeb52e6b8e..3034853695645fe9505018f32c737d4d10d4b864 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   BDS Lib functions which relate with create or process the boot option.\r
 \r
-Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2004 - 2019, Intel Corporation. All rights reserved.<BR>\r
 SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
@@ -2342,7 +2342,7 @@ BdsLibBootViaBootOption (
     //\r
     // If the boot option point to Internal FV shell, make sure it is valid\r
     //\r
-    Status = BdsLibUpdateFvFileDevicePath (&DevicePath, PcdGetPtr(PcdShellFile));\r
+    Status = BdsLibUpdateFvFileDevicePath (&DevicePath, &gUefiShellFileGuid);\r
     if (!EFI_ERROR(Status)) {\r
       if (Option->DevicePath != NULL) {\r
         FreePool(Option->DevicePath);\r
@@ -3544,7 +3544,7 @@ BdsLibEnumerateAllBootOption (
 \r
     Status = Fv->ReadFile (\r
                   Fv,\r
-                  PcdGetPtr(PcdShellFile),\r
+                  &gUefiShellFileGuid,\r
                   NULL,\r
                   &Size,\r
                   &Type,\r
@@ -3629,7 +3629,7 @@ BdsLibBuildOptionFromShell (
   //\r
   // Build the shell device path\r
   //\r
-  EfiInitializeFwVolDevicepathNode (&ShellNode, PcdGetPtr(PcdShellFile));\r
+  EfiInitializeFwVolDevicepathNode (&ShellNode, &gUefiShellFileGuid);\r
 \r
   DevicePath = AppendDevicePathNode (DevicePath, (EFI_DEVICE_PATH_PROTOCOL *) &ShellNode);\r
 \r