1 | ## @file
|
---|
2 | # Register a status code handler for printing the Boot Manager's LoadImage()
|
---|
3 | # and StartImage() preparations, and return codes, to the UEFI console.
|
---|
4 | #
|
---|
5 | # This feature enables users that are not accustomed to analyzing the firmware
|
---|
6 | # log to glean some information about UEFI boot option processing (loading and
|
---|
7 | # starting).
|
---|
8 | #
|
---|
9 | # This library instance filters out (ignores) status codes that are not
|
---|
10 | # reported by the containing firmware module. The intent is to link this
|
---|
11 | # library instance into BdsDxe via PlatformBootManagerLib (which BdsDxe depends
|
---|
12 | # upon), then catch only those status codes that BdsDxe reports (which happens
|
---|
13 | # via UefiBootManagerLib). Status codes reported by other modules (such as
|
---|
14 | # UiApp), via UefiBootManagerLib or otherwise, are meant to be ignored.
|
---|
15 | #
|
---|
16 | # Copyright (C) 2019, Red Hat, Inc.
|
---|
17 | #
|
---|
18 | # SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
19 | ##
|
---|
20 |
|
---|
21 | [Defines]
|
---|
22 | INF_VERSION = 1.27
|
---|
23 | BASE_NAME = PlatformBmPrintScLib
|
---|
24 | FILE_GUID = 3417c705-903e-41a7-9485-3fafebf60917
|
---|
25 | MODULE_TYPE = DXE_DRIVER
|
---|
26 | VERSION_STRING = 1.0
|
---|
27 | LIBRARY_CLASS = PlatformBmPrintScLib|DXE_DRIVER
|
---|
28 |
|
---|
29 | [Sources]
|
---|
30 | StatusCodeHandler.c
|
---|
31 |
|
---|
32 | [Packages]
|
---|
33 | MdeModulePkg/MdeModulePkg.dec
|
---|
34 | MdePkg/MdePkg.dec
|
---|
35 |
|
---|
36 | [LibraryClasses]
|
---|
37 | BaseMemoryLib
|
---|
38 | DebugLib
|
---|
39 | DevicePathLib
|
---|
40 | MemoryAllocationLib
|
---|
41 | PcdLib
|
---|
42 | PrintLib
|
---|
43 | UefiBootManagerLib
|
---|
44 | UefiBootServicesTableLib
|
---|
45 | UefiLib
|
---|
46 | UefiRuntimeServicesTableLib
|
---|
47 |
|
---|
48 | [Pcd]
|
---|
49 | gEfiMdeModulePkgTokenSpaceGuid.PcdProgressCodeOsLoaderLoad ## CONSUMES
|
---|
50 | gEfiMdeModulePkgTokenSpaceGuid.PcdProgressCodeOsLoaderStart ## CONSUMES
|
---|
51 |
|
---|
52 | [Protocols]
|
---|
53 | gEfiRscHandlerProtocolGuid ## CONSUMES
|
---|
54 |
|
---|
55 | [Guids]
|
---|
56 | gEfiGlobalVariableGuid ## CONSUMES
|
---|
57 | gEfiStatusCodeSpecificDataGuid ## CONSUMES
|
---|
58 |
|
---|
59 | [Depex.common.DXE_DRIVER]
|
---|
60 | gEfiRscHandlerProtocolGuid AND gEfiVariableArchProtocolGuid
|
---|