From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web11.10398.1662027201020347984 for ; Thu, 01 Sep 2022 03:13:21 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=ZAVWSlJG; spf=permerror, err=too many SPF records (domain: intel.com, ip: 192.55.52.151, mailfrom: k.kavyax.sravanthi@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662027201; x=1693563201; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=BLcdFr1Av9Dh6gAhdIdUck9KtX0R6S/1anF37FpCPss=; b=ZAVWSlJGtMdAUhEpPOT4RshoO6TO0I/C8jEuACLKSdaaghmOi+Lmy3/G Uld3hktCrosNp9T7C84bujynR55aF+rUacy1L/bZP2YIovdnnTRLTOlfr OMIstIGLsT40vSbGWQ851EpsivcD0d5c7+Ma/GxRiJMOE9QfrQBJmWYXN h1cjaqQ8OxFVbdaEsR3AponYqkyCqeTWjEG0Xn19BkKvtNtGEF42buobl Mhv6Z3WnN0urxqhF1VzllfDZVaU6oASQQfHpQRDoKBFu96ITi5GDCiiC1 B3qVyW+fhKNQ9Oirs2VF7u18W2ih2Ykuncbbpsg+6P29wfr8V3xmbp+DZ Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10456"; a="276077359" X-IronPort-AV: E=Sophos;i="5.93,280,1654585200"; d="scan'208";a="276077359" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2022 03:13:20 -0700 X-IronPort-AV: E=Sophos;i="5.93,280,1654585200"; d="scan'208";a="754766735" Received: from ksravanx-mobl.gar.corp.intel.com ([10.215.132.54]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2022 03:13:17 -0700 From: "Kavya" To: devel@edk2.groups.io Cc: Kavya , Guo Dong , Ray Ni , Sean Rhodes , James Lu , Gua Guo Subject: [PATCH v6 2/2] UefiPayloadPkg: Allow DxeMain.inf to consume the new SerialPortLib Date: Thu, 1 Sep 2022 15:42:52 +0530 Message-Id: <20220901101252.1370-2-k.kavyax.sravanthi@intel.com> X-Mailer: git-send-email 2.35.1.windows.2 In-Reply-To: <20220901101252.1370-1-k.kavyax.sravanthi@intel.com> References: <20220901101252.1370-1-k.kavyax.sravanthi@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Let DxeMain.inf consume new SerialPortLib to support multiple channel debug message on early DXE if the macro MULTIPLE_DEBUG_PORT_SUPPORT is TRUE. Cc: Guo Dong Cc: Ray Ni Cc: Sean Rhodes Cc: James Lu Cc: Gua Guo Signed-off-by: Kavya --- UefiPayloadPkg/UefiPayloadPkg.dsc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayloadPkg.dsc index 1b23ff3dbc..70828ea633 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 @@ -615,6 +617,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 } -- 2.30.2.windows.1