]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiPayloadPkg: Allow DxeMain.inf to consume the new SerialPortLib
authorKavya <k.kavyax.sravanthi@intel.com>
Wed, 7 Sep 2022 07:12:25 +0000 (12:42 +0530)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 7 Sep 2022 15:30:24 +0000 (15:30 +0000)
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>
UefiPayloadPkg/UefiPayloadPkg.dsc

index d40db90631c3c4894684661e6c7fe8a552ba6a06..8f2380219951ffaa61101268365883dd4902d4c5 100644 (file)
   # 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