]> git.proxmox.com Git - mirror_edk2.git/blame - SecurityPkg/SecurityPkg.dsc
Add TPM2 implementation.
[mirror_edk2.git] / SecurityPkg / SecurityPkg.dsc
CommitLineData
0c18794e 1## @file\r
2# Security Module Package for All Architectures.\r
3#\r
cbcccd2c 4# Copyright (c) 2009 - 2013, Intel Corporation. All rights reserved.<BR>\r
0c18794e 5# This program and the accompanying materials\r
6# are licensed and made available under the terms and conditions of the BSD License\r
7# which accompanies this distribution. The full text of the license may be found at\r
8# http://opensource.org/licenses/bsd-license.php\r
9#\r
10# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12#\r
13##\r
14\r
15[Defines]\r
16 PLATFORM_NAME = SecurityPkg\r
17 PLATFORM_GUID = B2C4614D-AE76-47ba-B876-5988BFED064F\r
4cc5bbe9 18 PLATFORM_VERSION = 0.92\r
0c18794e 19 DSC_SPECIFICATION = 0x00010005\r
20 OUTPUT_DIRECTORY = Build/SecurityPkg\r
21 SUPPORTED_ARCHITECTURES = IA32|IPF|X64|EBC\r
22 BUILD_TARGETS = DEBUG|RELEASE\r
23 SKUID_IDENTIFIER = DEFAULT\r
24\r
25[LibraryClasses]\r
26 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
27 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf \r
28 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf\r
29 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf\r
30 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf\r
31 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf\r
32 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
33 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r
34 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf\r
c1d93242 35 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf\r
0c18794e 36\r
37 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf\r
38 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf\r
39 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf\r
40 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
41 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf\r
42 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf\r
43 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf\r
44 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf\r
45 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf\r
46 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf\r
47 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
0c18794e 48 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf\r
49 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf\r
50 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf\r
51 TpmCommLib|SecurityPkg/Library/TpmCommLib/TpmCommLib.inf\r
607599bf 52 PlatformSecureLib|SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf\r
53 TcgPhysicalPresenceLib|SecurityPkg/Library/DxeTcgPhysicalPresenceLib/DxeTcgPhysicalPresenceLib.inf\r
a332cfd3 54 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf\r
c1d93242
JY
55 Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf\r
56 Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf\r
57 TrEEPhysicalPresenceLib|SecurityPkg/Library/DxeTrEEPhysicalPresenceLib/DxeTrEEPhysicalPresenceLib.inf\r
0c18794e 58\r
59[LibraryClasses.common.PEIM]\r
60 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf\r
61 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
62 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf\r
63 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
64 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
3b947ef1 65 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf\r
c1d93242
JY
66 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf\r
67 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf\r
68 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf\r
0c18794e 69\r
70[LibraryClasses.common.DXE_DRIVER]\r
71 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
72 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
3b947ef1 73 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf\r
c1d93242
JY
74 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf\r
75 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf\r
76 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf\r
0c18794e 77\r
78[LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.DXE_SAL_DRIVER,]\r
9a000b46 79 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
0c18794e 80 DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf\r
c1d93242
JY
81 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf\r
82 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf\r
83 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf\r
0c18794e 84\r
3b947ef1 85[LibraryClasses.common.DXE_RUNTIME_DRIVER]\r
86 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf\r
c1d93242
JY
87 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf\r
88 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf\r
89 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf\r
3b947ef1 90\r
91[LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.UEFI_APPLICATION]\r
92 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf\r
c1d93242
JY
93 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf\r
94 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf\r
95 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf\r
3b947ef1 96\r
0c18794e 97[LibraryClasses.IPF.DXE_SAL_DRIVER]\r
98 ExtendedSalLib|MdePkg/Library/DxeRuntimeExtendedSalLib/DxeRuntimeExtendedSalLib.inf\r
3b947ef1 99 BaseCryptLib|CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/BaseCryptLibRuntimeCryptProtocol.inf\r
c1d93242
JY
100 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf\r
101 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf\r
102 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf\r
0c18794e 103\r
104[LibraryClasses.common.DXE_SMM_DRIVER]\r
9a000b46 105 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
0c18794e 106 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf\r
107 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf\r
108 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf\r
c1d93242
JY
109 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf\r
110 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf\r
0c18794e 111 \r
c1d93242
JY
112[PcdsDynamicDefault.common.DEFAULT]\r
113 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0xb6, 0xe5, 0x01, 0x8b, 0x19, 0x4f, 0xe8, 0x46, 0xab, 0x93, 0x1c, 0x53, 0x67, 0x1b, 0x90, 0xcc}\r
114 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2InitializationPolicy|1\r
115 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2SelfTestPolicy|1\r
116 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2ScrtmPolicy|1\r
117 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInitializationPolicy|1\r
118 gEfiSecurityPkgTokenSpaceGuid.PcdTpmScrtmPolicy|1\r
119\r
0c18794e 120[Components]\r
121 SecurityPkg/VariableAuthenticated/Pei/VariablePei.inf\r
122 SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf\r
123 SecurityPkg/Library/DxeDeferImageLoadLib/DxeDeferImageLoadLib.inf\r
d0043e49 124 SecurityPkg/Library/DxeImageAuthenticationStatusLib/DxeImageAuthenticationStatusLib.inf\r
0c18794e 125 SecurityPkg/UserIdentification/UserIdentifyManagerDxe/UserIdentifyManagerDxe.inf\r
126 SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileManagerDxe.inf\r
0c18794e 127\r
128 #\r
129 # Application\r
130 #\r
131 SecurityPkg/Application/VariableInfo/VariableInfo.inf\r
132\r
133 #\r
134 # TPM\r
135 #\r
136 SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf\r
cbcccd2c 137 SecurityPkg/Library/TpmCommLib/TpmCommLib.inf\r
c1d93242
JY
138 SecurityPkg/Library/DxeTcgPhysicalPresenceLib/DxeTcgPhysicalPresenceLib.inf\r
139 SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf\r
140 SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf\r
141 SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf\r
cbcccd2c 142\r
0c18794e 143 SecurityPkg/Tcg/PhysicalPresencePei/PhysicalPresencePei.inf\r
0c18794e 144 SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.inf\r
c1d93242
JY
145\r
146 #\r
147 # TPM2\r
148 #\r
149 SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf\r
150 SecurityPkg/Library/DxeTrEEPhysicalPresenceLib/DxeTrEEPhysicalPresenceLib.inf\r
151\r
152 SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf\r
153 SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf\r
154\r
155 SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf\r
156 SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf\r
157 SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf\r
158 SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf\r
159 SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf\r
160 SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterPei.inf\r
161\r
162 SecurityPkg/Library/HashLibTpm2/HashLibTpm2.inf\r
163\r
cbcccd2c
LG
164[Components.IA32, Components.X64, Components.IPF]\r
165 SecurityPkg/UserIdentification/PwdCredentialProviderDxe/PwdCredentialProviderDxe.inf\r
166 SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProviderDxe.inf\r
167 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf\r
168 SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableRuntimeDxe.inf\r
169\r
170 #\r
171 # TPM\r
172 #\r
173 SecurityPkg/Tcg/TcgPei/TcgPei.inf\r
174 SecurityPkg/Tcg/TcgDxe/TcgDxe.inf\r
0c18794e 175 SecurityPkg/Tcg/TcgConfigDxe/TcgConfigDxe.inf {\r
176 <LibraryClasses>\r
177 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
178 }\r
cbcccd2c 179\r
c1d93242
JY
180 #\r
181 # TPM2\r
182 #\r
183 SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf\r
184 SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf\r
185\r
186 SecurityPkg/Tcg/TrEEConfig/TrEEConfigPei.inf {\r
187 <LibraryClasses>\r
188 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf\r
189 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf\r
190 }\r
191 SecurityPkg/Tcg/TrEEPei/TrEEPei.inf {\r
192 <LibraryClasses>\r
193 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterPei.inf\r
194 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf\r
195 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf\r
196 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf\r
197 }\r
198\r
199 SecurityPkg/Tcg/TrEEDxe/TrEEDxe.inf {\r
200 <LibraryClasses>\r
201 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf\r
202 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf\r
203 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf\r
204 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf\r
205 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
206 }\r
207 SecurityPkg/Tcg/TrEEConfig/TrEEConfigDxe.inf {\r
208 <LibraryClasses>\r
209 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf\r
210 }\r
211\r
0c18794e 212[Components.IA32, Components.X64]\r
0c18794e 213 SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableSmm.inf\r
214 SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableSmmRuntimeDxe.inf\r
cbcccd2c 215 SecurityPkg/Tcg/TcgSmm/TcgSmm.inf\r
c1d93242 216 SecurityPkg/Tcg/TrEESmm/TrEESmm.inf\r
0c18794e 217\r
218[Components.IPF]\r
219 SecurityPkg/VariableAuthenticated/EsalVariableDxeSal/EsalVariableDxeSal.inf \r
220\r
0c18794e 221[BuildOptions]\r
222 MSFT:*_*_IA32_DLINK_FLAGS = /ALIGN:256\r
223 INTEL:*_*_IA32_DLINK_FLAGS = /ALIGN:256\r
224\r