mirror of https://github.com/acidanthera/audk.git
Vlv2TbltDevicePkg: Fix SOURCE_DEBUG_ENABLE feature
https://bugzilla.tianocore.org/show_bug.cgi?id=276 Fix library mapping and PCD settings required to use the SOURCE_DEBUG_ENABLE feature in PEI, DXE, and SMM. Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: David Wei <david.wei@intel.com> Cc: Mang Guo <mang.guo@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney <michael.d.kinney@intel.com> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
parent
3d2b3be0b7
commit
75c9d31c71
|
@ -338,8 +338,9 @@
|
||||||
|
|
||||||
LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
|
LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
|
||||||
HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
|
HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
|
||||||
PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
|
!if $(SOURCE_DEBUG_ENABLE) == TRUE
|
||||||
DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
|
DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
|
||||||
|
!endif
|
||||||
|
|
||||||
!if $(MINNOW2_FSP_BUILD) == TRUE
|
!if $(MINNOW2_FSP_BUILD) == TRUE
|
||||||
PlatformFspLib|Vlv2TbltDevicePkg/Library/PlatformFspLib/PlatformFspLib.inf
|
PlatformFspLib|Vlv2TbltDevicePkg/Library/PlatformFspLib/PlatformFspLib.inf
|
||||||
|
@ -439,11 +440,6 @@
|
||||||
DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
|
DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
!if $(SOURCE_DEBUG_ENABLE) == TRUE
|
|
||||||
DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
|
|
||||||
TimerLib|$(PLATFORM_PACKAGE)/Library/IntelPchAcpiTimerLib/IntelPchAcpiTimerLib.inf
|
|
||||||
!endif
|
|
||||||
|
|
||||||
[LibraryClasses.IA32.DXE_RUNTIME_DRIVER]
|
[LibraryClasses.IA32.DXE_RUNTIME_DRIVER]
|
||||||
ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
|
ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
|
||||||
!if $(SECURE_BOOT_ENABLE) == TRUE
|
!if $(SECURE_BOOT_ENABLE) == TRUE
|
||||||
|
@ -616,6 +612,10 @@
|
||||||
|
|
||||||
gEfiCpuTokenSpaceGuid.PcdCpuSmmBlockStartupThisAp|TRUE
|
gEfiCpuTokenSpaceGuid.PcdCpuSmmBlockStartupThisAp|TRUE
|
||||||
|
|
||||||
|
!if $(SOURCE_DEBUG_ENABLE)
|
||||||
|
gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmDebug|TRUE
|
||||||
|
!endif
|
||||||
|
|
||||||
[PcdsFixedAtBuild.common]
|
[PcdsFixedAtBuild.common]
|
||||||
!if $(MINNOW2_FSP_BUILD) == TRUE
|
!if $(MINNOW2_FSP_BUILD) == TRUE
|
||||||
# $(FLASH_REGION_VLVMICROCODE_BASE)
|
# $(FLASH_REGION_VLVMICROCODE_BASE)
|
||||||
|
@ -694,6 +694,7 @@
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
|
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
|
gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl|FALSE
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl|FALSE
|
||||||
|
gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|2
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
[PcdsFixedAtBuild.IA32.PEIM, PcdsFixedAtBuild.IA32.PEI_CORE, PcdsFixedAtBuild.IA32.SEC]
|
[PcdsFixedAtBuild.IA32.PEIM, PcdsFixedAtBuild.IA32.PEI_CORE, PcdsFixedAtBuild.IA32.SEC]
|
||||||
|
|
|
@ -338,8 +338,9 @@
|
||||||
|
|
||||||
LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
|
LockBoxLib|MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxPeiLib.inf
|
||||||
HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
|
HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
|
||||||
PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
|
!if $(SOURCE_DEBUG_ENABLE) == TRUE
|
||||||
DebugAgentLib|MdeModulePkg/Library/DebugAgentLibNull/DebugAgentLibNull.inf
|
DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
|
||||||
|
!endif
|
||||||
|
|
||||||
!if $(MINNOW2_FSP_BUILD) == TRUE
|
!if $(MINNOW2_FSP_BUILD) == TRUE
|
||||||
PlatformFspLib|Vlv2TbltDevicePkg/Library/PlatformFspLib/PlatformFspLib.inf
|
PlatformFspLib|Vlv2TbltDevicePkg/Library/PlatformFspLib/PlatformFspLib.inf
|
||||||
|
@ -439,11 +440,6 @@
|
||||||
DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
|
DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
!if $(SOURCE_DEBUG_ENABLE) == TRUE
|
|
||||||
DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/DxeDebugAgentLib.inf
|
|
||||||
TimerLib|$(PLATFORM_PACKAGE)/Library/IntelPchAcpiTimerLib/IntelPchAcpiTimerLib.inf
|
|
||||||
!endif
|
|
||||||
|
|
||||||
[LibraryClasses.X64.DXE_RUNTIME_DRIVER]
|
[LibraryClasses.X64.DXE_RUNTIME_DRIVER]
|
||||||
ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
|
ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
|
||||||
!if $(SECURE_BOOT_ENABLE) == TRUE
|
!if $(SECURE_BOOT_ENABLE) == TRUE
|
||||||
|
@ -616,6 +612,10 @@
|
||||||
|
|
||||||
gEfiCpuTokenSpaceGuid.PcdCpuSmmBlockStartupThisAp|TRUE
|
gEfiCpuTokenSpaceGuid.PcdCpuSmmBlockStartupThisAp|TRUE
|
||||||
|
|
||||||
|
!if $(SOURCE_DEBUG_ENABLE)
|
||||||
|
gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmDebug|TRUE
|
||||||
|
!endif
|
||||||
|
|
||||||
[PcdsFixedAtBuild.common]
|
[PcdsFixedAtBuild.common]
|
||||||
!if $(MINNOW2_FSP_BUILD) == TRUE
|
!if $(MINNOW2_FSP_BUILD) == TRUE
|
||||||
# $(FLASH_REGION_VLVMICROCODE_BASE)
|
# $(FLASH_REGION_VLVMICROCODE_BASE)
|
||||||
|
@ -694,6 +694,7 @@
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
|
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0x17
|
||||||
gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
|
gEfiMdePkgTokenSpaceGuid.PcdReportStatusCodePropertyMask|0x07
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl|FALSE
|
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialUseHardwareFlowControl|FALSE
|
||||||
|
gEfiSourceLevelDebugPkgTokenSpaceGuid.PcdDebugLoadImageMethod|2
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
[PcdsFixedAtBuild.IA32.PEIM, PcdsFixedAtBuild.IA32.PEI_CORE, PcdsFixedAtBuild.IA32.SEC]
|
[PcdsFixedAtBuild.IA32.PEIM, PcdsFixedAtBuild.IA32.PEI_CORE, PcdsFixedAtBuild.IA32.SEC]
|
||||||
|
@ -1152,9 +1153,12 @@ $(PLATFORM_BINARY_PACKAGE)/$(DXE_ARCHITECTURE)$(TARGET)/IA32/fTPMInitPeim.inf
|
||||||
!if $(CAPSULE_ENABLE) == TRUE
|
!if $(CAPSULE_ENABLE) == TRUE
|
||||||
MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf {
|
MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf {
|
||||||
<LibraryClasses>
|
<LibraryClasses>
|
||||||
PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
|
PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf
|
||||||
MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
|
MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
|
||||||
HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
|
HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
|
||||||
|
!if $(SOURCE_DEBUG_ENABLE) == TRUE
|
||||||
|
DebugAgentLib|SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgentLib.inf
|
||||||
|
!endif
|
||||||
}
|
}
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue