Skip to content

Commit 54c8d5e

Browse files
kavyak11mergify[bot]
authored andcommitted
UefiPayloadPkg: Allow DxeMain.inf to consume the new SerialPortLib
Let DxeMain.inf consume new SerialPortLib to support multiple channel debug message on early DXE if the macro MULTIPLE_DEBUG_PORT_SUPPORT is TRUE. Reviewed-by: Guo Dong <guo.dong@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Sean Rhodes <sean@starlabs.systems> Reviewed-by: James Lu <james.lu@intel.com> Reviewed-by: Gua Guo <gua.guo@intel.com> Signed-off-by: Kavya <k.kavyax.sravanthi@intel.com>
1 parent 11a04bb commit 54c8d5e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

UefiPayloadPkg/UefiPayloadPkg.dsc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@
132132
# Note: for emulation platform such as QEMU, this may not work and should set it as FALSE
133133
DEFINE CPU_TIMER_LIB_ENABLE = TRUE
134134

135+
DEFINE MULTIPLE_DEBUG_PORT_SUPPORT = FALSE
136+
135137
[BuildOptions]
136138
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
137139
!if $(USE_CBMEM_FOR_CONSOLE) == FALSE
@@ -616,6 +618,10 @@
616618
#
617619
MdeModulePkg/Core/Dxe/DxeMain.inf {
618620
<LibraryClasses>
621+
!if $(MULTIPLE_DEBUG_PORT_SUPPORT) == TRUE
622+
DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf
623+
SerialPortLib|UefiPayloadPkg/Library/BaseSerialPortLibHob/BaseSerialPortLibHob.inf
624+
!endif
619625
NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf
620626
}
621627

0 commit comments

Comments
 (0)