You've already forked slimbootloader
mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-03-06 15:26:20 -08:00
SBL allows debug message to be redirected to output console besides the serial port. However, serial port itself could be part of the output console device as well. In this case the debug message will be printed twice. This patch added check to this condition and skip the redundant print. It fixed #349. Signed-off-by: Maurice Ma <maurice.ma@intel.com>
47 lines
1.1 KiB
INI
47 lines
1.1 KiB
INI
## @file
|
|
# Instance of BaseFspDebugLib
|
|
#
|
|
# Copyright (c) 2018, Intel Corporation. All rights reserved.<BR>
|
|
#
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
#
|
|
##
|
|
|
|
[Defines]
|
|
INF_VERSION = 0x00010005
|
|
BASE_NAME = BaseFspDebugLibSerialPort
|
|
FILE_GUID = CEA4FF9C-D7BC-4F07-96F1-03F41F2B17AE
|
|
MODULE_TYPE = BASE
|
|
VERSION_STRING = 1.0
|
|
LIBRARY_CLASS = DebugLib
|
|
|
|
#
|
|
# VALID_ARCHITECTURES = IA32
|
|
#
|
|
|
|
[Sources]
|
|
DebugLib.c
|
|
|
|
[Sources.Ia32]
|
|
|
|
[Packages]
|
|
MdePkg/MdePkg.dec
|
|
BootloaderCommonPkg/BootloaderCommonPkg.dec
|
|
|
|
[LibraryClasses]
|
|
SerialPortLib
|
|
DebugLogBufferLib
|
|
ConsoleOutLib
|
|
BaseMemoryLib
|
|
PcdLib
|
|
PrintLib
|
|
BaseLib
|
|
DebugPrintErrorLevelLib
|
|
|
|
[Pcd]
|
|
gEfiMdePkgTokenSpaceGuid.PcdDebugClearMemoryValue ## CONSUMES
|
|
gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask ## CONSUMES
|
|
gEfiMdePkgTokenSpaceGuid.PcdFixedDebugPrintErrorLevel ## CONSUMES
|
|
gPlatformCommonLibTokenSpaceGuid.PcdDebugOutputDeviceMask ## CONSUMES
|
|
gPlatformCommonLibTokenSpaceGuid.PcdConsoleOutDeviceMask ## CONSUMES
|