Use default boot file name from UefiSpec.h and retired related PCDs

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7716 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2 2009-02-26 10:33:51 +00:00
parent 7dbb8c539d
commit c62dbf3185
2 changed files with 3 additions and 5 deletions

View File

@ -269,7 +269,7 @@ BdsLibBootViaBootOption (
// Load the default boot file \EFI\BOOT\boot{machinename}.EFI from removable Media
// machinename is ia32, ia64, x64, ...
//
FilePath = FileDevicePath (Handle, (CONST CHAR16*)PcdGetPtr(PcdDefaultBootFileName));
FilePath = FileDevicePath (Handle, EFI_REMOVABLE_MEDIA_FILE_NAME);
if (FilePath != NULL) {
Status = gBS->LoadImage (
TRUE,
@ -1050,7 +1050,7 @@ BdsLibEnumerateAllBootOption (
NeedDelete = TRUE;
Status = BdsLibGetImageHeader (
FileSystemHandles[Index],
(CHAR16*)PcdGetPtr (PcdDefaultBootFileName),
EFI_REMOVABLE_MEDIA_FILE_NAME,
&DosHeader,
Hdr
);
@ -1408,7 +1408,7 @@ BdsLibGetBootableHandle (
Hdr.Union = &HdrData;
Status = BdsLibGetImageHeader (
SimpleFileSystemHandles[Index],
(CHAR16*)PcdGetPtr(PcdDefaultBootFileName),
EFI_REMOVABLE_MEDIA_FILE_NAME,
&DosHeader,
Hdr
);

View File

@ -112,5 +112,3 @@
[FeaturePcd.common]
gEfiMdePkgTokenSpaceGuid.PcdUgaConsumeSupport
[Pcd]
gEfiMdeModulePkgTokenSpaceGuid.PcdDefaultBootFileName