]> git.proxmox.com Git - mirror_edk2.git/blob - SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf
49402d902c835c5c9f6db03c86555037ebccc4c4
[mirror_edk2.git] / SecurityPkg / Tcg / Tcg2Dxe / Tcg2Dxe.inf
1 ## @file
2 # Produces Tcg2 protocol and measure boot environment
3 #
4 # Spec Compliance Info:
5 # "TCG PC Client Platform Firmware Profile Specification for TPM Family 2.0 Level 00 Revision 1.03 v51"
6 # along with
7 # "Errata for PC Client Specific Platform Firmware Profile Specification Version 1.0 Revision 1.03"
8 # "TCG EFI Protocol Specification" "Family 2.0" "Level 00 Revision 00.13"
9 # along with
10 # "Errata Version 0.5 for TCG EFI Protocol Specification"
11 #
12 # This module will produce Tcg2 protocol and measure boot environment.
13 #
14 # Caution: This module requires additional review when modified.
15 # This driver will have external input - PE/COFF image.
16 # This external input must be validated carefully to avoid security issue like
17 # buffer overflow, integer overflow.
18 #
19 # Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>
20 # This program and the accompanying materials
21 # are licensed and made available under the terms and conditions of the BSD License
22 # which accompanies this distribution. The full text of the license may be found at
23 # http://opensource.org/licenses/bsd-license.php
24 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
25 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
26 #
27 ##
28
29 [Defines]
30 INF_VERSION = 0x00010005
31 BASE_NAME = Tcg2Dxe
32 MODULE_UNI_FILE = Tcg2Dxe.uni
33 FILE_GUID = FDFF263D-5F68-4591-87BA-B768F445A9AF
34 MODULE_TYPE = DXE_DRIVER
35 VERSION_STRING = 1.0
36 ENTRY_POINT = DriverEntry
37
38 #
39 # The following information is for reference only and not required by the build tools.
40 #
41 # VALID_ARCHITECTURES = IA32 X64
42 #
43
44 [Sources]
45 Tcg2Dxe.c
46 MeasureBootPeCoff.c
47
48 [Packages]
49 MdePkg/MdePkg.dec
50 MdeModulePkg/MdeModulePkg.dec
51 SecurityPkg/SecurityPkg.dec
52 CryptoPkg/CryptoPkg.dec
53
54 [LibraryClasses]
55 MemoryAllocationLib
56 BaseLib
57 UefiBootServicesTableLib
58 HobLib
59 UefiDriverEntryPoint
60 UefiRuntimeServicesTableLib
61 BaseMemoryLib
62 DebugLib
63 Tpm2CommandLib
64 PrintLib
65 UefiLib
66 Tpm2DeviceLib
67 HashLib
68 PerformanceLib
69 ReportStatusCodeLib
70 Tcg2PhysicalPresenceLib
71 PeCoffLib
72
73 [Guids]
74 ## SOMETIMES_CONSUMES ## Variable:L"SecureBoot"
75 ## SOMETIMES_CONSUMES ## Variable:L"PK"
76 ## SOMETIMES_CONSUMES ## Variable:L"KEK"
77 ## SOMETIMES_CONSUMES ## Variable:L"BootXXXX"
78 gEfiGlobalVariableGuid
79
80 ## SOMETIMES_CONSUMES ## Variable:L"db"
81 ## SOMETIMES_CONSUMES ## Variable:L"dbx"
82 gEfiImageSecurityDatabaseGuid
83
84 gTcgEventEntryHobGuid ## SOMETIMES_CONSUMES ## HOB
85 gTpmErrorHobGuid ## SOMETIMES_CONSUMES ## HOB
86 gEfiEventExitBootServicesGuid ## CONSUMES ## Event
87 gEventExitBootServicesFailedGuid ## SOMETIMES_CONSUMES ## Event
88 gEfiTpmDeviceInstanceNoneGuid ## SOMETIMES_CONSUMES ## GUID # TPM device identifier
89 gEfiTpmDeviceInstanceTpm12Guid ## SOMETIMES_CONSUMES ## GUID # TPM device identifier
90
91 gTcgEvent2EntryHobGuid ## SOMETIMES_CONSUMES ## HOB
92 gTpm2StartupLocalityHobGuid ## SOMETIMES_CONSUMES ## HOB
93
94 [Protocols]
95 gEfiTcg2ProtocolGuid ## PRODUCES
96 gEfiTcg2FinalEventsTableGuid ## PRODUCES
97 gEfiMpServiceProtocolGuid ## SOMETIMES_CONSUMES
98 gEfiVariableWriteArchProtocolGuid ## NOTIFY
99 gEfiResetNotificationProtocolGuid ## CONSUMES
100
101 [Pcd]
102 gEfiSecurityPkgTokenSpaceGuid.PcdTpmPlatformClass ## SOMETIMES_CONSUMES
103 gEfiSecurityPkgTokenSpaceGuid.PcdFirmwareDebuggerInitialized ## SOMETIMES_CONSUMES
104 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid ## CONSUMES
105 gEfiSecurityPkgTokenSpaceGuid.PcdStatusCodeSubClassTpmDevice ## SOMETIMES_CONSUMES
106 gEfiSecurityPkgTokenSpaceGuid.PcdTcg2HashAlgorithmBitmap ## CONSUMES
107 gEfiSecurityPkgTokenSpaceGuid.PcdTcg2NumberOfPCRBanks ## CONSUMES
108 gEfiSecurityPkgTokenSpaceGuid.PcdTcgLogAreaMinLen ## CONSUMES
109 gEfiSecurityPkgTokenSpaceGuid.PcdTcg2FinalLogAreaLen ## CONSUMES
110
111 [Depex]
112 TRUE
113
114 [UserExtensions.TianoCore."ExtraFiles"]
115 Tcg2DxeExtra.uni