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>
# Note: for emulation platform such as QEMU, this may not work and should set it as FALSE\r
DEFINE CPU_TIMER_LIB_ENABLE = TRUE\r
\r
+ DEFINE MULTIPLE_DEBUG_PORT_SUPPORT = FALSE\r
+\r
[BuildOptions]\r
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES\r
!if $(USE_CBMEM_FOR_CONSOLE) == FALSE\r
#\r
MdeModulePkg/Core/Dxe/DxeMain.inf {\r
<LibraryClasses>\r
+ !if $(MULTIPLE_DEBUG_PORT_SUPPORT) == TRUE\r
+ DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf\r
+ SerialPortLib|UefiPayloadPkg/Library/BaseSerialPortLibHob/BaseSerialPortLibHob.inf\r
+ !endif\r
NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf\r
}\r
\r