andrewfish d4a78455c6 Add a GUIDed HOB to init Debug Print error level earlier in DXE. Add NULL PEIM library to init HOB.
Debug Print Error level can be controled by an EFI variable. Update the DXE version of the library to use a HOB if the variable services are not yet availilbe. This allows the variable to be used early in the DXE phase. 

approved-by: andrewfish
reviewed-by: lgao4



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12516 6f19259b-4bc3-4df7-8a09-765794883524
2011-10-08 21:00:13 +00:00

46 lines
1.3 KiB
INI

## @file
# NULL Library class that reads Debug Mask variable and if it exists makes a
# HOB that contains the debug mask.
#
# Copyright (c) 2011, Apple, Inc. All rights reserved.<BR>
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
#
##
[Defines]
INF_VERSION = 0x00010005
BASE_NAME = PeiDebugPrintHobLib
FILE_GUID = EB0BDD73-DABB-E74B-BF51-62DC1DA521E1
MODULE_TYPE = PEIM
VERSION_STRING = 1.0
LIBRARY_CLASS = NULL|PEIM
CONSTRUCTOR = PeiDebugPrintHobLibConstructor
[Sources]
PeiDebugPrintHobLib.c
[Packages]
MdePkg/MdePkg.dec
MdeModulePkg/MdeModulePkg.dec
[LibraryClasses]
PeiServicesLib
DebugLib
[Ppis]
gEfiPeiReadOnlyVariable2PpiGuid
[Guids]
gEfiGenericVariableGuid
[Depex]
gEfiPeiReadOnlyVariable2PpiGuid