From 12a738edadbf27c04f2808d6765c25ca8a33be99 Mon Sep 17 00:00:00 2001 From: klu2 Date: Thu, 26 Feb 2009 07:21:40 +0000 Subject: 1, Change name of PcdPlatformBootTimeoutDefault to PcdPlatformBootTimeout, now this PCD is *not* only hold default value of Bds timeout, but it is associated with a HII type PCD to hold persistent value for BDS timeout. Platform integrator will establish this mapping in platform DSC file. 2, Move PcdPlatformBootTimeout to IntelFrameworkModulePkg. 3, Remove BdsLibGetTimeout() interface from GenericBdsLib, because the PCD PcdPlatformBootTimeout will take care of persistent for time out value. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7710 6f19259b-4bc3-4df7-8a09-765794883524 --- UnixPkg/Library/UnixBdsLib/BdsPlatform.c | 2 +- UnixPkg/Library/UnixBdsLib/PlatformBds.inf | 24 ++---------------------- 2 files changed, 3 insertions(+), 23 deletions(-) (limited to 'UnixPkg') diff --git a/UnixPkg/Library/UnixBdsLib/BdsPlatform.c b/UnixPkg/Library/UnixBdsLib/BdsPlatform.c index f4d32f1a57..84a56faf76 100644 --- a/UnixPkg/Library/UnixBdsLib/BdsPlatform.c +++ b/UnixPkg/Library/UnixBdsLib/BdsPlatform.c @@ -332,7 +332,7 @@ Returns: // // Init the time out value // - Timeout = BdsLibGetTimeout (); + Timeout = PcdGet16 (PcdPlatformBootTimeOut); // // Load the driver option as the driver option list diff --git a/UnixPkg/Library/UnixBdsLib/PlatformBds.inf b/UnixPkg/Library/UnixBdsLib/PlatformBds.inf index 469f92af65..10a2631a5e 100644 --- a/UnixPkg/Library/UnixBdsLib/PlatformBds.inf +++ b/UnixPkg/Library/UnixBdsLib/PlatformBds.inf @@ -43,27 +43,6 @@ IntelFrameworkModulePkg/IntelFrameworkModulePkg.dec [LibraryClasses] -# EdkGenericPlatformBdsLib -# HiiLib -# DevicePathLib -# UefiRuntimeServicesTableLib -# UefiBootServicesTableLib -# BaseMemoryLib -# MemoryAllocationLib -# EdkGenericBdsLib -# HobLib -# ReportStatusCodeLib -# EdkIfrSupportLib -# PrintLib -# PerformanceLib -# DxeServicesTableLib -# EdkGraphicsLib -# BaseLib -# UefiDriverEntryPoint -# UefiLib -# DebugLib - - BaseLib MemoryAllocationLib UefiBootServicesTableLib @@ -82,6 +61,7 @@ [Pcd.common] gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn - + gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformBootTimeOut + [Depex] gEfiVariableArchProtocolGuid AND gEfiVariableWriteArchProtocolGuid -- cgit v1.2.3