summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKavya <k.kavyax.sravanthi@intel.com>2022-09-07 12:42:25 +0530
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-09-07 15:30:24 +0000
commit54c8d5e432319c632dab5d4466f50876872ce6b3 (patch)
tree9748f6641e7c6482f243f366040c813fb02506e1
parent11a04bb4a68bc670bd7619c910d55a78221f3d38 (diff)
downloadedk2-54c8d5e432319c632dab5d4466f50876872ce6b3.tar.gz
edk2-54c8d5e432319c632dab5d4466f50876872ce6b3.tar.bz2
edk2-54c8d5e432319c632dab5d4466f50876872ce6b3.zip
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>
-rw-r--r--UefiPayloadPkg/UefiPayloadPkg.dsc6
1 files changed, 6 insertions, 0 deletions
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 {
<LibraryClasses>
+ !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
}