To avoid the potential inconsistency between PcdAcpiS3Enable and QemuFwCfgS3Enabled(), this commit modifies LockBoxLib to detect S3 support by PcdAcpiS3Enable as modules in MdeModulePkg do. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3573 Signed-off-by: Gary Lin <gary.lin@hpe.com> Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com> Tested-by: Jim Fehlig <jfehlig@suse.com>
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
| ## @file
 | |
| #
 | |
| #  Library implementing the LockBox interface for OVMF
 | |
| #
 | |
| #  Copyright (C) 2013, Red Hat, Inc.
 | |
| #  Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.<BR>
 | |
| #
 | |
| #  SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| #
 | |
| ##
 | |
| 
 | |
| [Defines]
 | |
|   INF_VERSION                    = 0x00010005
 | |
|   BASE_NAME                      = LockBoxDxeLib
 | |
|   FILE_GUID                      = f61c9a34-2e18-44ce-af2f-21a998e64fda
 | |
|   MODULE_TYPE                    = DXE_DRIVER
 | |
|   VERSION_STRING                 = 1.0
 | |
|   LIBRARY_CLASS                  = LockBoxLib
 | |
| 
 | |
|   CONSTRUCTOR                    = LockBoxDxeLibInitialize
 | |
| 
 | |
| [Sources]
 | |
|   LockBoxDxe.c
 | |
|   LockBoxLib.c
 | |
|   LockBoxLib.h
 | |
| 
 | |
| [Packages]
 | |
|   MdePkg/MdePkg.dec
 | |
|   MdeModulePkg/MdeModulePkg.dec
 | |
|   OvmfPkg/OvmfPkg.dec
 | |
| 
 | |
| [LibraryClasses]
 | |
|   BaseMemoryLib
 | |
|   DebugLib
 | |
|   UefiBootServicesTableLib
 | |
| 
 | |
| [Protocols]
 | |
|   gEfiLockBoxProtocolGuid    ## SOMETIMES_PRODUCES
 | |
| 
 | |
| [Pcd]
 | |
|   gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageBase
 | |
|   gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageSize
 | |
|   gEfiMdeModulePkgTokenSpaceGuid.PcdAcpiS3Enable
 | |
| 
 | |
| [FeaturePcd]
 | |
|   gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire
 |