From 54c8d5e432319c632dab5d4466f50876872ce6b3 Mon Sep 17 00:00:00 2001 From: Kavya Date: Wed, 7 Sep 2022 12:42:25 +0530 Subject: 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 Cc: Ray Ni Cc: Sean Rhodes Reviewed-by: James Lu Reviewed-by: Gua Guo Signed-off-by: Kavya --- UefiPayloadPkg/UefiPayloadPkg.dsc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'UefiPayloadPkg') diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayloadPkg.dsc index d40db90631..8f23802199 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.dsc +++ b/UefiPayloadPkg/UefiPayloadPkg.dsc @@ -132,6 +132,8 @@ # Note: for emulation platform such as QEMU, this may not work and should set it as FALSE DEFINE CPU_TIMER_LIB_ENABLE = TRUE + DEFINE MULTIPLE_DEBUG_PORT_SUPPORT = FALSE + [BuildOptions] *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES !if $(USE_CBMEM_FOR_CONSOLE) == FALSE @@ -616,6 +618,10 @@ # MdeModulePkg/Core/Dxe/DxeMain.inf { + !if $(MULTIPLE_DEBUG_PORT_SUPPORT) == TRUE + DebugLib|MdePkg/Library/BaseDebugLibSerialPort/BaseDebugLibSerialPort.inf + SerialPortLib|UefiPayloadPkg/Library/BaseSerialPortLibHob/BaseSerialPortLibHob.inf + !endif NULL|MdeModulePkg/Library/LzmaCustomDecompressLib/LzmaCustomDecompressLib.inf } -- cgit v1.2.3