V3 changes: Add detailed description for the usage of the Pcd in package DEC file. Update the comment for the introduced Pcd in module INF files. V2 changes: Instead of using a global variable, use a Pcd for transfer protocol revision. Previously, the revision of the debug agent transfer protocol is reflected by a macro. This commit introduces a Pcd to reflect the revision in order to avoid the comparison of two macros, which will generate a constant result detected by code checkers. Cc: Ruiyu Ni <ruiyu.ni@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
		
			
				
	
	
		
			96 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			96 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
| ## @file
 | |
| #  Debug Agent library instance for SEC Core and PEI modules.
 | |
| #
 | |
| #  Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved.<BR>
 | |
| #
 | |
| #  This program and the accompanying materials
 | |
| #  are licensed and made available under the terms and conditions of the BSD License
 | |
| #  which accompanies this distribution. The full text of the license may be found at
 | |
| #  http://opensource.org/licenses/bsd-license.php.
 | |
| #  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
 | |
| #  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 | |
| #
 | |
| #
 | |
| ##
 | |
| 
 | |
| [Defines]
 | |
|   INF_VERSION                    = 0x00010005
 | |
|   BASE_NAME                      = SecPeiDebugAgentLib
 | |
|   MODULE_UNI_FILE                = SecPeiDebugAgentLib.uni
 | |
|   FILE_GUID                      = 508B7D59-CD4E-4a6b-A45B-6D3B2D90111E
 | |
|   MODULE_TYPE                    = PEIM
 | |
|   VERSION_STRING                 = 0.8
 | |
|   LIBRARY_CLASS                  = DebugAgentLib|SEC PEIM
 | |
| 
 | |
| #
 | |
| # The following information is for reference only and not required by the build tools.
 | |
| #
 | |
| #  VALID_ARCHITECTURES           = IA32 X64
 | |
| #
 | |
| 
 | |
| [Sources.common]
 | |
|   SecPeiDebugAgent/SecPeiDebugAgentLib.c
 | |
|   SecPeiDebugAgent/SecPeiDebugAgentLib.h
 | |
|   DebugAgentCommon/DebugAgent.c
 | |
|   DebugAgentCommon/DebugAgent.h
 | |
|   DebugAgentCommon/DebugTimer.c
 | |
|   DebugAgentCommon/DebugTimer.h
 | |
|   DebugAgentCommon/DebugMp.c
 | |
|   DebugAgentCommon/DebugMp.h
 | |
| 
 | |
| [Sources.Ia32]
 | |
|   DebugAgentCommon/Ia32/AsmFuncs.S
 | |
|   DebugAgentCommon/Ia32/AsmFuncs.asm
 | |
|   DebugAgentCommon/Ia32/AsmFuncs.nasm
 | |
|   DebugAgentCommon/Ia32/ArchDebugSupport.h
 | |
|   DebugAgentCommon/Ia32/ArchDebugSupport.c
 | |
|   DebugAgentCommon/Ia32/DebugException.h
 | |
| 
 | |
| [Sources.X64]
 | |
|   DebugAgentCommon/X64/AsmFuncs.S
 | |
|   DebugAgentCommon/X64/AsmFuncs.asm
 | |
|   DebugAgentCommon/X64/AsmFuncs.nasm
 | |
|   DebugAgentCommon/X64/ArchDebugSupport.h
 | |
|   DebugAgentCommon/X64/ArchDebugSupport.c
 | |
|   DebugAgentCommon/X64/DebugException.h
 | |
| 
 | |
| [Packages]
 | |
|   MdePkg/MdePkg.dec
 | |
|   MdeModulePkg/MdeModulePkg.dec
 | |
|   UefiCpuPkg/UefiCpuPkg.dec
 | |
|   SourceLevelDebugPkg/SourceLevelDebugPkg.dec
 | |
| 
 | |
| [LibraryClasses]
 | |
|   BaseLib
 | |
|   BaseMemoryLib
 | |
|   ResetSystemLib
 | |
|   IoLib
 | |
|   HobLib
 | |
|   PcdLib
 | |
|   DebugCommunicationLib
 | |
|   SynchronizationLib
 | |
|   LocalApicLib
 | |
|   DebugLib
 | |
|   TimerLib
 | |
|   PrintLib
 | |
|   PeiServicesLib
 | |
|   MemoryAllocationLib
 | |
|   PeCoffGetEntryPointLib
 | |
|   PeCoffExtraActionLib
 | |
| 
 | |
| [Ppis]
 | |
|   gEfiPeiMemoryDiscoveredPpiGuid                ## NOTIFY
 | |
|   gEfiVectorHandoffInfoPpiGuid                  ## PRODUCES
 | |
| 
 | |
| [Guids]
 | |
|   ## PRODUCES ## HOB
 | |
|   ## CONSUMES ## HOB
 | |
|   gEfiDebugAgentGuid
 | |
| 
 | |
| [Pcd]
 | |
|   gEfiMdePkgTokenSpaceGuid.PcdFSBClock                                  ## SOMETIMES_CONSUMES
 | |
|   gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdExceptionsIgnoredByDebugger  ## SOMETIMES_CONSUMES
 | |
|   gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugPortHandleBufferSize    ## SOMETIMES_CONSUMES
 | |
|   gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdTransferProtocolRevision     ## CONSUMES
 | |
| 
 |