6a76cf1c2e349ca06d1db28f94b69b98f9332ce0
[mirror_edk2.git] / SecurityPkg / Tcg / TcgPei / TcgPei.inf
1 ## @file\r
2 #  Initializes TPM device and measures FVs in PEI phase\r
3 #\r
4 #  This module will initialize TPM device, measure reported FVs and BIOS version.\r
5 #  This module may also lock TPM physical presence and physicalPresenceLifetimeLock.\r
6 #\r
7 # Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
8 # This program and the accompanying materials\r
9 # are licensed and made available under the terms and conditions of the BSD License\r
10 # which accompanies this distribution. The full text of the license may be found at\r
11 # http://opensource.org/licenses/bsd-license.php\r
12 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
13 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
14 #\r
15 ##\r
16 \r
17 [Defines]\r
18   INF_VERSION                    = 0x00010005\r
19   BASE_NAME                      = TcgPei\r
20   MODULE_UNI_FILE                = TcgPei.uni\r
21   FILE_GUID                      = 2BE1E4A6-6505-43b3-9FFC-A3C8330E0432\r
22   MODULE_TYPE                    = PEIM\r
23   VERSION_STRING                 = 1.0\r
24   ENTRY_POINT                    = PeimEntryMA\r
25 \r
26 #\r
27 # The following information is for reference only and not required by the build tools.\r
28 #\r
29 #  VALID_ARCHITECTURES           = IA32 X64 IPF EBC\r
30 #\r
31 # [BootMode]\r
32 #   S3_RESUME                 ## SOMETIMES_CONSUMES\r
33 #\r
34 \r
35 [Sources]\r
36   TcgPei.c\r
37   TisPei.c\r
38   TpmComm.c\r
39   TpmComm.h\r
40 \r
41 [Packages]\r
42   MdePkg/MdePkg.dec\r
43   MdeModulePkg/MdeModulePkg.dec\r
44   SecurityPkg/SecurityPkg.dec\r
45 \r
46 [LibraryClasses]\r
47   HobLib\r
48   PeimEntryPoint\r
49   PeiServicesLib\r
50   BaseMemoryLib\r
51   DebugLib\r
52   TpmCommLib\r
53   TimerLib\r
54   IoLib\r
55   PeiServicesTablePointerLib\r
56   BaseLib\r
57   PcdLib\r
58   MemoryAllocationLib\r
59   ReportStatusCodeLib\r
60 \r
61 [Guids]\r
62   gTcgEventEntryHobGuid                                               ## PRODUCES               ## HOB\r
63   gTpmErrorHobGuid                                                    ## SOMETIMES_PRODUCES     ## HOB\r
64   gMeasuredFvHobGuid                                                  ## PRODUCES               ## HOB\r
65   gEfiTpmDeviceInstanceTpm12Guid                                      ## PRODUCES               ## GUID       # TPM device identifier\r
66 \r
67 [Ppis]\r
68   gPeiLockPhysicalPresencePpiGuid                                     ## SOMETIMES_CONSUMES     ## NOTIFY\r
69   gEfiPeiFirmwareVolumeInfoPpiGuid                                    ## SOMETIMES_CONSUMES     ## NOTIFY\r
70   gEfiPeiFirmwareVolumeInfo2PpiGuid                                   ## SOMETIMES_CONSUMES     ## NOTIFY\r
71   gEfiPeiFirmwareVolumeInfoMeasurementExcludedPpiGuid                 ## SOMETIMES_CONSUMES\r
72   gPeiTpmInitializedPpiGuid                                           ## PRODUCES\r
73   gEfiEndOfPeiSignalPpiGuid                                           ## SOMETIMES_CONSUMES     ## NOTIFY\r
74 \r
75 [Pcd]\r
76   gEfiSecurityPkgTokenSpaceGuid.PcdPhysicalPresenceLifetimeLock       ## SOMETIMES_CONSUMES \r
77   gEfiSecurityPkgTokenSpaceGuid.PcdPhysicalPresenceCmdEnable          ## SOMETIMES_CONSUMES \r
78   gEfiSecurityPkgTokenSpaceGuid.PcdPhysicalPresenceHwEnable           ## SOMETIMES_CONSUMES\r
79   gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVersionString             ## SOMETIMES_CONSUMES\r
80   gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid                    ## CONSUMES\r
81   gEfiSecurityPkgTokenSpaceGuid.PcdTpmInitializationPolicy            ## CONSUMES\r
82   gEfiSecurityPkgTokenSpaceGuid.PcdTpmScrtmPolicy                     ## SOMETIMES_CONSUMES\r
83   gEfiMdeModulePkgTokenSpaceGuid.PcdPeiCoreMaxFvSupported             ## CONSUMES\r
84   gEfiSecurityPkgTokenSpaceGuid.PcdStatusCodeSubClassTpmDevice        ## SOMETIMES_CONSUMES\r
85 \r
86 [Depex]\r
87   gEfiPeiMasterBootModePpiGuid AND\r
88   gEfiPeiReadOnlyVariable2PpiGuid AND\r
89   gEfiTpmDeviceSelectedGuid\r
90 \r
91 [UserExtensions.TianoCore."ExtraFiles"]\r
92   TcgPeiExtra.uni\r
93