UefiPayloadPkg: Add a new DebugPrintErrorLevelLib instance

It consumes the HOB defined in
UefiPayloadPkg/Include/Guid/DebugPrintErrorLevel.h, and allow bootloader
 to config DebugPrintErrorLevel.

Cc: Guo Dong <guo.dong@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Cc: Maurice Ma <maurice.ma@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
Cc: Sean Rhodes <sean@starlabs.systems>

Signed-off-by: Yuanhao Xie <yuanhao.xie@intel.com>
This commit is contained in:
Xie, Yuanhao
2022-03-31 19:56:07 +08:00
committed by mergify[bot]
parent 7fda517c3d
commit b953265a27
4 changed files with 151 additions and 1 deletions

View File

@@ -0,0 +1,39 @@
## @file
# Debug Print Error Level library instance that retrieves
# the DebugPrintErrorLevel from bootloader.
#
# Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##
[Defines]
INF_VERSION = 0x00010005
BASE_NAME = DebugPrintErrorLevelLibHob
FILE_GUID = c3fead6d-bd4c-4131-bd5f-4bbceecc0fef
MODULE_TYPE = BASE
VERSION_STRING = 1.0
LIBRARY_CLASS = DebugPrintErrorLevelLib
#
# VALID_ARCHITECTURES = IA32 X64 EBC
#
[Sources]
DebugPrintErrorLevelLibHob.c
[Packages]
MdePkg/MdePkg.dec
MdeModulePkg/MdeModulePkg.dec
UefiPayloadPkg/UefiPayloadPkg.dec
[LibraryClasses]
PcdLib
HobLib
[Pcd]
gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel
[Guids]
gEdkiiDebugPrintErrorLevelGuid