REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2786 In order to support enable/disable report status code through memory or serial dynamic, change the following PCDs from [PcdsFeatureFlag] to [PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx]: PcdStatusCodeUseSerial PcdStatusCodeUseMemory The original plaforms can use PcdsFixedAtBuild in .dsc files to save size. Reviewed-by: Jian J Wang <jian.j.wang@intel.com> Cc: Hao A Wu <hao.a.wu@intel.com> Signed-off-by: Ming Tan <ming.tan@intel.com>
		
			
				
	
	
		
			72 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			72 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
| ## @file
 | |
| #  Status Code Handler Driver which produces general handlers and hook them onto the DXE status code router.
 | |
| #
 | |
| #  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
 | |
| #  (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
 | |
| #
 | |
| #  SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| #
 | |
| #
 | |
| ##
 | |
| 
 | |
| [Defines]
 | |
|   INF_VERSION                    = 0x00010005
 | |
|   BASE_NAME                      = StatusCodeHandlerRuntimeDxe
 | |
|   MODULE_UNI_FILE                = StatusCodeHandlerRuntimeDxe.uni
 | |
|   FILE_GUID                      = 6C2004EF-4E0E-4BE4-B14C-340EB4AA5891
 | |
|   MODULE_TYPE                    = DXE_RUNTIME_DRIVER
 | |
|   VERSION_STRING                 = 1.0
 | |
|   ENTRY_POINT                    = StatusCodeHandlerRuntimeDxeEntry
 | |
| 
 | |
| #
 | |
| # The following information is for reference only and not required by the build tools.
 | |
| #
 | |
| #  VALID_ARCHITECTURES           = IA32 X64 EBC
 | |
| #
 | |
| 
 | |
| [Sources]
 | |
|   StatusCodeHandlerRuntimeDxe.c
 | |
|   StatusCodeHandlerRuntimeDxe.h
 | |
|   SerialStatusCodeWorker.c
 | |
|   MemoryStatusCodeWorker.c
 | |
| 
 | |
| [Packages]
 | |
|   MdePkg/MdePkg.dec
 | |
|   MdeModulePkg/MdeModulePkg.dec
 | |
| 
 | |
| [LibraryClasses]
 | |
|   SerialPortLib
 | |
|   UefiRuntimeLib
 | |
|   MemoryAllocationLib
 | |
|   UefiBootServicesTableLib
 | |
|   UefiDriverEntryPoint
 | |
|   HobLib
 | |
|   PcdLib
 | |
|   PrintLib
 | |
|   ReportStatusCodeLib
 | |
|   DebugLib
 | |
|   BaseMemoryLib
 | |
| 
 | |
| [Guids]
 | |
|   ## SOMETIMES_CONSUMES   ## HOB
 | |
|   ## SOMETIMES_PRODUCES   ## SystemTable
 | |
|   gMemoryStatusCodeRecordGuid
 | |
|   gEfiStatusCodeDataTypeStringGuid              ## SOMETIMES_CONSUMES   ## UNDEFINED
 | |
|   gEfiEventVirtualAddressChangeGuid             ## CONSUMES ## Event
 | |
|   gEfiEventExitBootServicesGuid                 ## CONSUMES ## Event
 | |
| 
 | |
| [Protocols]
 | |
|   gEfiRscHandlerProtocolGuid                    ## CONSUMES
 | |
| 
 | |
| [Pcd]
 | |
|   gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeReplayIn  ## CONSUMES
 | |
|   gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseSerial ## CONSUMES
 | |
|   gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory ## CONSUMES
 | |
|   gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeMemorySize |128| gEfiMdeModulePkgTokenSpaceGuid.PcdStatusCodeUseMemory   ## SOMETIMES_CONSUMES
 | |
| 
 | |
| [Depex]
 | |
|   gEfiRscHandlerProtocolGuid
 | |
| 
 | |
| [UserExtensions.TianoCore."ExtraFiles"]
 | |
|   StatusCodeHandlerRuntimeDxeExtra.uni
 |