From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web10.8167.1661837401140373221 for ; Mon, 29 Aug 2022 22:30:02 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=nIG7d0y/; spf=permerror, err=too many SPF records (domain: intel.com, ip: 134.134.136.126, 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=1661837401; x=1693373401; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4V/tcxMzraORDkVAdEyGWJN/4d437VTItPx8jY3lhZg=; b=nIG7d0y/g93M7GNa1roXW1FOlqZndjJtqwIuA/IWZ6RPsKgt0AAxTCp8 C9yBmWLLzRFDcwK68GhzTQKNcqaAzHqF7oYcw99viYVzF9xnDde9PHNzO 8Y1tCvC7waSLkONrx0s1Sph9zAQvB5MKD2eIADLyhTGJ0esHmT2vi8xyt 5X6e4ZSTBwd2doUPg5F7ksPYo31ZtBzYHTwtJ43qUMIA0WUBbghUwFaAg 5AvcHuWyIYvSuHNZT+/q8FZDoqyAI1WmYFbiTzwFHElDu4s3HJGtIFKSy IlrT9MAooiYRrmecMKsJRHovVpX3ap4rXAu6dd/8Y7ZBJ+psiBah2mqLX A==; X-IronPort-AV: E=McAfee;i="6500,9779,10454"; a="278100474" X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="278100474" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Aug 2022 22:30:00 -0700 X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="562507113" Received: from ksravanx-mobl.gar.corp.intel.com ([10.215.132.44]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Aug 2022 22:29:58 -0700 From: "Kavya" To: devel@edk2.groups.io Cc: Kavya , Guo Dong , Ray Ni , Sean Rhodes , Gua Guo Subject: [PATCH v5 2/2] UefiPayloadPkg: Allow DxeMain.inf to consume the new SerialPortLib Date: Tue, 30 Aug 2022 10:59:08 +0530 Message-Id: <20220830052908.1903-2-k.kavyax.sravanthi@intel.com> X-Mailer: git-send-email 2.35.1.windows.2 In-Reply-To: <20220830052908.1903-1-k.kavyax.sravanthi@intel.com> References: <20220830052908.1903-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 DEBUG_REAL_INSTANCE_SUPPORT is true. Cc: Guo Dong Cc: Ray Ni Cc: Sean Rhodes 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..24aa66006f 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 DEBUG_REAL_INSTANCE_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 $(DEBUG_REAL_INSTANCE_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